Skip to content

Commit

Permalink
using dataclass to retriev gvcf path from dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-harper committed Jan 17, 2024
1 parent 52d7c3c commit 1037931
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/add_nagim_gvcfs_to_tob_wgs_test_metamist.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ def main(project: str, project_id: int, sample_path_mappings: str, suffix: str):
for participant in upserted_participants:
for sample in participant['samples']:
old_ext_id = sample['externalId'].removesuffix(f'-{suffix}')
gvcf_path = ext_id_to_row[old_ext_id][1] # get gvcf path from dictionary
row_data = ext_id_to_row[old_ext_id]
gvcf_path = row_data.gvcf # get gvcf path from dictionary
AnalysisApi().create_analysis(
project,
Analysis(
Expand Down

0 comments on commit 1037931

Please sign in to comment.