Skip to content

Commit 3138184

Browse files
Merge pull request #639 from asp8200/extend_output_from_snpeff
DRAFT: Extending output from snpEff
2 parents 677b69f + 1552dfd commit 3138184

6 files changed

Lines changed: 22 additions & 8 deletions

File tree

conf/modules.config

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,10 +1147,12 @@ process{
11471147
ext.args = '-nodownload -canon -v'
11481148
if (!params.snpeff_cache) container = { params.snpeff_genome ? "nfcore/snpeff:${params.snpeff_version}.${params.snpeff_genome}" : "nfcore/snpeff:${params.snpeff_version}.${params.genome}" }
11491149
publishDir = [
1150-
mode: params.publish_dir_mode,
1151-
path: { "${params.outdir}/reports/SnpEff/${meta.id}/${meta.variantcaller}" },
1152-
pattern: "*csv",
1153-
saveAs: { params.tools.contains('snpeff') ? it : null }
1150+
[
1151+
mode: params.publish_dir_mode,
1152+
path: { "${params.outdir}/reports/snpeff/${meta.id}/${meta.variantcaller}" },
1153+
pattern: "*{csv,html,genes.txt}",
1154+
saveAs: { params.tools.contains('snpeff') ? it : null }
1155+
]
11541156
]
11551157
}
11561158
}

modules.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
"git_sha": "6b64f9cb6c3dd3577931cc3cd032d6fb730000ce"
215215
},
216216
"snpeff": {
217-
"git_sha": "d8bef6057bc2cf657d33ed496426be8416edd780"
217+
"git_sha": "ffe037504897df081a7497fa5f495d8e23e93e24"
218218
},
219219
"strelka/germline": {
220220
"git_sha": "e745e167c1020928ef20ea1397b6b4d230681b4d"

modules/nf-core/modules/snpeff/main.nf

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/nf-core/modules/snpeff/meta.yml

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/test_annotation.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
files:
77
- path: results/annotation/test/test_snpEff.ann.vcf.gz
88
- path: results/annotation/test/test_snpEff.ann.vcf.gz.tbi
9-
- path: results/reports/SnpEff/test/test_snpEff.csv
9+
- path: results/reports/snpeff/test/test_snpEff.csv
10+
- path: results/reports/snpeff/test/snpEff_summary.html
11+
- path: results/reports/snpeff/test/test_snpEff.genes.txt
1012
- path: results/multiqc
1113
- name: Run VEP
1214
command: nextflow run main.nf -profile test,annotation,docker --tools vep --skip_tools multiqc

workflows/sarek.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ def extract_csv(csv_file) {
10951095
System.exit(1)
10961096
}
10971097
} else if ((sample_count_tumor == sample_count_all) && params.tools) { // In this case, the sample-sheet contains no normal/germline-samples
1098-
def tools_requiring_normal_samples = ['ascat', 'deepvariant', 'haplotypecaller']
1098+
def tools_requiring_normal_samples = ['ascat', 'deepvariant', 'haplotypecaller', 'msisensorpro']
10991099
def requested_tools_requiring_normal_samples = []
11001100
tools_requiring_normal_samples.each{ tool_requiring_normal_samples ->
11011101
if (params.tools.contains(tool_requiring_normal_samples)) requested_tools_requiring_normal_samples.add(tool_requiring_normal_samples)

0 commit comments

Comments
 (0)