Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating traceback subworkflow with local changes made to pass nf-cor… #145

Merged
merged 14 commits into from
Sep 11, 2024
Merged
4 changes: 1 addition & 3 deletions modules/msk/genotypevariants/all/environment.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json
name: "genotypevariants_all"
channels:
- conda-forge
- bioconda
- defaults
dependencies:
- "YOUR-TOOL-HERE"
- "YOUR-TOOL=HERE"
11 changes: 7 additions & 4 deletions modules/msk/genotypevariants/all/main.nf
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
process GENOTYPEVARIANTS_ALL {
tag "$meta.id"
label 'process_single'
label 'process_medium'


conda "${moduleDir}/environment.yml"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'ghcr.io/msk-access/genotype_variants:0.3.8':
'ghcr.io/msk-access/genotype_variants:0.3.8' }"
'ghcr.io/msk-access/genotype_variants:0.3.9':
'ghcr.io/msk-access/genotype_variants:0.3.9' }"

input:
// [[patient:null, id:'sample'], standard.bam, standard.bam.bai, [], [], [], []]
Expand Down Expand Up @@ -55,7 +55,10 @@ process GENOTYPEVARIANTS_ALL {
def patient = "${meta.patient}"

"""
touch ${prefix}.maf
touch ${prefix}-DUPLEX_genotyped.maf
touch ${prefix}-ORG-SIMPLEX-DUPLEX_genotyped.maf
touch ${prefix}-SIMPLEX-DUPLEX_genotyped.maf
touch ${prefix}-SIMPLEX_genotyped.maf

cat <<-END_VERSIONS > versions.yml
"${task.process}":
Expand Down
60 changes: 41 additions & 19 deletions modules/msk/genotypevariants/all/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
"id": "197",
"patient": "c-id"
},
"197.maf:md5,d41d8cd98f00b204e9800998ecf8427e"
[
"197-DUPLEX_genotyped.maf:md5,d41d8cd98f00b204e9800998ecf8427e",
"197-ORG-SIMPLEX-DUPLEX_genotyped.maf:md5,d41d8cd98f00b204e9800998ecf8427e",
"197-SIMPLEX-DUPLEX_genotyped.maf:md5,d41d8cd98f00b204e9800998ecf8427e",
"197-SIMPLEX_genotyped.maf:md5,d41d8cd98f00b204e9800998ecf8427e"
]
]
],
"1": [
Expand All @@ -20,17 +25,26 @@
"id": "197",
"patient": "c-id"
},
"197.maf:md5,d41d8cd98f00b204e9800998ecf8427e"
[
"197-DUPLEX_genotyped.maf:md5,d41d8cd98f00b204e9800998ecf8427e",
"197-ORG-SIMPLEX-DUPLEX_genotyped.maf:md5,d41d8cd98f00b204e9800998ecf8427e",
"197-SIMPLEX-DUPLEX_genotyped.maf:md5,d41d8cd98f00b204e9800998ecf8427e",
"197-SIMPLEX_genotyped.maf:md5,d41d8cd98f00b204e9800998ecf8427e"
]
]
],
"versions": [
"versions.yml:md5,55fd807cb50fcc6611e6d352b86e4704"
]
}
],
"timestamp": "2024-06-18T14:18:45.350503"
"meta": {
"nf-test": "0.9.0",
"nextflow": "24.04.2"
},
"timestamp": "2024-09-10T18:33:45.583973403"
},
"illumina - duplex and simplex, msk - maf": {
"illumina - bam, msk - maf": {
"content": [
{
"0": [
Expand All @@ -40,10 +54,8 @@
"patient": "c-id"
},
[
"197-DUPLEX_genotyped.maf:md5,6c0649cfd70ceb0587827f48bf93caf7",
"197-ORG-SIMPLEX-DUPLEX_genotyped.maf:md5,6f37d4e00ab92ce623bd286f6804f30a",
"197-SIMPLEX-DUPLEX_genotyped.maf:md5,6d6c71cdf73e74c10fcb68e477a4455f",
"197-SIMPLEX_genotyped.maf:md5,6c0649cfd70ceb0587827f48bf93caf7"
"197-ORG-STD_genotyped.maf:md5,e430edb08476cf771fdb608b646ccfb7",
"197-STANDARD_genotyped.maf:md5,6c0649cfd70ceb0587827f48bf93caf7"
]
]
],
Expand All @@ -57,10 +69,8 @@
"patient": "c-id"
},
[
"197-DUPLEX_genotyped.maf:md5,6c0649cfd70ceb0587827f48bf93caf7",
"197-ORG-SIMPLEX-DUPLEX_genotyped.maf:md5,6f37d4e00ab92ce623bd286f6804f30a",
"197-SIMPLEX-DUPLEX_genotyped.maf:md5,6d6c71cdf73e74c10fcb68e477a4455f",
"197-SIMPLEX_genotyped.maf:md5,6c0649cfd70ceb0587827f48bf93caf7"
"197-ORG-STD_genotyped.maf:md5,e430edb08476cf771fdb608b646ccfb7",
"197-STANDARD_genotyped.maf:md5,6c0649cfd70ceb0587827f48bf93caf7"
]
]
],
Expand All @@ -69,9 +79,13 @@
]
}
],
"timestamp": "2024-06-18T14:18:39.109687"
"meta": {
"nf-test": "0.9.0",
"nextflow": "24.04.2"
},
"timestamp": "2024-09-10T18:33:27.603672746"
},
"illumina - bam, msk - maf": {
"illumina - duplex and simplex, msk - maf": {
"content": [
{
"0": [
Expand All @@ -81,8 +95,10 @@
"patient": "c-id"
},
[
"197-ORG-STD_genotyped.maf:md5,8a140bbb7af1c291e8597866fb9d6bb9",
"197-STANDARD_genotyped.maf:md5,6c0649cfd70ceb0587827f48bf93caf7"
"197-DUPLEX_genotyped.maf:md5,6c0649cfd70ceb0587827f48bf93caf7",
"197-ORG-SIMPLEX-DUPLEX_genotyped.maf:md5,6f37d4e00ab92ce623bd286f6804f30a",
"197-SIMPLEX-DUPLEX_genotyped.maf:md5,6d6c71cdf73e74c10fcb68e477a4455f",
"197-SIMPLEX_genotyped.maf:md5,6c0649cfd70ceb0587827f48bf93caf7"
]
]
],
Expand All @@ -96,8 +112,10 @@
"patient": "c-id"
},
[
"197-ORG-STD_genotyped.maf:md5,8a140bbb7af1c291e8597866fb9d6bb9",
"197-STANDARD_genotyped.maf:md5,6c0649cfd70ceb0587827f48bf93caf7"
"197-DUPLEX_genotyped.maf:md5,6c0649cfd70ceb0587827f48bf93caf7",
"197-ORG-SIMPLEX-DUPLEX_genotyped.maf:md5,6f37d4e00ab92ce623bd286f6804f30a",
"197-SIMPLEX-DUPLEX_genotyped.maf:md5,6d6c71cdf73e74c10fcb68e477a4455f",
"197-SIMPLEX_genotyped.maf:md5,6c0649cfd70ceb0587827f48bf93caf7"
]
]
],
Expand All @@ -106,6 +124,10 @@
]
}
],
"timestamp": "2024-06-18T14:18:29.181063"
"meta": {
"nf-test": "0.9.0",
"nextflow": "24.04.2"
},
"timestamp": "2024-09-10T18:33:37.478400329"
}
}
4 changes: 1 addition & 3 deletions modules/msk/pvmaf/concat/environment.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json
name: "pvmaf_concat"
channels:
- conda-forge
- bioconda
- defaults
dependencies:
- "YOUR-TOOL-HERE"
- "YOUR-TOOL=HERE"
2 changes: 1 addition & 1 deletion modules/msk/pvmaf/concat/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ process PVMAF_CONCAT {
'ghcr.io/msk-access/postprocessing_variant_calls:0.3.0' }"

input:
tuple val(meta), path(maf_files) // [ id:'sample1', patient:'patient1' ], [maf_1, ... maf_n]
tuple val(meta), path(maf_files, stageAs: "*?-ORG-SIMPLEX-DUPLEX_genotyped.maf")// [ id:'sample1', patient:'patient1' ], [maf_1, ... maf_n]


output:
Expand Down
4 changes: 4 additions & 0 deletions subworkflows/msk/traceback/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ workflow TRACEBACK {
}
.set{split_genotype_xs}



// Combine impact and access mafs
split_genotype_imp
.concat(split_genotype_xs.genotyped)
Expand All @@ -61,12 +63,14 @@ workflow TRACEBACK {
.set{all_genotype}
individual_genotype = all_genotype.collect()


// concat gentoyped mafs, per patient if provided
PVMAFCONCAT_GENOTYPE(all_genotype)
ch_versions = ch_versions.mix(PVMAFCONCAT_GENOTYPE.out.versions.first())

genotyped_maf = PVMAFCONCAT_GENOTYPE.out.maf


emit:
individual_genotyped_mafs = individual_genotype
genotyped_maf = genotyped_maf // channel:[[patient:''], genotyped.maf]
Expand Down
2 changes: 1 addition & 1 deletion subworkflows/msk/traceback/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ nextflow_workflow {
then {
assertAll(
{ assert workflow.success},
{ assert snapshot(workflow.out).match()}
{ assert snapshot(path("$outputDir").list()).match()}
)
}
}
Expand Down
29 changes: 6 additions & 23 deletions subworkflows/msk/traceback/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -1,29 +1,12 @@
{
"standard and access bams - stub": {
"content": [
{
"0": [

],
"1": [

],
"2": [
"versions.yml:md5,bb5f5880ef3572733a2349212e8ab549",
"versions.yml:md5,f31415b0aae41057f59e929b99af930f"
],
"genotyped_maf": [

],
"individual_genotyped_mafs": [

],
"versions": [
"versions.yml:md5,bb5f5880ef3572733a2349212e8ab549",
"versions.yml:md5,f31415b0aae41057f59e929b99af930f"
]
}

],
"timestamp": "2024-06-18T13:38:00.215685"
"meta": {
"nf-test": "0.9.0",
"nextflow": "24.04.2"
},
"timestamp": "2024-09-10T18:59:54.138840673"
}
}
Loading