-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add CADD annotation * remove cadd patch * Update subworkflows/local/snv_annotation/main.nf Co-authored-by: Anders Jemt <[email protected]> * Update subworkflows/local/annotate_cadd/main.nf Co-authored-by: Anders Jemt <[email protected]> --------- Co-authored-by: Anders Jemt <[email protected]>
- Loading branch information
Showing
38 changed files
with
1,604 additions
and
50 deletions.
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
##INFO=<ID=CADD,Number=1,Type=Float,Description="PHRED-like scaled CADD score."> |
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Config file for defining DSL2 per module options and publishing paths | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Available keys to override module options: | ||
ext.args = Additional arguments appended to command in module. | ||
ext.args2 = Second set of arguments appended to command in module (multi-tool modules). | ||
ext.args3 = Third set of arguments appended to command in module (multi-tool modules). | ||
ext.prefix = File name prefix for output files. | ||
ext.when = Conditional clause | ||
---------------------------------------------------------------------------------------- | ||
*/ | ||
|
||
// | ||
// CADD annotation | ||
// | ||
|
||
process { | ||
|
||
withName: '.*:ANNOTATE_CADD:.*' { | ||
publishDir = [ | ||
enabled: false | ||
] | ||
} | ||
|
||
withName: '.*:ANNOTATE_CADD:BCFTOOLS_VIEW' { | ||
ext.args = [ | ||
'--output-type z', | ||
'--types indels,other' | ||
].join(' ') | ||
ext.prefix = { "${vcf.simpleName}_indels" } | ||
} | ||
|
||
withName: '.*:ANNOTATE_CADD:CADD' { | ||
ext.prefix = { "${vcf.simpleName}_cadd" } | ||
} | ||
|
||
withName: '.*:ANNOTATE_CADD:TABIX_CADD' { | ||
ext.args = { "--force --sequence 1 --begin 2 --end 2" } | ||
} | ||
|
||
withName: '.*:ANNOTATE_CADD:ANNOTATE_INDELS' { | ||
ext.args = [ | ||
'--columns Chrom,Pos,Ref,Alt,-,CADD', | ||
'--output-type z', | ||
'--write-index=tbi' | ||
].join(' ') | ||
ext.prefix = { "${input.simpleName}_ann" } | ||
} | ||
|
||
withName: '.*:ANNOTATE_CADD:REFERENCE_TO_CADD_CHRNAMES' { | ||
ext.args2 = '\'{original=$1; sub("chr","",$1); print original, $1}\'' | ||
ext.prefix = "reference_to_cadd" | ||
ext.suffix = "txt" | ||
} | ||
|
||
withName: '.*:ANNOTATE_CADD:CADD_TO_REFERENCE_CHRNAMES' { | ||
ext.args2 = '\'{original=$1; sub("chr","",$1); print $1, original}\'' | ||
ext.prefix = "cadd_to_reference" | ||
ext.suffix = "txt" | ||
} | ||
|
||
withName: '.*:ANNOTATE_CADD:RENAME_CHRNAMES' { | ||
ext.args = '--output-type z' | ||
} | ||
} |
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
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.