Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #194 from umccr/bugfix/rename-study-and-participan…
Browse files Browse the repository at this point in the history
…t-keys-for-deidentified-samples
  • Loading branch information
alexiswl authored Nov 22, 2023
2 parents fa73a78 + fa18b47 commit d1494cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ def lambda_handler(event, context):
)
# For deidentified - we rename the external subject id as the study subject identifier
else:
sample_df["study_identifier"] = sample_df["project_name"]
sample_df["study_id"] = sample_df["project_name"]
sample_df = sample_df.rename(
columns={
"external_subject_id": "study_subject_identifier"
"external_subject_id": "participant_id"
}
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,12 @@ def lambda_handler(event, context):
"external_subject_id": "mrn"
}
)
# Step 7b - for deidentified samples, use study_identified and study_subject_identifier
# Step 7b - for deidentified samples, use study_identified and participant_id
else:
merged_df["study_identifier"] = merged_df["project_name"]
merged_df["study_id"] = merged_df["project_name"]
merged_df = merged_df.rename(
columns={
"external_subject_id": "study_subject_identifier"
"external_subject_id": "participant_id"
}
)

Expand Down

0 comments on commit d1494cb

Please sign in to comment.