mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2025-01-18 02:46:13 -05:00
Merge branch 'master' into new-module-rtg/vcfeval
This commit is contained in:
commit
2b91985aa0
17 changed files with 170 additions and 228 deletions
|
@ -1,4 +1,4 @@
|
||||||
process SNAPALIGNER_PAIRED {
|
process SNAPALIGNER_ALIGN {
|
||||||
tag '$meta.id'
|
tag '$meta.id'
|
||||||
label 'process_high'
|
label 'process_high'
|
||||||
|
|
||||||
|
@ -21,15 +21,16 @@ process SNAPALIGNER_PAIRED {
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
|
def subcmd = meta.single_end ? "single" : "paired"
|
||||||
|
|
||||||
"""
|
"""
|
||||||
mkdir -p index
|
mkdir -p index
|
||||||
mv $index index/
|
mv $index index/
|
||||||
|
|
||||||
snap-aligner paired \\
|
snap-aligner ${subcmd} \\
|
||||||
index \\
|
index \\
|
||||||
${reads.join(" ")} \\
|
${reads.join(" ")} \\
|
||||||
-o -bam ${prefix}.bam \\
|
-o ${prefix}.bam \\
|
||||||
-t ${task.cpus} \\
|
-t ${task.cpus} \\
|
||||||
$args
|
$args
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: "snapaligner_paired"
|
name: "snapaligner_align"
|
||||||
description: Performs paired end fastq alignment to a fasta reference using SNAP
|
description: Performs fastq alignment to a fasta reference using SNAP
|
||||||
keywords:
|
keywords:
|
||||||
- alignment
|
- alignment
|
||||||
- map
|
- map
|
||||||
|
@ -22,7 +22,7 @@ input:
|
||||||
e.g. [ id:'test', single_end:false ]
|
e.g. [ id:'test', single_end:false ]
|
||||||
- reads:
|
- reads:
|
||||||
type: file
|
type: file
|
||||||
description: List of input fastq files of size 2 for fastq or 1 for bam
|
description: List of input fastq files of size 2 for paired fastq or 1 for bam or single fastq
|
||||||
pattern: "*.{fastq.gz,fq.gz,fastq,fq,bam}"
|
pattern: "*.{fastq.gz,fq.gz,fastq,fq,bam}"
|
||||||
- index:
|
- index:
|
||||||
type: file
|
type: file
|
|
@ -1,41 +0,0 @@
|
||||||
process SNAPALIGNER_SINGLE {
|
|
||||||
tag '$meta.id'
|
|
||||||
label 'process_high'
|
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::snap-aligner=2.0.1" : null)
|
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
||||||
'https://depot.galaxyproject.org/singularity/snap-aligner:2.0.1--hd03093a_1':
|
|
||||||
'quay.io/biocontainers/snap-aligner:2.0.1--hd03093a_1' }"
|
|
||||||
|
|
||||||
input:
|
|
||||||
tuple val(meta), path(reads)
|
|
||||||
path index
|
|
||||||
|
|
||||||
output:
|
|
||||||
tuple val(meta), path("*.bam"), emit: bam
|
|
||||||
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}"
|
|
||||||
|
|
||||||
"""
|
|
||||||
mkdir -p index
|
|
||||||
mv $index index/
|
|
||||||
|
|
||||||
snap-aligner single \\
|
|
||||||
index \\
|
|
||||||
${reads.join(" ")} \\
|
|
||||||
-o -bam ${prefix}.bam \\
|
|
||||||
-t ${task.cpus} \\
|
|
||||||
$args
|
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
|
||||||
"${task.process}":
|
|
||||||
snapaligner: \$(snap-aligner 2>&1| head -n 1 | sed 's/^.*version //;s/.\$//')
|
|
||||||
END_VERSIONS
|
|
||||||
"""
|
|
||||||
}
|
|
|
@ -1,48 +0,0 @@
|
||||||
name: "snapaligner_single"
|
|
||||||
description: Performs single end fastq alignment to a fasta reference using SNAP
|
|
||||||
keywords:
|
|
||||||
- alignment
|
|
||||||
- map
|
|
||||||
- fastq
|
|
||||||
- bam
|
|
||||||
- sam
|
|
||||||
tools:
|
|
||||||
- "snapaligner":
|
|
||||||
description: "Scalable Nucleotide Alignment Program -- a fast and accurate read aligner for high-throughput sequencing data"
|
|
||||||
homepage: "http://snap.cs.berkeley.edu"
|
|
||||||
documentation: "https://1drv.ms/b/s!AhuEg_0yZD86hcpblUt-muHKYsG8fA?e=R8ogug"
|
|
||||||
tool_dev_url: "https://github.com/amplab/snap"
|
|
||||||
doi: "10.1101/2021.11.23.469039"
|
|
||||||
licence: "['Apache v2']"
|
|
||||||
input:
|
|
||||||
- meta:
|
|
||||||
type: map
|
|
||||||
description: |
|
|
||||||
Groovy Map containing sample information
|
|
||||||
e.g. [ id:'test', single_end:false ]
|
|
||||||
- reads:
|
|
||||||
type: file
|
|
||||||
description: List of single end input files
|
|
||||||
pattern: "*.{fastq.gz,fq.gz,fastq,fq,bam}"
|
|
||||||
- index:
|
|
||||||
type: file
|
|
||||||
description: List of SNAP genome index files
|
|
||||||
pattern: "{Genome,GenomeIndex,GenomeIndexHash,OverflowTable}"
|
|
||||||
|
|
||||||
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"
|
|
||||||
- bam:
|
|
||||||
type: file
|
|
||||||
description: Aligned BAM file
|
|
||||||
pattern: "*.{bam}"
|
|
||||||
|
|
||||||
authors:
|
|
||||||
- "@matthdsm"
|
|
|
@ -1,43 +1,26 @@
|
||||||
process SRATOOLS_PREFETCH {
|
process SRATOOLS_PREFETCH {
|
||||||
tag "$id"
|
tag "$id"
|
||||||
label 'process_low'
|
label 'process_low'
|
||||||
label 'error_retry'
|
|
||||||
|
|
||||||
conda (params.enable_conda ? 'bioconda::sra-tools=2.11.0' : null)
|
conda (params.enable_conda ? 'bioconda::sra-tools=2.11.0' : null)
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/sra-tools:2.11.0--pl5262h314213e_0' :
|
'https://depot.galaxyproject.org/singularity/sra-tools:2.11.0--pl5321ha49a11a_3' :
|
||||||
'quay.io/biocontainers/sra-tools:2.11.0--pl5262h314213e_0' }"
|
'quay.io/biocontainers/sra-tools:2.11.0--pl5321ha49a11a_3' }"
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(meta), val(id)
|
tuple val(meta), val(id)
|
||||||
|
|
||||||
output:
|
output:
|
||||||
tuple val(meta), path("$id"), emit: sra
|
tuple val(meta), path(id), emit: sra
|
||||||
path "versions.yml" , emit: versions
|
path "versions.yml" , emit: versions
|
||||||
|
|
||||||
when:
|
when:
|
||||||
task.ext.when == null || task.ext.when
|
task.ext.when == null || task.ext.when
|
||||||
|
|
||||||
script:
|
shell:
|
||||||
def args = task.ext.args ?: ''
|
args = task.ext.args ?: ''
|
||||||
def config = "/LIBS/GUID = \"${UUID.randomUUID().toString()}\"\\n/libs/cloud/report_instance_identity = \"true\"\\n"
|
args2 = task.ext.args2 ?: '5 1 100' // <num retries> <base delay in seconds> <max delay in seconds>
|
||||||
"""
|
config = "/LIBS/GUID = \"${UUID.randomUUID().toString()}\"\\n/libs/cloud/report_instance_identity = \"true\"\\n"
|
||||||
eval "\$(vdb-config -o n NCBI_SETTINGS | sed 's/[" ]//g')"
|
|
||||||
if [[ ! -f "\${NCBI_SETTINGS}" ]]; then
|
|
||||||
mkdir -p "\$(dirname "\${NCBI_SETTINGS}")"
|
|
||||||
printf '${config}' > "\${NCBI_SETTINGS}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
prefetch \\
|
template 'retry_with_backoff.sh'
|
||||||
$args \\
|
|
||||||
--progress \\
|
|
||||||
$id
|
|
||||||
|
|
||||||
vdb-validate $id
|
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
|
||||||
"${task.process}":
|
|
||||||
sratools: \$(prefetch --version 2>&1 | grep -Eo '[0-9.]+')
|
|
||||||
END_VERSIONS
|
|
||||||
"""
|
|
||||||
}
|
}
|
||||||
|
|
59
modules/sratools/prefetch/templates/retry_with_backoff.sh
Executable file
59
modules/sratools/prefetch/templates/retry_with_backoff.sh
Executable file
|
@ -0,0 +1,59 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -u
|
||||||
|
|
||||||
|
retry_with_backoff() {
|
||||||
|
local max_attempts=${1}
|
||||||
|
local delay=${2}
|
||||||
|
local max_time=${3}
|
||||||
|
local attempt=1
|
||||||
|
local output=
|
||||||
|
local status=
|
||||||
|
|
||||||
|
# Remove the first three arguments to this function in order to access
|
||||||
|
# the 'real' command with `${@}`.
|
||||||
|
shift 3
|
||||||
|
|
||||||
|
while [ ${attempt} -le ${max_attempts} ]; do
|
||||||
|
output=$("${@}")
|
||||||
|
status=${?}
|
||||||
|
|
||||||
|
if [ ${status} -eq 0 ]; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ${attempt} -lt ${max_attempts} ]; then
|
||||||
|
echo "Failed attempt ${attempt} of ${max_attempts}. Retrying in ${delay} s." >&2
|
||||||
|
sleep ${delay}
|
||||||
|
elif [ ${attempt} -eq ${max_attempts} ]; then
|
||||||
|
echo "Failed after ${attempt} attempts." >&2
|
||||||
|
return ${status}
|
||||||
|
fi
|
||||||
|
|
||||||
|
attempt=$(( ${attempt} + 1 ))
|
||||||
|
delay=$(( ${delay} * 2 ))
|
||||||
|
if [ ${delay} -ge ${max_time} ]; then
|
||||||
|
delay=${max_time}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "${output}"
|
||||||
|
}
|
||||||
|
|
||||||
|
eval "$(vdb-config -o n NCBI_SETTINGS | sed 's/[" ]//g')"
|
||||||
|
if [[ ! -f "${NCBI_SETTINGS}" ]]; then
|
||||||
|
mkdir -p "$(dirname "${NCBI_SETTINGS}")"
|
||||||
|
printf '!{config}' > "${NCBI_SETTINGS}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
retry_with_backoff !{args2} \
|
||||||
|
prefetch \
|
||||||
|
!{args} \
|
||||||
|
!{id}
|
||||||
|
|
||||||
|
vdb-validate !{id}
|
||||||
|
|
||||||
|
cat <<-END_VERSIONS > versions.yml
|
||||||
|
"!{task.process}":
|
||||||
|
sratools: $(prefetch --version 2>&1 | grep -Eo '[0-9.]+')
|
||||||
|
END_VERSIONS
|
|
@ -1771,13 +1771,9 @@ snapaligner/index:
|
||||||
- modules/snapaligner/index/**
|
- modules/snapaligner/index/**
|
||||||
- tests/modules/snapaligner/index/**
|
- tests/modules/snapaligner/index/**
|
||||||
|
|
||||||
snapaligner/paired:
|
snapaligner/align:
|
||||||
- modules/snapaligner/paired/**
|
- modules/snapaligner/align/**
|
||||||
- tests/modules/snapaligner/paired/**
|
- tests/modules/snapaligner/align/**
|
||||||
|
|
||||||
snapaligner/single:
|
|
||||||
- modules/snapaligner/single/**
|
|
||||||
- tests/modules/snapaligner/single/**
|
|
||||||
|
|
||||||
snpdists:
|
snpdists:
|
||||||
- modules/snpdists/**
|
- modules/snpdists/**
|
||||||
|
|
|
@ -125,6 +125,7 @@ params {
|
||||||
genome_gff3 = "${test_data_dir}/genomics/homo_sapiens/genome/genome.gff3"
|
genome_gff3 = "${test_data_dir}/genomics/homo_sapiens/genome/genome.gff3"
|
||||||
genome_gtf = "${test_data_dir}/genomics/homo_sapiens/genome/genome.gtf"
|
genome_gtf = "${test_data_dir}/genomics/homo_sapiens/genome/genome.gtf"
|
||||||
genome_interval_list = "${test_data_dir}/genomics/homo_sapiens/genome/genome.interval_list"
|
genome_interval_list = "${test_data_dir}/genomics/homo_sapiens/genome/genome.interval_list"
|
||||||
|
genome_multi_interval_bed = "${test_data_dir}/genomics/homo_sapiens/genome/genome.multi_intervals.bed"
|
||||||
genome_sizes = "${test_data_dir}/genomics/homo_sapiens/genome/genome.sizes"
|
genome_sizes = "${test_data_dir}/genomics/homo_sapiens/genome/genome.sizes"
|
||||||
genome_bed = "${test_data_dir}/genomics/homo_sapiens/genome/genome.bed"
|
genome_bed = "${test_data_dir}/genomics/homo_sapiens/genome/genome.bed"
|
||||||
genome_header = "${test_data_dir}/genomics/homo_sapiens/genome/genome.header"
|
genome_header = "${test_data_dir}/genomics/homo_sapiens/genome/genome.header"
|
||||||
|
@ -182,16 +183,16 @@ params {
|
||||||
vcfanno_toml = "${test_data_dir}/genomics/homo_sapiens/genome/vcf/vcfanno/vcfanno.toml"
|
vcfanno_toml = "${test_data_dir}/genomics/homo_sapiens/genome/vcf/vcfanno/vcfanno.toml"
|
||||||
}
|
}
|
||||||
'pangenome' {
|
'pangenome' {
|
||||||
pangenome_fa = "${test_data_dir}/pangenomics/homo_sapiens/pangenome.fa"
|
pangenome_fa = "${test_data_dir}/pangenomics/homo_sapiens/pangenome.fa"
|
||||||
pangenome_fa_gz = "${test_data_dir}/pangenomics/homo_sapiens/pangenome.fa.gz"
|
pangenome_fa_gz = "${test_data_dir}/pangenomics/homo_sapiens/pangenome.fa.gz"
|
||||||
pangenome_paf = "${test_data_dir}/pangenomics/homo_sapiens/pangenome.paf"
|
pangenome_paf = "${test_data_dir}/pangenomics/homo_sapiens/pangenome.paf"
|
||||||
pangenome_paf_gz = "${test_data_dir}/pangenomics/homo_sapiens/pangenome.paf.gz"
|
pangenome_paf_gz = "${test_data_dir}/pangenomics/homo_sapiens/pangenome.paf.gz"
|
||||||
pangenome_seqwish_gfa = "${test_data_dir}/pangenomics/homo_sapiens/pangenome.seqwish.gfa"
|
pangenome_seqwish_gfa = "${test_data_dir}/pangenomics/homo_sapiens/pangenome.seqwish.gfa"
|
||||||
pangenome_smoothxg_gfa = "${test_data_dir}/pangenomics/homo_sapiens/pangenome.smoothxg.gfa"
|
pangenome_smoothxg_gfa = "${test_data_dir}/pangenomics/homo_sapiens/pangenome.smoothxg.gfa"
|
||||||
pangenome_gfaffix_gfa = "${test_data_dir}/pangenomics/homo_sapiens/pangenome.gfaffix.gfa"
|
pangenome_gfaffix_gfa = "${test_data_dir}/pangenomics/homo_sapiens/pangenome.gfaffix.gfa"
|
||||||
'odgi' {
|
'odgi' {
|
||||||
pangenome_og = "${test_data_dir}/pangenomics/homo_sapiens/odgi/pangenome.og"
|
pangenome_og = "${test_data_dir}/pangenomics/homo_sapiens/odgi/pangenome.og"
|
||||||
pangenome_lay = "${test_data_dir}/pangenomics/homo_sapiens/odgi/pangenome.lay"
|
pangenome_lay = "${test_data_dir}/pangenomics/homo_sapiens/odgi/pangenome.lay"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
'illumina' {
|
'illumina' {
|
||||||
|
@ -321,25 +322,25 @@ params {
|
||||||
test_pytor = "${test_data_dir}/genomics/homo_sapiens/illumina/pytor/test.pytor"
|
test_pytor = "${test_data_dir}/genomics/homo_sapiens/illumina/pytor/test.pytor"
|
||||||
}
|
}
|
||||||
'pacbio' {
|
'pacbio' {
|
||||||
primers = "${test_data_dir}/genomics/homo_sapiens/pacbio/fasta/primers.fasta"
|
primers = "${test_data_dir}/genomics/homo_sapiens/pacbio/fasta/primers.fasta"
|
||||||
alz = "${test_data_dir}/genomics/homo_sapiens/pacbio/bam/alz.bam"
|
alz = "${test_data_dir}/genomics/homo_sapiens/pacbio/bam/alz.bam"
|
||||||
alzpbi = "${test_data_dir}/genomics/homo_sapiens/pacbio/bam/alz.bam.pbi"
|
alzpbi = "${test_data_dir}/genomics/homo_sapiens/pacbio/bam/alz.bam.pbi"
|
||||||
ccs = "${test_data_dir}/genomics/homo_sapiens/pacbio/bam/alz.ccs.bam"
|
ccs = "${test_data_dir}/genomics/homo_sapiens/pacbio/bam/alz.ccs.bam"
|
||||||
ccs_fa = "${test_data_dir}/genomics/homo_sapiens/pacbio/fasta/alz.ccs.fasta"
|
ccs_fa = "${test_data_dir}/genomics/homo_sapiens/pacbio/fasta/alz.ccs.fasta"
|
||||||
ccs_fa_gz = "${test_data_dir}/genomics/homo_sapiens/pacbio/fasta/alz.ccs.fasta.gz"
|
ccs_fa_gz = "${test_data_dir}/genomics/homo_sapiens/pacbio/fasta/alz.ccs.fasta.gz"
|
||||||
ccs_fq = "${test_data_dir}/genomics/homo_sapiens/pacbio/fastq/alz.ccs.fastq"
|
ccs_fq = "${test_data_dir}/genomics/homo_sapiens/pacbio/fastq/alz.ccs.fastq"
|
||||||
ccs_fq_gz = "${test_data_dir}/genomics/homo_sapiens/pacbio/fastq/alz.ccs.fastq.gz"
|
ccs_fq_gz = "${test_data_dir}/genomics/homo_sapiens/pacbio/fastq/alz.ccs.fastq.gz"
|
||||||
ccs_xml = "${test_data_dir}/genomics/homo_sapiens/pacbio/xml/alz.ccs.consensusreadset.xml"
|
ccs_xml = "${test_data_dir}/genomics/homo_sapiens/pacbio/xml/alz.ccs.consensusreadset.xml"
|
||||||
hifi = "${test_data_dir}/genomics/homo_sapiens/pacbio/fastq/test_hifi.fastq.gz"
|
hifi = "${test_data_dir}/genomics/homo_sapiens/pacbio/fastq/test_hifi.fastq.gz"
|
||||||
lima = "${test_data_dir}/genomics/homo_sapiens/pacbio/bam/alz.ccs.fl.NEB_5p--NEB_Clontech_3p.bam"
|
lima = "${test_data_dir}/genomics/homo_sapiens/pacbio/bam/alz.ccs.fl.NEB_5p--NEB_Clontech_3p.bam"
|
||||||
refine = "${test_data_dir}/genomics/homo_sapiens/pacbio/bam/alz.ccs.fl.NEB_5p--NEB_Clontech_3p.flnc.bam"
|
refine = "${test_data_dir}/genomics/homo_sapiens/pacbio/bam/alz.ccs.fl.NEB_5p--NEB_Clontech_3p.flnc.bam"
|
||||||
cluster = "${test_data_dir}/genomics/homo_sapiens/pacbio/bam/alz.ccs.fl.NEB_5p--NEB_Clontech_3p.flnc.clustered.bam"
|
cluster = "${test_data_dir}/genomics/homo_sapiens/pacbio/bam/alz.ccs.fl.NEB_5p--NEB_Clontech_3p.flnc.clustered.bam"
|
||||||
singletons = "${test_data_dir}/genomics/homo_sapiens/pacbio/bam/alz.ccs.fl.NEB_5p--NEB_Clontech_3p.flnc.clustered.singletons.bam"
|
singletons = "${test_data_dir}/genomics/homo_sapiens/pacbio/bam/alz.ccs.fl.NEB_5p--NEB_Clontech_3p.flnc.clustered.singletons.bam"
|
||||||
aligned = "${test_data_dir}/genomics/homo_sapiens/pacbio/bam/alz.ccs.fl.NEB_5p--NEB_Clontech_3p.flnc.clustered.singletons.merged.aligned.bam"
|
aligned = "${test_data_dir}/genomics/homo_sapiens/pacbio/bam/alz.ccs.fl.NEB_5p--NEB_Clontech_3p.flnc.clustered.singletons.merged.aligned.bam"
|
||||||
alignedbai = "${test_data_dir}/genomics/homo_sapiens/pacbio/bam/alz.ccs.fl.NEB_5p--NEB_Clontech_3p.flnc.clustered.singletons.merged.aligned.bam.bai"
|
alignedbai = "${test_data_dir}/genomics/homo_sapiens/pacbio/bam/alz.ccs.fl.NEB_5p--NEB_Clontech_3p.flnc.clustered.singletons.merged.aligned.bam.bai"
|
||||||
genemodel1 = "${test_data_dir}/genomics/homo_sapiens/pacbio/bed/alz.ccs.fl.NEB_5p--NEB_Clontech_3p.flnc.clustered.singletons.merged.aligned_tc.bed"
|
genemodel1 = "${test_data_dir}/genomics/homo_sapiens/pacbio/bed/alz.ccs.fl.NEB_5p--NEB_Clontech_3p.flnc.clustered.singletons.merged.aligned_tc.bed"
|
||||||
genemodel2 = "${test_data_dir}/genomics/homo_sapiens/pacbio/bed/alz.ccs.fl.NEB_5p--NEB_Clontech_3p.flnc.clustered.singletons.merged.aligned_tc.2.bed"
|
genemodel2 = "${test_data_dir}/genomics/homo_sapiens/pacbio/bed/alz.ccs.fl.NEB_5p--NEB_Clontech_3p.flnc.clustered.singletons.merged.aligned_tc.2.bed"
|
||||||
filelist = "${test_data_dir}/genomics/homo_sapiens/pacbio/txt/filelist.txt"
|
filelist = "${test_data_dir}/genomics/homo_sapiens/pacbio/txt/filelist.txt"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
'bacteroides_fragilis' {
|
'bacteroides_fragilis' {
|
||||||
|
@ -397,31 +398,31 @@ params {
|
||||||
}
|
}
|
||||||
'generic' {
|
'generic' {
|
||||||
'csv' {
|
'csv' {
|
||||||
test_csv = "${test_data_dir}/generic/csv/test.csv"
|
test_csv = "${test_data_dir}/generic/csv/test.csv"
|
||||||
}
|
}
|
||||||
'notebooks' {
|
'notebooks' {
|
||||||
rmarkdown = "${test_data_dir}/generic/notebooks/rmarkdown/rmarkdown_notebook.Rmd"
|
rmarkdown = "${test_data_dir}/generic/notebooks/rmarkdown/rmarkdown_notebook.Rmd"
|
||||||
ipython_md = "${test_data_dir}/generic/notebooks/jupyter/ipython_notebook.md"
|
ipython_md = "${test_data_dir}/generic/notebooks/jupyter/ipython_notebook.md"
|
||||||
ipython_ipynb = "${test_data_dir}/generic/notebooks/jupyter/ipython_notebook.ipynb"
|
ipython_ipynb = "${test_data_dir}/generic/notebooks/jupyter/ipython_notebook.ipynb"
|
||||||
}
|
}
|
||||||
'tsv' {
|
'tsv' {
|
||||||
test_tsv = "${test_data_dir}/generic/tsv/test.tsv"
|
test_tsv = "${test_data_dir}/generic/tsv/test.tsv"
|
||||||
}
|
}
|
||||||
'txt' {
|
'txt' {
|
||||||
hello = "${test_data_dir}/generic/txt/hello.txt"
|
hello = "${test_data_dir}/generic/txt/hello.txt"
|
||||||
}
|
}
|
||||||
'cnn' {
|
'cnn' {
|
||||||
reference = "${test_data_dir}/generic/cnn/reference.cnn"
|
reference = "${test_data_dir}/generic/cnn/reference.cnn"
|
||||||
}
|
}
|
||||||
'cooler'{
|
'cooler'{
|
||||||
test_pairix_pair_gz = "${test_data_dir}/genomics/homo_sapiens/cooler/cload/hg19/hg19.GM12878-MboI.pairs.subsample.blksrt.txt.gz"
|
test_pairix_pair_gz = "${test_data_dir}/genomics/homo_sapiens/cooler/cload/hg19/hg19.GM12878-MboI.pairs.subsample.blksrt.txt.gz"
|
||||||
test_pairix_pair_gz_px2 = "${test_data_dir}/genomics/homo_sapiens/cooler/cload/hg19/hg19.GM12878-MboI.pairs.subsample.blksrt.txt.gz.px2"
|
test_pairix_pair_gz_px2 = "${test_data_dir}/genomics/homo_sapiens/cooler/cload/hg19/hg19.GM12878-MboI.pairs.subsample.blksrt.txt.gz.px2"
|
||||||
test_pairs_pair = "${test_data_dir}/genomics/homo_sapiens/cooler/cload/hg19/hg19.sample1.pairs"
|
test_pairs_pair = "${test_data_dir}/genomics/homo_sapiens/cooler/cload/hg19/hg19.sample1.pairs"
|
||||||
test_tabix_pair_gz = "${test_data_dir}/genomics/homo_sapiens/cooler/cload/hg19/hg19.GM12878-MboI.pairs.subsample.sorted.possrt.txt.gz"
|
test_tabix_pair_gz = "${test_data_dir}/genomics/homo_sapiens/cooler/cload/hg19/hg19.GM12878-MboI.pairs.subsample.sorted.possrt.txt.gz"
|
||||||
test_tabix_pair_gz_tbi = "${test_data_dir}/genomics/homo_sapiens/cooler/cload/hg19/hg19.GM12878-MboI.pairs.subsample.sorted.possrt.txt.gz.tbi"
|
test_tabix_pair_gz_tbi = "${test_data_dir}/genomics/homo_sapiens/cooler/cload/hg19/hg19.GM12878-MboI.pairs.subsample.sorted.possrt.txt.gz.tbi"
|
||||||
hg19_chrom_sizes = "${test_data_dir}/genomics/homo_sapiens/cooler/cload/hg19/hg19.chrom.sizes"
|
hg19_chrom_sizes = "${test_data_dir}/genomics/homo_sapiens/cooler/cload/hg19/hg19.chrom.sizes"
|
||||||
test_merge_cool = "${test_data_dir}/genomics/homo_sapiens/cooler/merge/toy/toy.symm.upper.2.cool"
|
test_merge_cool = "${test_data_dir}/genomics/homo_sapiens/cooler/merge/toy/toy.symm.upper.2.cool"
|
||||||
test_merge_cool_cp2 = "${test_data_dir}/genomics/homo_sapiens/cooler/merge/toy/toy.symm.upper.2.cp2.cool"
|
test_merge_cool_cp2 = "${test_data_dir}/genomics/homo_sapiens/cooler/merge/toy/toy.symm.upper.2.cp2.cool"
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
29
tests/modules/snapaligner/align/main.nf
Normal file
29
tests/modules/snapaligner/align/main.nf
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
#!/usr/bin/env nextflow
|
||||||
|
|
||||||
|
nextflow.enable.dsl = 2
|
||||||
|
|
||||||
|
include { SNAPALIGNER_INDEX } from '../../../../modules/snapaligner/index/main.nf'
|
||||||
|
include { SNAPALIGNER_ALIGN as SNAPALIGNER_SINGLE } from '../../../../modules/snapaligner/align/main.nf'
|
||||||
|
include { SNAPALIGNER_ALIGN as SNAPALIGNER_PAIRED } from '../../../../modules/snapaligner/align/main.nf'
|
||||||
|
|
||||||
|
workflow test_snapaligner_single {
|
||||||
|
|
||||||
|
input = [
|
||||||
|
[ id:'test', single_end:true ], // meta map
|
||||||
|
[file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true)]
|
||||||
|
]
|
||||||
|
|
||||||
|
SNAPALIGNER_INDEX ( file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true),[],[],[])
|
||||||
|
SNAPALIGNER_SINGLE ( input, SNAPALIGNER_INDEX.out.index )
|
||||||
|
}
|
||||||
|
|
||||||
|
workflow test_snapaligner_paired {
|
||||||
|
|
||||||
|
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)]
|
||||||
|
]
|
||||||
|
|
||||||
|
SNAPALIGNER_INDEX ( file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true),[],[],[])
|
||||||
|
SNAPALIGNER_PAIRED ( input, SNAPALIGNER_INDEX.out.index )
|
||||||
|
}
|
19
tests/modules/snapaligner/align/test.yml
Normal file
19
tests/modules/snapaligner/align/test.yml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
- name: snapaligner align test_snapaligner_single
|
||||||
|
command: nextflow run tests/modules/snapaligner/align -entry test_snapaligner_single -c tests/config/nextflow.config
|
||||||
|
tags:
|
||||||
|
- snapaligner/align
|
||||||
|
- snapaligner
|
||||||
|
files:
|
||||||
|
- path: output/snapaligner/test.bam
|
||||||
|
md5sum: 5d95594e4ef1ee23ce56e6a7cb64f0f2
|
||||||
|
- path: output/snapaligner/versions.yml
|
||||||
|
|
||||||
|
- name: snapaligner align test_snapaligner_paired
|
||||||
|
command: nextflow run tests/modules/snapaligner/align -entry test_snapaligner_paired -c tests/config/nextflow.config
|
||||||
|
tags:
|
||||||
|
- snapaligner/align
|
||||||
|
- snapaligner
|
||||||
|
files:
|
||||||
|
- path: output/snapaligner/test.bam
|
||||||
|
md5sum: a1405da5876f15dbe8a81516b94c2a15
|
||||||
|
- path: output/snapaligner/versions.yml
|
|
@ -1,17 +0,0 @@
|
||||||
#!/usr/bin/env nextflow
|
|
||||||
|
|
||||||
nextflow.enable.dsl = 2
|
|
||||||
|
|
||||||
include { SNAPALIGNER_INDEX } from '../../../../modules/snapaligner/index/main.nf'
|
|
||||||
include { SNAPALIGNER_PAIRED } from '../../../../modules/snapaligner/paired/main.nf'
|
|
||||||
|
|
||||||
workflow test_snapaligner_paired {
|
|
||||||
|
|
||||||
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)]
|
|
||||||
]
|
|
||||||
|
|
||||||
SNAPALIGNER_INDEX ( file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true),[],[],[])
|
|
||||||
SNAPALIGNER_PAIRED ( input, SNAPALIGNER_INDEX.out.index )
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
- name: snapaligner paired test_snapaligner_paired
|
|
||||||
command: nextflow run tests/modules/snapaligner/paired -entry test_snapaligner_paired -c tests/config/nextflow.config
|
|
||||||
tags:
|
|
||||||
- snapaligner
|
|
||||||
- snapaligner/paired
|
|
||||||
files:
|
|
||||||
- path: output/snapaligner/test.bam
|
|
||||||
md5sum: 2ac92e9539fa246dd6db52b5de56fca5
|
|
||||||
- path: output/snapaligner/versions.yml
|
|
|
@ -1,17 +0,0 @@
|
||||||
#!/usr/bin/env nextflow
|
|
||||||
|
|
||||||
nextflow.enable.dsl = 2
|
|
||||||
|
|
||||||
include { SNAPALIGNER_INDEX } from '../../../../modules/snapaligner/index/main.nf'
|
|
||||||
include { SNAPALIGNER_SINGLE } from '../../../../modules/snapaligner/single/main.nf'
|
|
||||||
|
|
||||||
workflow test_snapaligner_single {
|
|
||||||
|
|
||||||
input = [
|
|
||||||
[ id:'test', single_end:false ], // meta map
|
|
||||||
[file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true)]
|
|
||||||
]
|
|
||||||
|
|
||||||
SNAPALIGNER_INDEX ( file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true),[],[],[])
|
|
||||||
SNAPALIGNER_SINGLE ( input, SNAPALIGNER_INDEX.out.index )
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
process {
|
|
||||||
|
|
||||||
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
- name: snapaligner single test_snapaligner_single
|
|
||||||
command: nextflow run tests/modules/snapaligner/single -entry test_snapaligner_single -c tests/config/nextflow.config
|
|
||||||
tags:
|
|
||||||
- snapaligner/single
|
|
||||||
- snapaligner
|
|
||||||
files:
|
|
||||||
- path: output/snapaligner/test.bam
|
|
||||||
md5sum: 696f7ea8e1aa5f9d7dafb9d0134fe25d
|
|
||||||
- path: output/snapaligner/versions.yml
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
nextflow.enable.dsl = 2
|
nextflow.enable.dsl = 2
|
||||||
|
|
||||||
include { ANNOTATION_SNPEFF } from '../../../../../subworkflows/nf-core/annotation_snpeff/main'
|
include { ANNOTATION_SNPEFF } from '../../../../../subworkflows/nf-core/annotation/snpeff/main'
|
||||||
|
|
||||||
workflow annotation_snpeff {
|
workflow annotation_snpeff {
|
||||||
input = [
|
input = [
|
||||||
|
|
Loading…
Add table
Reference in a new issue