-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: CLIN-3406 make vep command configurable
Other change: in github ci workflow, we consider the latest stable nextflow version and avoid testing on edge versions.
- Loading branch information
1 parent
16eeed0
commit a3ecf05
Showing
24 changed files
with
530 additions
and
134 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// This module does not follow nf-core standards. We plan to fix or replace it with an nf-core module in the future. | ||
process splitMultiAllelics{ | ||
label 'medium' | ||
|
||
container 'staphb/bcftools' | ||
|
||
input: | ||
tuple val(meta), path(vcfFile) | ||
path referenceGenome | ||
|
||
output: | ||
tuple val(meta), path("*splitted.vcf*") | ||
|
||
script: | ||
def familyId = meta.familyId | ||
def exactVcfFile = vcfFile.find { it.name.endsWith("vcf.gz") } | ||
""" | ||
set -e | ||
echo $familyId > file | ||
bcftools annotate -x FORMAT/PRI ${exactVcfFile} | bcftools norm -c w -m -any -f $referenceGenome/${params.referenceGenomeFasta} --old-rec-tag OLD_RECORD --output-type z --output ${familyId}.normed.vcf.gz | ||
bcftools view --min-ac 1 --output-type z --output ${familyId}.splitted.vcf.gz ${familyId}.normed.vcf.gz | ||
bcftools index -t ${familyId}.splitted.vcf.gz | ||
""" | ||
|
||
stub: | ||
def familyId = meta.familyId | ||
""" | ||
touch ${familyId}.splitted.vcf.gz | ||
touch ${familyId}.splitted.vcf.gz.tbi | ||
""" | ||
} |
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,23 @@ | ||
// This module does not follow nf-core standards. We plan to fix or replace it with an nf-core module in the future. | ||
process tabix { | ||
label 'tiny' | ||
|
||
input: | ||
tuple val(meta), path(vcfFile) | ||
|
||
output: | ||
path "*.tbi" | ||
|
||
script: | ||
def args = task.ext.args ?: '' | ||
|
||
""" | ||
tabix \\ | ||
$vcfFile \\ | ||
$args | ||
""" | ||
stub: | ||
""" | ||
touch ${vcfFile}.tbi | ||
""" | ||
} |
This file was deleted.
Oops, something went wrong.
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.
Oops, something went wrong.