Skip to content

Commit 34e2b12

Browse files
committed
change dataType and add genome annotation version into payload
1 parent eb7aa84 commit 34e2b12

11 files changed

Lines changed: 36 additions & 32 deletions

payload-gen-variant-processing/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM python:3.7.5-slim-buster
22

3-
LABEL org.opencontainers.image.source https://github.com/icgc-argo/data-processing-utility-tools
3+
LABEL org.opencontainers.image.source https://github.com/icgc-argo-workflows/data-processing-utility-tools
44

55
RUN apt-get update && apt-get install -y procps jq
66

payload-gen-variant-processing/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ nextflow.enable.dsl = 2
2727
version = '0.3.0'
2828

2929
container = [
30-
'ghcr.io': 'ghcr.io/icgc-argo/data-processing-utility-tools.payload-gen-variant-processing'
30+
'ghcr.io': 'ghcr.io/icgc-argo-workflows/data-processing-utility-tools.payload-gen-variant-processing'
3131
]
3232
default_container_registry = 'ghcr.io'
3333
/********************************************************************/

payload-gen-variant-processing/main.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
import copy
3030

3131
variant_type_to_data_type_etc = {
32-
'snv': ['Simple Nucleotide Variation', 'Raw SNV Calls', ['CaVEMan', 'Bcftools:view'], ['GATK:Mutect2', 'Bcftools:view']], # dataCategory, dataType, analysis_tools
33-
'indel': ['Simple Nucleotide Variation', 'Raw InDel Calls', ['Pindel', 'Bcftools:view'], ['GATK:Mutect2', 'Bcftools:view']]
32+
'snv': ['Simple Nucleotide Variation', 'Filtered SNV Calls', ['CaVEMan', 'Bcftools:view'], ['GATK:Mutect2', 'Bcftools:view']], # dataCategory, dataType, analysis_tools
33+
'indel': ['Simple Nucleotide Variation', 'Filtered InDel Calls', ['Pindel', 'Bcftools:view'], ['GATK:Mutect2', 'Bcftools:view']]
3434
}
3535

3636
workflow_full_name = {
@@ -142,7 +142,8 @@ def main():
142142
'analysis_type': input_analysis_type
143143
}
144144
],
145-
'genome_build': 'GRCh38_hla_decoy_ebv'
145+
'genome_build': 'GRCh38_hla_decoy_ebv',
146+
'genome_annotation': 'GENCODE v38'
146147
},
147148
'variant_class': analysis.get('variant_class')
148149
}

payload-gen-variant-processing/pkg.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
],
1212
"repository": {
1313
"type": "git",
14-
"url": "https://github.com/icgc-argo/data-processing-utility-tools.git"
14+
"url": "https://github.com/icgc-argo-workflows/data-processing-utility-tools.git"
1515
},
1616
"container": {
1717
"registries": [
1818
{
1919
"registry": "ghcr.io",
2020
"type": "docker",
21-
"org": "icgc-argo",
21+
"org": "icgc-argo-workflows",
2222
"default": true
2323
}
2424
]
@@ -32,6 +32,6 @@
3232
}
3333
],
3434
"license": "GNU Affero General Public License v3",
35-
"bugReport": "https://github.com/icgc-argo/data-processing-utility-tools/issues",
36-
"homepage": "https://github.com/icgc-argo/data-processing-utility-tools#readme"
35+
"bugReport": "https://github.com/icgc-argo-workflows/data-processing-utility-tools/issues",
36+
"homepage": "https://github.com/icgc-argo-workflows/data-processing-utility-tools#readme"
3737
}

payload-gen-variant-processing/tests/checker.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ nextflow.enable.dsl = 2
3232
version = '0.3.0'
3333

3434
container = [
35-
'ghcr.io': 'ghcr.io/icgc-argo/data-processing-utility-tools.payload-gen-variant-processing'
35+
'ghcr.io': 'ghcr.io/icgc-argo-workflows/data-processing-utility-tools.payload-gen-variant-processing'
3636
]
3737
default_container_registry = 'ghcr.io'
3838
/********************************************************************/

payload-gen-variant-processing/tests/expected/expected.gatk-mutect2.filtered.snv.payload.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"Bcftools:view"
3939
]
4040
},
41-
"dataType": "Raw SNV Calls"
41+
"dataType": "Filtered SNV Calls"
4242
},
4343
{
4444
"fileName": "TEST-PR.DO250183.SA610229.wgs.20200922.gatk-mutect2.somatic.snv.open-filter.vcf.gz.tbi",
@@ -59,16 +59,17 @@
5959
"workflow": {
6060
"workflow_name": "Open Access Variant Filtering",
6161
"workflow_short_name": "open-filter",
62-
"workflow_version": "0.1.0",
63-
"run_id": "maniac_saha",
64-
"session_id": "cb4d9dc6-d0b2-4998-bfae-80976e1ded55",
62+
"workflow_version": "0.3.0",
63+
"run_id": "focused_goodall",
64+
"session_id": "2fce03b6-006a-4fe5-9578-b0ecc139b40c",
6565
"inputs": [
6666
{
6767
"input_analysis_id": "ca105e4d-d16b-461c-905e-4dd16b861cc8",
6868
"analysis_type": "variant_calling"
6969
}
7070
],
71-
"genome_build": "GRCh38_hla_decoy_ebv"
71+
"genome_build": "GRCh38_hla_decoy_ebv",
72+
"genome_annotation": "GENCODE v38"
7273
},
7374
"variant_class": "Somatic"
7475
}

payload-gen-variant-processing/tests/expected/expected.sanger-wgs.filtered.snv.payload.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"Bcftools:view"
3939
]
4040
},
41-
"dataType": "Raw SNV Calls"
41+
"dataType": "Filtered SNV Calls"
4242
},
4343
{
4444
"fileName": "TEST-PR.DO250183.SA610229.wgs.20200513.sanger-wgs.somatic.snv.open-filter.vcf.gz.tbi",
@@ -59,19 +59,20 @@
5959
"workflow": {
6060
"workflow_name": "Open Access Variant Filtering",
6161
"workflow_short_name": "open-filter",
62-
"workflow_version": "0.1.0",
63-
"run_id": "insane_rubens",
64-
"session_id": "b5dbc2b3-f915-4f56-acbb-97d31df6c1f0",
62+
"workflow_version": "0.3.0",
63+
"run_id": "zen_rubens",
64+
"session_id": "12b3e3ed-ce27-40f5-a5d3-8b41315b262e",
6565
"inputs": [
6666
{
6767
"input_analysis_id": "3414534a-47a4-492d-9453-4a47a4192d6d",
6868
"analysis_type": "variant_calling"
6969
}
7070
],
71-
"genome_build": "GRCh38_hla_decoy_ebv"
71+
"genome_build": "GRCh38_hla_decoy_ebv",
72+
"genome_annotation": "GENCODE v38"
7273
},
74+
"variant_class": "Somatic",
7375
"info": {
7476
"origin": "ICGC-25K"
75-
},
76-
"variant_class": "Somatic"
77+
}
7778
}

payload-gen-variant-processing/tests/expected/expected.sanger-wxs.filtered.indel.payload.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"Bcftools:view"
3939
]
4040
},
41-
"dataType": "Raw InDel Calls"
41+
"dataType": "Filtered InDel Calls"
4242
},
4343
{
4444
"fileName": "TEST-PR.DO250183.SA610229.wxs.20200911.sanger-wxs.somatic.indel.open-filter.vcf.gz.tbi",
@@ -59,19 +59,20 @@
5959
"workflow": {
6060
"workflow_name": "Open Access Variant Filtering",
6161
"workflow_short_name": "open-filter",
62-
"workflow_version": "0.1.0",
63-
"run_id": "adoring_mercator",
64-
"session_id": "cd1fcd50-3231-4ce6-9dec-722ed044d970",
62+
"workflow_version": "0.3.0",
63+
"run_id": "sleepy_wiles",
64+
"session_id": "036028b0-f350-433f-8f1b-085b8271f160",
6565
"inputs": [
6666
{
6767
"input_analysis_id": "775eeab5-9cbf-4443-9eea-b59cbf144389",
6868
"analysis_type": "variant_calling"
6969
}
7070
],
71-
"genome_build": "GRCh38_hla_decoy_ebv"
71+
"genome_build": "GRCh38_hla_decoy_ebv",
72+
"genome_annotation": "GENCODE v38"
7273
},
74+
"variant_class": "Somatic",
7375
"info": {
7476
"origin": "ICGC-25K"
75-
},
76-
"variant_class": "Somatic"
77+
}
7778
}

payload-gen-variant-processing/tests/test-job-1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"expected_output": "expected/expected.sanger-wgs.filtered.snv.payload.json",
88
"wf_name": "open-access-variant-filtering",
99
"wf_short_name": "open-filter",
10-
"wf_version": "0.1.0",
10+
"wf_version": "0.3.0",
1111
"publish_dir": "outdir",
1212
"cpus": 1,
1313
"mem": 0.5

payload-gen-variant-processing/tests/test-job-2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"expected_output": "expected/expected.gatk-mutect2.filtered.snv.payload.json",
88
"wf_name": "open-access-variant-filtering",
99
"wf_short_name": "open-filter",
10-
"wf_version": "0.1.0",
10+
"wf_version": "0.3.0",
1111
"open": true,
1212
"publish_dir": "outdir",
1313
"cpus": 1,

0 commit comments

Comments
 (0)