-
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.
Merge pull request #8 from bio-raum/dev
Dev
- Loading branch information
Showing
38 changed files
with
1,570 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: bcftools_stats | ||
channels: | ||
- conda-forge | ||
- bioconda | ||
- defaults | ||
dependencies: | ||
- bioconda::bcftools=1.20 | ||
- bioconda::htslib=1.20 |
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,34 @@ | ||
process BCFTOOLS_STATS { | ||
tag "$meta.sample_id" | ||
label 'short_single' | ||
|
||
conda "${moduleDir}/environment.yml" | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/bcftools:1.20--h8b25389_0': | ||
'quay.io/biocontainers/bcftools:1.20--h8b25389_0' }" | ||
|
||
input: | ||
tuple val(meta), path(vcf), path(tbi) | ||
|
||
output: | ||
tuple val(meta), path("*stats.txt"), emit: stats | ||
path "versions.yml" , emit: versions | ||
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
def args = task.ext.args ?: '' | ||
def prefix = task.ext.prefix ?: "${meta.sample_id}" | ||
|
||
""" | ||
bcftools stats \\ | ||
$args \\ | ||
$vcf > ${prefix}.bcftools_stats.txt | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
bcftools: \$(bcftools --version 2>&1 | head -n1 | sed 's/^.*bcftools //; s/ .*\$//') | ||
END_VERSIONS | ||
""" | ||
} |
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,77 @@ | ||
name: bcftools_stats | ||
description: Generates stats from VCF files | ||
keywords: | ||
- variant calling | ||
- stats | ||
- VCF | ||
tools: | ||
- stats: | ||
description: | | ||
Parses VCF or BCF and produces text file stats which is suitable for | ||
machine processing and can be plotted using plot-vcfstats. | ||
homepage: http://samtools.github.io/bcftools/bcftools.html | ||
documentation: http://www.htslib.org/doc/bcftools.html | ||
doi: 10.1093/bioinformatics/btp352 | ||
licence: ["MIT"] | ||
input: | ||
- meta: | ||
type: map | ||
description: | | ||
Groovy Map containing sample information | ||
e.g. [ id:'test', single_end:false ] | ||
- vcf: | ||
type: file | ||
description: VCF input file | ||
pattern: "*.{vcf}" | ||
- tbi: | ||
type: file | ||
description: | | ||
The tab index for the VCF file to be inspected. Optional: only required when parameter regions is chosen. | ||
pattern: "*.tbi" | ||
- regions: | ||
type: file | ||
description: | | ||
Optionally, restrict the operation to regions listed in this file. (VCF, BED or tab-delimited) | ||
- targets: | ||
type: file | ||
description: | | ||
Optionally, restrict the operation to regions listed in this file (doesn't rely upon tbi index files) | ||
- samples: | ||
type: file | ||
description: | | ||
Optional, file of sample names to be included or excluded. | ||
e.g. 'file.tsv' | ||
- exons: | ||
type: file | ||
description: | | ||
Tab-delimited file with exons for indel frameshifts (chr,beg,end; 1-based, inclusive, optionally bgzip compressed). | ||
e.g. 'exons.tsv.gz' | ||
- fasta: | ||
type: file | ||
description: | | ||
Faidx indexed reference sequence file to determine INDEL context. | ||
e.g. 'reference.fa' | ||
output: | ||
- meta: | ||
type: map | ||
description: | | ||
Groovy Map containing sample information | ||
e.g. [ id:'test', single_end:false ] | ||
- stats: | ||
type: file | ||
description: Text output file containing stats | ||
pattern: "*_{stats.txt}" | ||
- versions: | ||
type: file | ||
description: File containing software versions | ||
pattern: "versions.yml" | ||
authors: | ||
- "@joseespinosa" | ||
- "@drpatelh" | ||
- "@SusiJo" | ||
- "@TCLamnidis" | ||
maintainers: | ||
- "@joseespinosa" | ||
- "@drpatelh" | ||
- "@SusiJo" | ||
- "@TCLamnidis" |
Oops, something went wrong.