mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-10 20:23:10 +00:00
Merge branch 'master' into gatk-realigntargetcreator
This commit is contained in:
commit
d292f822e4
25 changed files with 443 additions and 42 deletions
63
modules/gatk/unifiedgenotyper/main.nf
Normal file
63
modules/gatk/unifiedgenotyper/main.nf
Normal file
|
@ -0,0 +1,63 @@
|
|||
process GATK_UNIFIEDGENOTYPER {
|
||||
tag "$meta.id"
|
||||
label 'process_medium'
|
||||
|
||||
conda (params.enable_conda ? "bioconda::gatk=3.5" : null)
|
||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||
'https://depot.galaxyproject.org/singularity/gatk:3.5--hdfd78af_11':
|
||||
'quay.io/biocontainers/gatk:3.5--hdfd78af_11' }"
|
||||
|
||||
input:
|
||||
tuple val(meta), path(input), path(index)
|
||||
path fasta
|
||||
path fai
|
||||
path dict
|
||||
path intervals
|
||||
path contamination
|
||||
path dbsnp
|
||||
path comp
|
||||
|
||||
output:
|
||||
tuple val(meta), path("*.vcf.gz"), emit: vcf
|
||||
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.id}"
|
||||
def contamination_file = contamination ? "-contaminationFile ${contamination}" : ""
|
||||
def dbsnp_file = dbsnp ? "--dbsnp ${dbsnp}" : ""
|
||||
def comp_file = comp ? "--comp ${comp}" : ""
|
||||
def intervals_file = intervals ? "--intervals ${intervals}" : ""
|
||||
|
||||
def avail_mem = 3
|
||||
if (!task.memory) {
|
||||
log.info '[GATK RealignerTargetCreator] Available memory not known - defaulting to 3GB. Specify process memory requirements to change this.'
|
||||
} else {
|
||||
avail_mem = task.memory.giga
|
||||
}
|
||||
|
||||
"""
|
||||
gatk3 \\
|
||||
-Xmx${avail_mem}g \\
|
||||
-nt ${task.cpus} \\
|
||||
-T UnifiedGenotyper \\
|
||||
-I ${input} \\
|
||||
-R ${fasta} \\
|
||||
${contamination_file} \\
|
||||
${dbsnp_file} \\
|
||||
${comp_file} \\
|
||||
${intervals_file} \\
|
||||
-o ${prefix}.vcf \\
|
||||
$args
|
||||
|
||||
gzip -n *.vcf
|
||||
|
||||
cat <<-END_VERSIONS > versions.yml
|
||||
"${task.process}":
|
||||
gatk: \$(echo \$(gatk3 --version))
|
||||
END_VERSIONS
|
||||
"""
|
||||
}
|
73
modules/gatk/unifiedgenotyper/meta.yml
Normal file
73
modules/gatk/unifiedgenotyper/meta.yml
Normal file
|
@ -0,0 +1,73 @@
|
|||
name: "gatk_unifiedgenotyper"
|
||||
keywords:
|
||||
- bam
|
||||
- vcf
|
||||
- variant calling
|
||||
tools:
|
||||
- "gatk":
|
||||
description: "The full Genome Analysis Toolkit (GATK) framework, license restricted."
|
||||
homepage: "https://gatk.broadinstitute.org/hc/en-us"
|
||||
documentation: "https://github.com/broadinstitute/gatk-docs"
|
||||
licence: "['https://software.broadinstitute.org/gatk/download/licensing', 'BSD', 'https://www.broadinstitute.org/gatk/about/#licensing']"
|
||||
|
||||
input:
|
||||
- meta:
|
||||
type: map
|
||||
description: |
|
||||
Groovy Map containing sample information
|
||||
e.g. [ id:'test', single_end:false ]
|
||||
- input:
|
||||
type: file
|
||||
description: Sorted and indexed BAM/CRAM/SAM file
|
||||
pattern: "*.bam"
|
||||
- index:
|
||||
type: file
|
||||
description: BAM index file
|
||||
pattern: "*.bai"
|
||||
- fasta:
|
||||
type: file
|
||||
description: Reference file used to generate BAM file
|
||||
pattern: ".{fasta,fa,fna}"
|
||||
- fai:
|
||||
type: file
|
||||
description: Index of reference file used to generate BAM file
|
||||
pattern: ".fai"
|
||||
- dict:
|
||||
type: file
|
||||
description: GATK dict file for reference
|
||||
pattern: ".dict"
|
||||
- intervals:
|
||||
type: file
|
||||
description: Bed file with the genomic regions included in the library (optional)
|
||||
pattern: "*.intervals"
|
||||
- contamination:
|
||||
type: file
|
||||
description: Tab-separated file containing fraction of contamination in sequencing data (per sample) to aggressively remove
|
||||
pattern: "*"
|
||||
- dbsnps:
|
||||
type: file
|
||||
description: VCF file containing known sites (optional)
|
||||
pattern: "*"
|
||||
- comp:
|
||||
type: file
|
||||
description: Comparison VCF file (optional)
|
||||
pattern: "*"
|
||||
|
||||
output:
|
||||
- meta:
|
||||
type: map
|
||||
description: |
|
||||
Groovy Map containing sample information
|
||||
e.g. [ id:'test', single_end:false ]
|
||||
- versions:
|
||||
type: file
|
||||
description: File containing software versions
|
||||
pattern: "versions.yml"
|
||||
- vcf:
|
||||
type: file
|
||||
description: VCF file containing called variants
|
||||
pattern: "*.vcf.gz"
|
||||
|
||||
authors:
|
||||
- "@ilight1542"
|
||||
- "@jfy133"
|
|
@ -2,10 +2,10 @@ process PICARD_ADDORREPLACEREADGROUPS {
|
|||
tag "$meta.id"
|
||||
label 'process_low'
|
||||
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.1" : null)
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.2" : null)
|
||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.1--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.1--hdfd78af_0' }"
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.2--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.2--hdfd78af_0' }"
|
||||
|
||||
input:
|
||||
tuple val(meta), path(bam)
|
||||
|
|
|
@ -2,10 +2,10 @@ process PICARD_CLEANSAM {
|
|||
tag "$meta.id"
|
||||
label 'process_medium'
|
||||
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.1" : null)
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.2" : null)
|
||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.1--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.1--hdfd78af_0' }"
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.2--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.2--hdfd78af_0' }"
|
||||
|
||||
input:
|
||||
tuple val(meta), path(bam)
|
||||
|
|
|
@ -2,10 +2,10 @@ process PICARD_COLLECTHSMETRICS {
|
|||
tag "$meta.id"
|
||||
label 'process_medium'
|
||||
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.1" : null)
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.2" : null)
|
||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.1--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.1--hdfd78af_0' }"
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.2--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.2--hdfd78af_0' }"
|
||||
|
||||
input:
|
||||
tuple val(meta), path(bam)
|
||||
|
|
|
@ -2,10 +2,10 @@ process PICARD_COLLECTMULTIPLEMETRICS {
|
|||
tag "$meta.id"
|
||||
label 'process_medium'
|
||||
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.1" : null)
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.2" : null)
|
||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.1--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.1--hdfd78af_0' }"
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.2--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.2--hdfd78af_0' }"
|
||||
|
||||
input:
|
||||
tuple val(meta), path(bam)
|
||||
|
|
|
@ -2,10 +2,10 @@ process PICARD_COLLECTWGSMETRICS {
|
|||
tag "$meta.id"
|
||||
label 'process_medium'
|
||||
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.1" : null)
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.2" : null)
|
||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.1--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.1--hdfd78af_0' }"
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.2--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.2--hdfd78af_0' }"
|
||||
|
||||
input:
|
||||
tuple val(meta), path(bam)
|
||||
|
|
|
@ -2,10 +2,10 @@ process PICARD_CREATESEQUENCEDICTIONARY {
|
|||
tag "$meta.id"
|
||||
label 'process_medium'
|
||||
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.1" : null)
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.2" : null)
|
||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.1--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.1--hdfd78af_0' }"
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.2--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.2--hdfd78af_0' }"
|
||||
|
||||
input:
|
||||
tuple val(meta), path(fasta)
|
||||
|
|
|
@ -2,10 +2,10 @@ process PICARD_CROSSCHECKFINGERPRINTS {
|
|||
tag "$meta.id"
|
||||
label 'process_medium'
|
||||
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.1" : null)
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.2" : null)
|
||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.1--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.1--hdfd78af_0' }"
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.2--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.2--hdfd78af_0' }"
|
||||
|
||||
input:
|
||||
tuple val(meta), path(input1)
|
||||
|
|
|
@ -2,10 +2,10 @@ process PICARD_FILTERSAMREADS {
|
|||
tag "$meta.id"
|
||||
label 'process_low'
|
||||
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.1" : null)
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.2" : null)
|
||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.1--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.1--hdfd78af_0' }"
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.2--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.2--hdfd78af_0' }"
|
||||
|
||||
input:
|
||||
tuple val(meta), path(bam), path(readlist)
|
||||
|
|
|
@ -2,10 +2,10 @@ process PICARD_FIXMATEINFORMATION {
|
|||
tag "$meta.id"
|
||||
label 'process_low'
|
||||
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.1" : null)
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.2" : null)
|
||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.1--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.1--hdfd78af_0' }"
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.2--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.2--hdfd78af_0' }"
|
||||
|
||||
input:
|
||||
tuple val(meta), path(bam)
|
||||
|
|
|
@ -2,10 +2,10 @@ process PICARD_LIFTOVERVCF {
|
|||
tag "$meta.id"
|
||||
label 'process_low'
|
||||
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.1" : null)
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.2" : null)
|
||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.1--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.1--hdfd78af_0' }"
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.2--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.2--hdfd78af_0' }"
|
||||
|
||||
input:
|
||||
tuple val(meta), path(input_vcf)
|
||||
|
|
|
@ -2,10 +2,10 @@ process PICARD_MARKDUPLICATES {
|
|||
tag "$meta.id"
|
||||
label 'process_medium'
|
||||
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.1" : null)
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.2" : null)
|
||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.1--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.1--hdfd78af_0' }"
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.2--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.2--hdfd78af_0' }"
|
||||
|
||||
input:
|
||||
tuple val(meta), path(bam)
|
||||
|
|
|
@ -2,10 +2,10 @@ process PICARD_MERGESAMFILES {
|
|||
tag "$meta.id"
|
||||
label 'process_medium'
|
||||
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.1" : null)
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.2" : null)
|
||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.1--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.1--hdfd78af_0' }"
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.2--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.2--hdfd78af_0' }"
|
||||
|
||||
input:
|
||||
tuple val(meta), path(bams)
|
||||
|
|
|
@ -2,10 +2,10 @@ process PICARD_SORTSAM {
|
|||
tag "$meta.id"
|
||||
label 'process_low'
|
||||
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.1" : null)
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.2" : null)
|
||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.1--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.1--hdfd78af_0' }"
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.2--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.2--hdfd78af_0' }"
|
||||
|
||||
input:
|
||||
tuple val(meta), path(bam)
|
||||
|
|
|
@ -2,10 +2,10 @@ process PICARD_SORTVCF {
|
|||
tag "$meta.id"
|
||||
label 'process_medium'
|
||||
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.1" : null)
|
||||
conda (params.enable_conda ? "bioconda::picard=2.27.2" : null)
|
||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.1--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.1--hdfd78af_0' }"
|
||||
'https://depot.galaxyproject.org/singularity/picard:2.27.2--hdfd78af_0' :
|
||||
'quay.io/biocontainers/picard:2.27.2--hdfd78af_0' }"
|
||||
|
||||
input:
|
||||
tuple val(meta), path(vcf)
|
||||
|
|
55
modules/snippy/run/main.nf
Normal file
55
modules/snippy/run/main.nf
Normal file
|
@ -0,0 +1,55 @@
|
|||
process SNIPPY_RUN {
|
||||
tag "$meta.id"
|
||||
label 'process_low'
|
||||
|
||||
conda (params.enable_conda ? "bioconda::snippy=4.6.0" : null)
|
||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||
'https://depot.galaxyproject.org/singularity/snippy:4.6.0--hdfd78af_2' :
|
||||
'quay.io/biocontainers/snippy:4.6.0--hdfd78af_2' }"
|
||||
|
||||
input:
|
||||
tuple val(meta), path(reads)
|
||||
path reference
|
||||
|
||||
output:
|
||||
tuple val(meta), path("${prefix}/${prefix}.tab") , emit: tab
|
||||
tuple val(meta), path("${prefix}/${prefix}.csv") , emit: csv
|
||||
tuple val(meta), path("${prefix}/${prefix}.html") , emit: html
|
||||
tuple val(meta), path("${prefix}/${prefix}.vcf") , emit: vcf
|
||||
tuple val(meta), path("${prefix}/${prefix}.bed") , emit: bed
|
||||
tuple val(meta), path("${prefix}/${prefix}.gff") , emit: gff
|
||||
tuple val(meta), path("${prefix}/${prefix}.bam") , emit: bam
|
||||
tuple val(meta), path("${prefix}/${prefix}.bam.bai") , emit: bai
|
||||
tuple val(meta), path("${prefix}/${prefix}.log") , emit: log
|
||||
tuple val(meta), path("${prefix}/${prefix}.aligned.fa") , emit: aligned_fa
|
||||
tuple val(meta), path("${prefix}/${prefix}.consensus.fa") , emit: consensus_fa
|
||||
tuple val(meta), path("${prefix}/${prefix}.consensus.subs.fa"), emit: consensus_subs_fa
|
||||
tuple val(meta), path("${prefix}/${prefix}.raw.vcf") , emit: raw_vcf
|
||||
tuple val(meta), path("${prefix}/${prefix}.filt.vcf") , emit: filt_vcf
|
||||
tuple val(meta), path("${prefix}/${prefix}.vcf.gz") , emit: vcf_gz
|
||||
tuple val(meta), path("${prefix}/${prefix}.vcf.gz.csi") , emit: vcf_csi
|
||||
tuple val(meta), path("${prefix}/${prefix}.txt") , emit: txt
|
||||
path "versions.yml" , emit: versions
|
||||
|
||||
when:
|
||||
task.ext.when == null || task.ext.when
|
||||
|
||||
script:
|
||||
def args = task.ext.args ?: ''
|
||||
prefix = task.ext.prefix ?: "${meta.id}"
|
||||
def read_inputs = meta.single_end ? "--se ${reads[0]}" : "--R1 ${reads[0]} --R2 ${reads[1]}"
|
||||
"""
|
||||
snippy \\
|
||||
$args \\
|
||||
--cpus $task.cpus \\
|
||||
--outdir $prefix \\
|
||||
--reference $reference \\
|
||||
--prefix $prefix \\
|
||||
$read_inputs
|
||||
|
||||
cat <<-END_VERSIONS > versions.yml
|
||||
"${task.process}":
|
||||
snippy: \$(echo \$(snippy --version 2>&1) | sed 's/snippy //')
|
||||
END_VERSIONS
|
||||
"""
|
||||
}
|
110
modules/snippy/run/meta.yml
Normal file
110
modules/snippy/run/meta.yml
Normal file
|
@ -0,0 +1,110 @@
|
|||
name: snippy_run
|
||||
description: Rapid haploid variant calling
|
||||
keywords:
|
||||
- variant
|
||||
- fastq
|
||||
- bacteria
|
||||
tools:
|
||||
- snippy:
|
||||
description: "Rapid bacterial SNP calling and core genome alignments"
|
||||
homepage: "https://github.com/tseemann/snippy"
|
||||
documentation: "https://github.com/tseemann/snippy"
|
||||
tool_dev_url: "https://github.com/tseemann/snippy"
|
||||
doi: ""
|
||||
licence: "['GPL v2']"
|
||||
input:
|
||||
- meta:
|
||||
type: map
|
||||
description: |
|
||||
Groovy Map containing sample information
|
||||
e.g. [ id:'test', single_end:false ]
|
||||
- reads:
|
||||
type: file
|
||||
description: |
|
||||
List of input FastQ files of size 1 and 2 for single-end and paired-end data,
|
||||
respectively.
|
||||
pattern: "*.{fq,fastq,fq.gz,fastq.gz}"
|
||||
- index:
|
||||
type: file
|
||||
description: Reference genome in GenBank (preferred) or FASTA format
|
||||
pattern: "*.{gbk,gbk.gz,fa,fa.gz}"
|
||||
output:
|
||||
- meta:
|
||||
type: map
|
||||
description: |
|
||||
Groovy Map containing sample information
|
||||
e.g. [ id:'test', single_end:false ]
|
||||
- versions:
|
||||
type: file
|
||||
description: File containing software versions
|
||||
pattern: "versions.yml"
|
||||
- tab:
|
||||
type: file
|
||||
description: A simple tab-separated summary of all the variants
|
||||
pattern: "*.tab"
|
||||
- csv:
|
||||
type: file
|
||||
description: A comma-separated version of the .tab file
|
||||
pattern: "*.csv"
|
||||
- html:
|
||||
type: file
|
||||
description: A HTML version of the .tab file
|
||||
pattern: "*.html"
|
||||
- vcf:
|
||||
type: file
|
||||
description: The final annotated variants in VCF format
|
||||
pattern: "*.vcf"
|
||||
- bed:
|
||||
type: file
|
||||
description: The variants in BED format
|
||||
pattern: "*.bed"
|
||||
- gff:
|
||||
type: file
|
||||
description: The variants in GFF3 format
|
||||
pattern: "*.gff"
|
||||
- bam:
|
||||
type: file
|
||||
description: The alignments in BAM format. Includes unmapped, multimapping reads. Excludes duplicates.
|
||||
pattern: "*.bam"
|
||||
- bai:
|
||||
type: file
|
||||
description: Index for the .bam file
|
||||
pattern: "*.bam.bai"
|
||||
- log:
|
||||
type: file
|
||||
description: A log file with the commands run and their outputs
|
||||
pattern: "*.log"
|
||||
- aligned_fa:
|
||||
type: file
|
||||
description: A version of the reference but with - at position with depth=0 and N for 0 < depth < --mincov (does not have variants)
|
||||
pattern: "*.aligned.fa"
|
||||
- consensus_fa:
|
||||
type: file
|
||||
description: A version of the reference genome with all variants instantiated
|
||||
pattern: "*.consensus.fa"
|
||||
- consensus_subs_fa:
|
||||
type: file
|
||||
description: A version of the reference genome with only substitution variants instantiated
|
||||
pattern: "*.consensus.subs.fa"
|
||||
- raw_vcf:
|
||||
type: file
|
||||
description: The unfiltered variant calls from Freebayes
|
||||
pattern: "*.raw.vcf"
|
||||
- filt_vcf:
|
||||
type: file
|
||||
description: The filtered variant calls from Freebayes
|
||||
pattern: "*.filt.vcf"
|
||||
- vcf_gz:
|
||||
type: file
|
||||
description: Compressed .vcf file via BGZIP
|
||||
pattern: "*.vcf.gz"
|
||||
- vcf_csi:
|
||||
type: file
|
||||
description: Index for the .vcf.gz via bcftools index
|
||||
pattern: "*.vcf.gz.csi"
|
||||
- txt:
|
||||
type: file
|
||||
description: Tab-separated columnar list of statistics
|
||||
pattern: "*.txt"
|
||||
authors:
|
||||
- "@rpetit3"
|
|
@ -719,6 +719,10 @@ gatk/realignertargetcreator:
|
|||
- modules/gatk/realignertargetcreator/**
|
||||
- tests/modules/gatk/realignertargetcreator/**
|
||||
|
||||
gatk/unifiedgenotyper:
|
||||
- modules/gatk/unifiedgenotyper/**
|
||||
- tests/modules/gatk/unifiedgenotyper/**
|
||||
|
||||
gatk4/applybqsr:
|
||||
- modules/gatk4/applybqsr/**
|
||||
- tests/modules/gatk4/applybqsr/**
|
||||
|
@ -1863,6 +1867,10 @@ snapaligner/index:
|
|||
- modules/snapaligner/index/**
|
||||
- tests/modules/snapaligner/index/**
|
||||
|
||||
snippy/run:
|
||||
- modules/snippy/run/**
|
||||
- tests/modules/snippy/run/**
|
||||
|
||||
snpdists:
|
||||
- modules/snpdists/**
|
||||
- tests/modules/snpdists/**
|
||||
|
|
18
tests/modules/gatk/unifiedgenotyper/main.nf
Normal file
18
tests/modules/gatk/unifiedgenotyper/main.nf
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env nextflow
|
||||
|
||||
nextflow.enable.dsl = 2
|
||||
|
||||
include { GATK_UNIFIEDGENOTYPER } from '../../../../modules/gatk/unifiedgenotyper/main.nf'
|
||||
|
||||
workflow test_gatk_unifiedgenotyper {
|
||||
|
||||
input = [ [ id:'test' ], // meta map
|
||||
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true),
|
||||
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam_bai'], checkIfExists: true),
|
||||
]
|
||||
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
||||
fai = file(params.test_data['sarscov2']['genome']['genome_fasta_fai'], checkIfExists: true)
|
||||
dict = file(params.test_data['sarscov2']['genome']['genome_dict'], checkIfExists: true)
|
||||
|
||||
GATK_UNIFIEDGENOTYPER ( input, fasta, fai, dict, [], [], [], [])
|
||||
}
|
5
tests/modules/gatk/unifiedgenotyper/nextflow.config
Normal file
5
tests/modules/gatk/unifiedgenotyper/nextflow.config
Normal file
|
@ -0,0 +1,5 @@
|
|||
process {
|
||||
|
||||
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
|
||||
|
||||
}
|
9
tests/modules/gatk/unifiedgenotyper/test.yml
Normal file
9
tests/modules/gatk/unifiedgenotyper/test.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
- name: gatk unifiedgenotyper test_gatk_unifiedgenotyper
|
||||
command: nextflow run ./tests/modules/gatk/unifiedgenotyper -entry test_gatk_unifiedgenotyper -c ./tests/config/nextflow.config -c ./tests/modules/gatk/unifiedgenotyper/nextflow.config
|
||||
tags:
|
||||
- gatk
|
||||
- gatk/unifiedgenotyper
|
||||
files:
|
||||
- path: output/gatk/test.vcf.gz
|
||||
contains:
|
||||
- "#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT test"
|
16
tests/modules/snippy/run/main.nf
Normal file
16
tests/modules/snippy/run/main.nf
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env nextflow
|
||||
|
||||
nextflow.enable.dsl = 2
|
||||
|
||||
include { SNIPPY_RUN } from '../../../../modules/snippy/run/main.nf'
|
||||
|
||||
workflow test_snippy_run {
|
||||
|
||||
input = [ [ id:'test', single_end:false ], // meta map
|
||||
[ file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true),
|
||||
file(params.test_data['sarscov2']['illumina']['test_2_fastq_gz'], checkIfExists: true) ]
|
||||
]
|
||||
reference = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
||||
|
||||
SNIPPY_RUN ( input, reference )
|
||||
}
|
5
tests/modules/snippy/run/nextflow.config
Normal file
5
tests/modules/snippy/run/nextflow.config
Normal file
|
@ -0,0 +1,5 @@
|
|||
process {
|
||||
|
||||
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
|
||||
|
||||
}
|
39
tests/modules/snippy/run/test.yml
Normal file
39
tests/modules/snippy/run/test.yml
Normal file
|
@ -0,0 +1,39 @@
|
|||
- name: snippy run test_snippy_run
|
||||
command: |
|
||||
nextflow run tests/modules/snippy/run -entry test_snippy_run -c tests/config/nextflow.config -c tests/modules/snippy/run/nextflow.config
|
||||
tags:
|
||||
- snippy/run
|
||||
- snippy
|
||||
files:
|
||||
- path: output/snippy/test/test.aligned.fa
|
||||
md5sum: 47e3390d4167edf1955d162d37aca5e3
|
||||
- path: output/snippy/test/test.bam
|
||||
- path: output/snippy/test/test.bam.bai
|
||||
- path: output/snippy/test/test.bed
|
||||
- path: output/snippy/test/test.consensus.fa
|
||||
md5sum: 483f4a5dfe60171c86ee9b7e6dff908b
|
||||
- path: output/snippy/test/test.consensus.subs.fa
|
||||
md5sum: 483f4a5dfe60171c86ee9b7e6dff908b
|
||||
- path: output/snippy/test/test.csv
|
||||
md5sum: 322f942115e5945c2041a88246166703
|
||||
- path: output/snippy/test/test.filt.vcf
|
||||
contains: ["fileformat", "freebayes", "CHROM"]
|
||||
- path: output/snippy/test/test.gff
|
||||
md5sum: df19e1b84ba6f691d20c72b397c88abf
|
||||
- path: output/snippy/test/test.html
|
||||
md5sum: 1ccbf0ffcadae1a6b2e11681d24c9938
|
||||
- path: output/snippy/test/test.log
|
||||
contains: ["snippy", "consensus", "subs"]
|
||||
- path: output/snippy/test/test.raw.vcf
|
||||
contains: ["fileformat", "freebayes", "CHROM"]
|
||||
- path: output/snippy/test/test.tab
|
||||
md5sum: beb9bde3bce985e53e8feba9ec5b136e
|
||||
- path: output/snippy/test/test.txt
|
||||
contains: ["DateTime", "ReadFiles", "VariantTotal"]
|
||||
- path: output/snippy/test/test.vcf
|
||||
contains: ["fileformat", "freebayes", "CHROM"]
|
||||
- path: output/snippy/test/test.vcf.gz
|
||||
- path: output/snippy/test/test.vcf.gz.csi
|
||||
md5sum: bed9fa291c220a1ba04eb2d448932ffc
|
||||
- path: output/snippy/versions.yml
|
||||
md5sum: 518aad56c4dbefb6cbcde5ab38cf7b5d
|
Loading…
Reference in a new issue