Skip to content

Commit

Permalink
Update comments about the GWAS and sample cohorts
Browse files Browse the repository at this point in the history
  • Loading branch information
ens-lgil committed Nov 1, 2024
1 parent f4474c8 commit c123da5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions curation/template_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ def get_gwas_study(self,gcst_id:str,spreadsheet_cohorts:list,spreadsheet_name:st

try:
source_PMID = response_data['publicationInfo']['pubmedId']
# Create list of cohorts if it exists in the GWAS study
# This override the Cohorts found in the cohort column in the spreadsheet
# Update the Cohorts list found in the cohort column of the spreadsheet by
# adding the list of cohorts from the GWAS study (if the list is present)
cohorts_list = spreadsheet_cohorts
if 'cohort' in response_data.keys():
cohorts = response_data['cohort'].split('|')
Expand Down
2 changes: 1 addition & 1 deletion release/scripts/UpdateGwasStudies.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def update_studies(self):
# Cohorts data
if cohorts_list or sample.cohorts:
# Use the list of cohorts from the GWAS study (if available)
# Override the list of cohorts found in the existing sample
# Update the list of cohorts from the existing sample if new cohorts are found in the GWAS study
if cohorts_list:
new_sample.cohorts.set(cohorts_list)
# Print a message if the 2 list of cohorts (old & new) are different
Expand Down

0 comments on commit c123da5

Please sign in to comment.