File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,17 +36,17 @@ def get_id_mapping(id_mapping_tsv):
3636 submitter_id = row ['submitter_id' ]
3737 uniform_id = row ['uniform_id' ]
3838 if type in id_mapping :
39- sys .exit (f"Values in 'type' field duplicated. Offending value: { type } , in file: { args . id_mapping_tsv } " )
39+ sys .exit (f"Values in 'type' field duplicated. Offending value: { type } , in file: { id_mapping_tsv } " )
4040 else :
4141 id_mapping [type ] = dict ()
4242
4343 if submitter_id in id_mapping [type ]:
44- sys .exit (f"Values in 'submitter_id' field duplicated. Offending value: { submitter_id } , for type: { type } , in file: { args . id_mapping_tsv } " )
44+ sys .exit (f"Values in 'submitter_id' field duplicated. Offending value: { submitter_id } , for type: { type } , in file: { id_mapping_tsv } " )
4545 else :
4646 id_mapping [type ][submitter_id ] = uniform_id
4747
4848 if 'donor' not in id_mapping or 'specimen' not in id_mapping or 'sample' not in id_mapping :
49- sys .exit (f"Provided id_mapping_tsv file '{ args . id_mapping_tsv } ' is required to have ID mappings for 'donor', 'specimen' and 'sample'" )
49+ sys .exit (f"Provided id_mapping_tsv file '{ id_mapping_tsv } ' is required to have ID mappings for 'donor', 'specimen' and 'sample'" )
5050
5151 return id_mapping
5252
You can’t perform that action at this time.
0 commit comments