Skip to content

Commit f37e81c

Browse files
authored
Merge pull request #112 from icgc-argo/payload-add-uniform-ids@0.1.1
[release]
2 parents 117cd49 + 8aa4699 commit f37e81c

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

payload-add-uniform-ids/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/* this block is auto-generated based on info from pkg.json where */
2525
/* changes can be made if needed, do NOT modify this block manually */
2626
nextflow.enable.dsl = 2
27-
version = '0.1.0' // package version
27+
version = '0.1.1'
2828

2929
container = [
3030
'ghcr.io': 'ghcr.io/icgc-argo/data-processing-utility-tools.payload-add-uniform-ids'

payload-add-uniform-ids/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

payload-add-uniform-ids/pkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "payload-add-uniform-ids",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "SONG payload utility tool for adding uniform IDs",
55
"main": "main.nf",
66
"deprecated": false,

0 commit comments

Comments
 (0)