This repository has been archived by the owner on Jan 27, 2020. It is now read-only.
forked from nf-core/sarek
-
Notifications
You must be signed in to change notification settings - Fork 7
Running SnpEff and VEP at once, also fixing CLI for annotators #555
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
ad3587e
skeleton for merging snpEff and VEP
d149ba1
hoping removing these will fix the permission error
1ce19c7
removing UPPMAX dirs
df2474d
test Singularity containers description
1c9dfdc
Merge branch 'master' of github.com:szilvajuhos/CAW
8a9acec
tpypo
12100cf
VEP and snpEff CLI changes
91fa5b1
space adjust
9aee345
additional genes
bd76442
Merge fixes
dfd1898
Merge conflict resolved
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,20 +141,21 @@ process RunSnpeff { | |
|
||
output: | ||
set file("${vcf.baseName}.snpEff.ann.vcf"), file("${vcf.baseName}.snpEff.genes.txt"), file("${vcf.baseName}.snpEff.csv"), file("${vcf.baseName}.snpEff.summary.html") into snpeffReport | ||
set variantCaller,file("${vcf.baseName}.snpEff.ann.vcf") into snpEffOutputVCFs | ||
|
||
when: 'snpeff' in tools | ||
when: 'snpeff' in tools || 'merge' in tools | ||
|
||
script: | ||
""" | ||
java -Xmx${task.memory.toGiga()}g \ | ||
-jar \$SNPEFF_HOME/snpEff.jar \ | ||
${snpeffDb} \ | ||
-csvStats ${vcf.baseName}.snpEff.csv \ | ||
-nodownload \ | ||
-cancer \ | ||
-v \ | ||
${vcf} \ | ||
> ${vcf.baseName}.snpEff.ann.vcf | ||
-jar \$SNPEFF_HOME/snpEff.jar \ | ||
${snpeffDb} \ | ||
-csvStats ${vcf.baseName}.snpEff.csv \ | ||
-nodownload \ | ||
-canon \ | ||
-v \ | ||
${vcf} \ | ||
> ${vcf.baseName}.snpEff.ann.vcf | ||
|
||
mv snpEff_summary.html ${vcf.baseName}.snpEff.summary.html | ||
""" | ||
|
@@ -165,6 +166,13 @@ if (params.verbose) snpeffReport = snpeffReport.view { | |
File : ${it.fileName}" | ||
} | ||
|
||
// When we are running in the 'merge' mode (first snpEff, then VEP) | ||
// we have to exchange the channels | ||
|
||
if('merge' in tools) { | ||
vcfForVep = snpEffOutputVCFs | ||
} | ||
|
||
process RunVEP { | ||
tag {vcf} | ||
|
||
|
@@ -176,7 +184,7 @@ process RunVEP { | |
output: | ||
set file("${vcf.baseName}.vep.ann.vcf"), file("${vcf.baseName}.vep.summary.html") into vepReport | ||
|
||
when: 'vep' in tools | ||
when: 'vep' in tools || 'merge' in tools | ||
|
||
script: | ||
genome = params.genome == 'smallGRCh37' ? 'GRCh37' : params.genome | ||
|
@@ -230,7 +238,8 @@ def defineDirectoryMap() { | |
def defineToolList() { | ||
return [ | ||
'snpeff', | ||
'vep' | ||
'vep', | ||
'merge' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I prefer lists to be sorted, but that's not really important here ;-) |
||
] | ||
} | ||
|
||
|
@@ -252,6 +261,7 @@ def helpMessage() { | |
log.info " Possible values are:" | ||
log.info " snpeff (use snpEff for Annotation of Variants)" | ||
log.info " vep (use VEP for Annotation of Variants)" | ||
log.info " merge (first snpEff, then feed its output VCFs to VEP)" | ||
log.info " --annotateTools" | ||
log.info " Option to configure which tools to annotate." | ||
log.info " Different tools to be separated by commas." | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So if I want to have snpEFF, VEP and merged VCF it's not possible?
Can't we use that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That will be a new feature if it is going to be needed at all. Testing takes time and I do not want to add stuff that is never going to be used or relatively easy to do with some scripting.