mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
Change syntax from task.ext.suffix to tast.ext.prefix in all modules (#1110)
* Add comment line for consistency * Remove all functions.nf * Remove include functions.nf and publishDir options * Replace options.args3 with task.ext.args3 - 3 modules * Replace options.args3 with task.ext.args3 - 17 modules * Replace {task.cpus} with task.cpus * Replace off on off off off off off off off on off on off on off off off on off off off on on off off off on on off off off off off off off on off off off off on off on on off off off on on on on off off off on off on on off on on off off on on on off on on off on off off off off on off off off on off off on off on off off off on on off on off on off off on off off off on off off off on off off off off on off off off on on on off on on off off on off on on on off on on off on on on off off off off off on on off off on off off off off off on off off on on off on on off on off off off on off off off off on on off on off off on off off on off on off off off off off off off off on on off on off off off.args with * Add def args = task.ext.args line to all modules in script section * Replace options.args with args and args_list * Initialise args2 and args3 properly * Replace container syntax * Revert container changes for cellranger/mkref * Replace getProcessName in all modules * Replace getSoftwareName in all modules * Unify modules using VERSION variable * Replae options.suffix with task.ext.suffix * Remove NF version restriction for CI * Bump NF version in README * Replace task.process.tokenize logic with task.process * Minor tweaks to unify syntax in tests main.nf * Add a separate nextflow.config for each module * Transfer remaining module options to nextflow.config * Remove addParams from tests main.nf * Remove TODO statements * Use -c to import module specific config * Bump NF version to 21.10.3 * Fix tests for artic/minion * Fix broken publishDir syntax * Standardise and fix obvious failing module tests * Remove kronatools to krona * Comment out tags in subworkflow test.yml * Fix failing module tests * Add consistent indentation to nextflow.config * Comment out subworklow definitions * Fix kallistobustools/ref * Fix rmarkdownnotebook * Fix jupyternotebook * Quote task.process * Add plink2/vcf to pytest_modules.yml * Remove NF_CORE_MODULES_TEST from pytest CI * Fix more tests * Move bacteroides_fragilis to prokaryotes folder * Fix cooler merge tests * Fix kallistobustools/count tests * Fix kallistobustools/ref tests * Update test_10x_1_fastq_gz file for kallistobustools/count tests * Fix bcftools/query tests * Fix delly/call tests * Fix cooler/zoomify tests * Fix csvtk/split tests * Fix gatk4/intervallisttools tests * Fix gatk4/variantfiltration * Fix pydamage/filter tests * Fix test data for unicycler * Fix gstama/collapse module * Fix leehom tests * Fix metaphlan3 tests * Fix pairtools/select tests * Update nextflow.config * Update nextflow.config * feat: update syntax * Fix arriba tests * Fix more failing tests * Update test syntax * Remove comments from tests nextflow.config * Apply suggestions from code review * Fix kallistobustools/count module * Update dumpsoftwareversions module * Update custom/dumpsoftwareversions * Add args2 to untar module * Update leftover modules * Remove last remaining addParams * Change syntax from task.ext.suffix to tast.ext.prefix * Change nextflow.config in all tests to use ext.prefix instead of ext.suffix Co-authored-by: JoseEspinosa <kadomu@gmail.com> Co-authored-by: Gregor Sturm <mail@gregor-sturm.de> Co-authored-by: MaxUlysse <max.u.garcia@gmail.com>
This commit is contained in:
parent
1f8f86b793
commit
9d0cad583b
309 changed files with 312 additions and 312 deletions
|
@ -17,7 +17,7 @@ process ABACAS {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
abacas.pl \\
|
abacas.pl \\
|
||||||
-r $fasta \\
|
-r $fasta \\
|
||||||
|
|
|
@ -17,7 +17,7 @@ process ADAPTERREMOVAL {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
|
|
||||||
if (meta.single_end) {
|
if (meta.single_end) {
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -17,7 +17,7 @@ process AGRVATE {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
agrvate \\
|
agrvate \\
|
||||||
$args \\
|
$args \\
|
||||||
|
|
|
@ -18,7 +18,7 @@ process ALLELECOUNTER {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def reference_options = fasta ? "-r $fasta": ""
|
def reference_options = fasta ? "-r $fasta": ""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -19,7 +19,7 @@ process ARRIBA {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def blacklist = (args.contains('-b')) ? '' : '-f blacklist'
|
def blacklist = (args.contains('-b')) ? '' : '-f blacklist'
|
||||||
"""
|
"""
|
||||||
arriba \\
|
arriba \\
|
||||||
|
|
|
@ -16,7 +16,7 @@ process ARTIC_GUPPYPLEX {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
artic \\
|
artic \\
|
||||||
guppyplex \\
|
guppyplex \\
|
||||||
|
|
|
@ -16,7 +16,7 @@ process ASSEMBLYSCAN {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
assembly-scan $assembly > ${prefix}.json
|
assembly-scan $assembly > ${prefix}.json
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ process ATAQV_ATAQV {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def peak = peak_file ? "--peak-file $peak_file" : ''
|
def peak = peak_file ? "--peak-file $peak_file" : ''
|
||||||
def tss = tss_file ? "--tss-file $tss_file" : ''
|
def tss = tss_file ? "--tss-file $tss_file" : ''
|
||||||
def excl_regs = excl_regs_file ? "--excluded-region-file $excl_regs_file" : ''
|
def excl_regs = excl_regs_file ? "--excluded-region-file $excl_regs_file" : ''
|
||||||
|
|
|
@ -16,7 +16,7 @@ process BAMALIGNCLEANER {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
|
|
||||||
"""
|
"""
|
||||||
bamAlignCleaner \\
|
bamAlignCleaner \\
|
||||||
|
|
|
@ -16,7 +16,7 @@ process BAMTOOLS_SPLIT {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
bamtools \\
|
bamtools \\
|
||||||
split \\
|
split \\
|
||||||
|
|
|
@ -16,7 +16,7 @@ process BAMUTIL_TRIMBAM {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
bam \\
|
bam \\
|
||||||
trimBam \\
|
trimBam \\
|
||||||
|
|
|
@ -17,7 +17,7 @@ process BANDAGE_IMAGE {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
Bandage image $gfa ${prefix}.png $args
|
Bandage image $gfa ${prefix}.png $args
|
||||||
Bandage image $gfa ${prefix}.svg $args
|
Bandage image $gfa ${prefix}.svg $args
|
||||||
|
|
|
@ -18,7 +18,7 @@ process BBMAP_ALIGN {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
|
|
||||||
input = meta.single_end ? "in=${fastq}" : "in=${fastq[0]} in2=${fastq[1]}"
|
input = meta.single_end ? "in=${fastq}" : "in=${fastq[0]} in2=${fastq[1]}"
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ process BBMAP_BBDUK {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def raw = meta.single_end ? "in=${reads[0]}" : "in1=${reads[0]} in2=${reads[1]}"
|
def raw = meta.single_end ? "in=${reads[0]}" : "in1=${reads[0]} in2=${reads[1]}"
|
||||||
def trimmed = meta.single_end ? "out=${prefix}.fastq.gz" : "out1=${prefix}_1.fastq.gz out2=${prefix}_2.fastq.gz"
|
def trimmed = meta.single_end ? "out=${prefix}.fastq.gz" : "out1=${prefix}_1.fastq.gz out2=${prefix}_2.fastq.gz"
|
||||||
def contaminants_fa = contaminants ? "ref=$contaminants" : ''
|
def contaminants_fa = contaminants ? "ref=$contaminants" : ''
|
||||||
|
|
|
@ -22,7 +22,7 @@ process BBMAP_BBSPLIT {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
|
|
||||||
def avail_mem = 3
|
def avail_mem = 3
|
||||||
if (!task.memory) {
|
if (!task.memory) {
|
||||||
|
|
|
@ -16,7 +16,7 @@ process BCFTOOLS_CONSENSUS {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
cat $fasta | bcftools consensus $vcf $args > ${prefix}.fa
|
cat $fasta | bcftools consensus $vcf $args > ${prefix}.fa
|
||||||
header=\$(head -n 1 ${prefix}.fa | sed 's/>//g')
|
header=\$(head -n 1 ${prefix}.fa | sed 's/>//g')
|
||||||
|
|
|
@ -16,7 +16,7 @@ process BCFTOOLS_FILTER {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
bcftools filter \\
|
bcftools filter \\
|
||||||
--output ${prefix}.vcf.gz \\
|
--output ${prefix}.vcf.gz \\
|
||||||
|
|
|
@ -17,7 +17,7 @@ process BCFTOOLS_INDEX {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
|
|
||||||
"""
|
"""
|
||||||
bcftools \\
|
bcftools \\
|
||||||
|
|
|
@ -21,7 +21,7 @@ process BCFTOOLS_MPILEUP {
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def args2 = task.ext.args2 ?: ''
|
def args2 = task.ext.args2 ?: ''
|
||||||
def args3 = task.ext.args3 ?: ''
|
def args3 = task.ext.args3 ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
echo "${meta.id}" > sample_name.list
|
echo "${meta.id}" > sample_name.list
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ process BCFTOOLS_NORM {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
bcftools norm \\
|
bcftools norm \\
|
||||||
--fasta-ref ${fasta} \\
|
--fasta-ref ${fasta} \\
|
||||||
|
|
|
@ -19,7 +19,7 @@ process BCFTOOLS_QUERY {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def regions_file = regions ? "--regions-file ${regions}" : ""
|
def regions_file = regions ? "--regions-file ${regions}" : ""
|
||||||
def targets_file = targets ? "--targets-file ${targets}" : ""
|
def targets_file = targets ? "--targets-file ${targets}" : ""
|
||||||
def samples_file = samples ? "--samples-file ${samples}" : ""
|
def samples_file = samples ? "--samples-file ${samples}" : ""
|
||||||
|
|
|
@ -18,7 +18,7 @@ process BCFTOOLS_REHEADER {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def update_sequences = fai ? "-f $fai" : ""
|
def update_sequences = fai ? "-f $fai" : ""
|
||||||
def new_header = header ? "-h $header" : ""
|
def new_header = header ? "-h $header" : ""
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -16,7 +16,7 @@ process BCFTOOLS_STATS {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
bcftools stats $args $vcf > ${prefix}.bcftools_stats.txt
|
bcftools stats $args $vcf > ${prefix}.bcftools_stats.txt
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
|
|
|
@ -19,7 +19,7 @@ process BCFTOOLS_VIEW {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def regions_file = regions ? "--regions-file ${regions}" : ""
|
def regions_file = regions ? "--regions-file ${regions}" : ""
|
||||||
def targets_file = targets ? "--targets-file ${targets}" : ""
|
def targets_file = targets ? "--targets-file ${targets}" : ""
|
||||||
def samples_file = samples ? "--samples-file ${samples}" : ""
|
def samples_file = samples ? "--samples-file ${samples}" : ""
|
||||||
|
|
|
@ -16,7 +16,7 @@ process BEDTOOLS_BAMTOBED {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
bedtools \\
|
bedtools \\
|
||||||
bamtobed \\
|
bamtobed \\
|
||||||
|
|
|
@ -17,7 +17,7 @@ process BEDTOOLS_COMPLEMENT {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
bedtools \\
|
bedtools \\
|
||||||
complement \\
|
complement \\
|
||||||
|
|
|
@ -24,7 +24,7 @@ process BEDTOOLS_GENOMECOV {
|
||||||
args += " -bg"
|
args += " -bg"
|
||||||
}
|
}
|
||||||
|
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
if (intervals.name =~ /\.bam/) {
|
if (intervals.name =~ /\.bam/) {
|
||||||
"""
|
"""
|
||||||
bedtools \\
|
bedtools \\
|
||||||
|
|
|
@ -17,7 +17,7 @@ process BEDTOOLS_INTERSECT {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
bedtools \\
|
bedtools \\
|
||||||
intersect \\
|
intersect \\
|
||||||
|
|
|
@ -17,7 +17,7 @@ process BEDTOOLS_MAKEWINDOWS {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def arg_input = use_bed ? "-b $regions" : "-g $regions"
|
def arg_input = use_bed ? "-b $regions" : "-g $regions"
|
||||||
"""
|
"""
|
||||||
bedtools \\
|
bedtools \\
|
||||||
|
|
|
@ -17,7 +17,7 @@ process BEDTOOLS_MASKFASTA {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
bedtools \\
|
bedtools \\
|
||||||
maskfasta \\
|
maskfasta \\
|
||||||
|
|
|
@ -16,7 +16,7 @@ process BEDTOOLS_MERGE {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
bedtools \\
|
bedtools \\
|
||||||
merge \\
|
merge \\
|
||||||
|
|
|
@ -17,7 +17,7 @@ process BEDTOOLS_SLOP {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
bedtools \\
|
bedtools \\
|
||||||
slop \\
|
slop \\
|
||||||
|
|
|
@ -17,7 +17,7 @@ process BEDTOOLS_SORT {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
bedtools \\
|
bedtools \\
|
||||||
sort \\
|
sort \\
|
||||||
|
|
|
@ -16,7 +16,7 @@ process BEDTOOLS_SUBTRACT {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
bedtools \\
|
bedtools \\
|
||||||
subtract \\
|
subtract \\
|
||||||
|
|
|
@ -19,7 +19,7 @@ process BISMARK_ALIGN {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def fastq = meta.single_end ? reads : "-1 ${reads[0]} -2 ${reads[1]}"
|
def fastq = meta.single_end ? reads : "-1 ${reads[0]} -2 ${reads[1]}"
|
||||||
"""
|
"""
|
||||||
bismark \\
|
bismark \\
|
||||||
|
|
|
@ -17,7 +17,7 @@ process BISMARK_DEDUPLICATE {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def seqtype = meta.single_end ? '-s' : '-p'
|
def seqtype = meta.single_end ? '-s' : '-p'
|
||||||
"""
|
"""
|
||||||
deduplicate_bismark \\
|
deduplicate_bismark \\
|
||||||
|
|
|
@ -17,7 +17,7 @@ process BLAST_BLASTN {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
DB=`find -L ./ -name "*.ndb" | sed 's/.ndb//'`
|
DB=`find -L ./ -name "*.ndb" | sed 's/.ndb//'`
|
||||||
blastn \\
|
blastn \\
|
||||||
|
|
|
@ -20,7 +20,7 @@ process BOWTIE_ALIGN {
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def args2 = task.ext.args2 ?: ''
|
def args2 = task.ext.args2 ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def unaligned = params.save_unaligned ? "--un ${prefix}.unmapped.fastq" : ''
|
def unaligned = params.save_unaligned ? "--un ${prefix}.unmapped.fastq" : ''
|
||||||
def endedness = meta.single_end ? "$reads" : "-1 ${reads[0]} -2 ${reads[1]}"
|
def endedness = meta.single_end ? "$reads" : "-1 ${reads[0]} -2 ${reads[1]}"
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -20,7 +20,7 @@ process BOWTIE2_ALIGN {
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def args2 = task.ext.args2 ?: ''
|
def args2 = task.ext.args2 ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
if (meta.single_end) {
|
if (meta.single_end) {
|
||||||
def unaligned = params.save_unaligned ? "--un-gz ${prefix}.unmapped.fastq.gz" : ''
|
def unaligned = params.save_unaligned ? "--un-gz ${prefix}.unmapped.fastq.gz" : ''
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -17,7 +17,7 @@ process BWA_ALN {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
|
|
||||||
if (meta.single_end) {
|
if (meta.single_end) {
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -18,7 +18,7 @@ process BWA_MEM {
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def args2 = task.ext.args2 ?: ''
|
def args2 = task.ext.args2 ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def read_group = meta.read_group ? "-R ${meta.read_group}" : ""
|
def read_group = meta.read_group ? "-R ${meta.read_group}" : ""
|
||||||
"""
|
"""
|
||||||
INDEX=`find -L ./ -name "*.amb" | sed 's/.amb//'`
|
INDEX=`find -L ./ -name "*.amb" | sed 's/.amb//'`
|
||||||
|
|
|
@ -17,7 +17,7 @@ process BWA_SAMPE {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def read_group = meta.read_group ? "-r ${meta.read_group}" : ""
|
def read_group = meta.read_group ? "-r ${meta.read_group}" : ""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -17,7 +17,7 @@ process BWA_SAMSE {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def read_group = meta.read_group ? "-r ${meta.read_group}" : ""
|
def read_group = meta.read_group ? "-r ${meta.read_group}" : ""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -18,7 +18,7 @@ process BWAMEM2_MEM {
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def args2 = task.ext.args2 ?: ''
|
def args2 = task.ext.args2 ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def read_group = meta.read_group ? "-R ${meta.read_group}" : ""
|
def read_group = meta.read_group ? "-R ${meta.read_group}" : ""
|
||||||
"""
|
"""
|
||||||
INDEX=`find -L ./ -name "*.amb" | sed 's/.amb//'`
|
INDEX=`find -L ./ -name "*.amb" | sed 's/.amb//'`
|
||||||
|
|
|
@ -18,7 +18,7 @@ process BWAMETH_ALIGN {
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def args2 = task.ext.args2 ?: ''
|
def args2 = task.ext.args2 ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def read_group = meta.read_group ? "-R ${meta.read_group}" : ""
|
def read_group = meta.read_group ? "-R ${meta.read_group}" : ""
|
||||||
"""
|
"""
|
||||||
INDEX=`find -L ${index} -name "*.bwameth.c2t" | sed 's/.bwameth.c2t//'`
|
INDEX=`find -L ${index} -name "*.bwameth.c2t" | sed 's/.bwameth.c2t//'`
|
||||||
|
|
|
@ -16,7 +16,7 @@ process CAT_FASTQ {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def readList = reads.collect{ it.toString() }
|
def readList = reads.collect{ it.toString() }
|
||||||
if (meta.single_end) {
|
if (meta.single_end) {
|
||||||
if (readList.size > 1) {
|
if (readList.size > 1) {
|
||||||
|
|
|
@ -28,7 +28,7 @@ process CHROMAP_CHROMAP {
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def args2 = task.ext.args2 ?: ''
|
def args2 = task.ext.args2 ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def args_list = args.tokenize()
|
def args_list = args.tokenize()
|
||||||
|
|
||||||
def file_extension = args.contains("--SAM") ? 'sam' : args.contains("--TagAlign")? 'tagAlign' : args.contains("--pairs")? 'pairs' : 'bed'
|
def file_extension = args.contains("--SAM") ? 'sam' : args.contains("--TagAlign")? 'tagAlign' : args.contains("--pairs")? 'pairs' : 'bed'
|
||||||
|
|
|
@ -21,7 +21,7 @@ process CLONALFRAMEML {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
ClonalFrameML \\
|
ClonalFrameML \\
|
||||||
$newick \\
|
$newick \\
|
||||||
|
|
|
@ -18,7 +18,7 @@ process CMSEQ_POLYMUT {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def fasta_refid = fasta ? "-c $fasta" : ""
|
def fasta_refid = fasta ? "-c $fasta" : ""
|
||||||
def sortindex = bai ? "" : "--sortindex"
|
def sortindex = bai ? "" : "--sortindex"
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -18,7 +18,7 @@ process COOLER_CLOAD {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def nproc = args.contains('pairix') || args.contains('tabix')? "--nproc $task.cpus" : ''
|
def nproc = args.contains('pairix') || args.contains('tabix')? "--nproc $task.cpus" : ''
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -17,7 +17,7 @@ process COOLER_DUMP {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def suffix = resolution ? "::$resolution" : ""
|
def suffix = resolution ? "::$resolution" : ""
|
||||||
"""
|
"""
|
||||||
cooler dump \\
|
cooler dump \\
|
||||||
|
|
|
@ -16,7 +16,7 @@ process COOLER_MERGE {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
cooler merge \\
|
cooler merge \\
|
||||||
$args \\
|
$args \\
|
||||||
|
|
|
@ -16,7 +16,7 @@ process COOLER_ZOOMIFY {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
cooler zoomify \\
|
cooler zoomify \\
|
||||||
$args \\
|
$args \\
|
||||||
|
|
|
@ -18,7 +18,7 @@ process CSVTK_SPLIT {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def delimiter = in_format == "tsv" ? "--tabs" : (in_format == "csv" ? "--delimiter ',' " : in_format)
|
def delimiter = in_format == "tsv" ? "--tabs" : (in_format == "csv" ? "--delimiter ',' " : in_format)
|
||||||
def out_delimiter = out_format == "tsv" ? "--out-tabs" : (out_format == "csv" ? "--out-delimiter ',' " : out_format)
|
def out_delimiter = out_format == "tsv" ? "--out-tabs" : (out_format == "csv" ? "--out-delimiter ',' " : out_format)
|
||||||
out_extension = out_format == "tsv" ? 'tsv' : 'csv'
|
out_extension = out_format == "tsv" ? 'tsv' : 'csv'
|
||||||
|
|
|
@ -17,7 +17,7 @@ process CUTADAPT {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def trimmed = meta.single_end ? "-o ${prefix}.trim.fastq.gz" : "-o ${prefix}_1.trim.fastq.gz -p ${prefix}_2.trim.fastq.gz"
|
def trimmed = meta.single_end ? "-o ${prefix}.trim.fastq.gz" : "-o ${prefix}_1.trim.fastq.gz -p ${prefix}_2.trim.fastq.gz"
|
||||||
"""
|
"""
|
||||||
cutadapt \\
|
cutadapt \\
|
||||||
|
|
|
@ -28,7 +28,7 @@ process DASTOOL_DASTOOL {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def bin_list = bins instanceof List ? bins.join(",") : "$bins"
|
def bin_list = bins instanceof List ? bins.join(",") : "$bins"
|
||||||
def engine = search_engine ? "--search_engine $search_engine" : "--search_engine diamond"
|
def engine = search_engine ? "--search_engine $search_engine" : "--search_engine diamond"
|
||||||
def db_dir = db_directory ? "--db_directory $db_directory" : ""
|
def db_dir = db_directory ? "--db_directory $db_directory" : ""
|
||||||
|
|
|
@ -17,7 +17,7 @@ process DASTOOL_SCAFFOLDS2BIN {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def file_extension = extension ? extension : "fasta"
|
def file_extension = extension ? extension : "fasta"
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -18,7 +18,7 @@ process DEEPTOOLS_COMPUTEMATRIX {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
computeMatrix \\
|
computeMatrix \\
|
||||||
$args \\
|
$args \\
|
||||||
|
|
|
@ -18,7 +18,7 @@ process DEEPTOOLS_PLOTFINGERPRINT {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def extend = (meta.single_end && params.fragment_size > 0) ? "--extendReads ${params.fragment_size}" : ''
|
def extend = (meta.single_end && params.fragment_size > 0) ? "--extendReads ${params.fragment_size}" : ''
|
||||||
"""
|
"""
|
||||||
plotFingerprint \\
|
plotFingerprint \\
|
||||||
|
|
|
@ -17,7 +17,7 @@ process DEEPTOOLS_PLOTHEATMAP {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
plotHeatmap \\
|
plotHeatmap \\
|
||||||
$args \\
|
$args \\
|
||||||
|
|
|
@ -17,7 +17,7 @@ process DEEPTOOLS_PLOTPROFILE {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
plotProfile \\
|
plotProfile \\
|
||||||
$args \\
|
$args \\
|
||||||
|
|
|
@ -19,7 +19,7 @@ process DELLY_CALL {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
delly \\
|
delly \\
|
||||||
call \\
|
call \\
|
||||||
|
|
|
@ -19,7 +19,7 @@ process DIAMOND_BLASTP {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
DB=`find -L ./ -name "*.dmnd" | sed 's/.dmnd//'`
|
DB=`find -L ./ -name "*.dmnd" | sed 's/.dmnd//'`
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ process DIAMOND_BLASTX {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
DB=`find -L ./ -name "*.dmnd" | sed 's/.dmnd//'`
|
DB=`find -L ./ -name "*.dmnd" | sed 's/.dmnd//'`
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ process DSHBIO_EXPORTSEGMENTS {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
dsh-bio \\
|
dsh-bio \\
|
||||||
export-segments \\
|
export-segments \\
|
||||||
|
|
|
@ -16,7 +16,7 @@ process DSHBIO_FILTERBED {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
dsh-bio \\
|
dsh-bio \\
|
||||||
filter-bed \\
|
filter-bed \\
|
||||||
|
|
|
@ -16,7 +16,7 @@ process DSHBIO_FILTERGFF3 {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
dsh-bio \\
|
dsh-bio \\
|
||||||
filter-gff3 \\
|
filter-gff3 \\
|
||||||
|
|
|
@ -16,7 +16,7 @@ process DSHBIO_SPLITBED {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
dsh-bio \\
|
dsh-bio \\
|
||||||
split-bed \\
|
split-bed \\
|
||||||
|
|
|
@ -16,7 +16,7 @@ process DSHBIO_SPLITGFF3 {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
dsh-bio \\
|
dsh-bio \\
|
||||||
split-gff3 \\
|
split-gff3 \\
|
||||||
|
|
|
@ -18,7 +18,7 @@ process ECTYPER {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def is_compressed = fasta.getName().endsWith(".gz") ? true : false
|
def is_compressed = fasta.getName().endsWith(".gz") ? true : false
|
||||||
def fasta_name = fasta.getName().replace(".gz", "")
|
def fasta_name = fasta.getName().replace(".gz", "")
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -16,7 +16,7 @@ process EMMTYPER {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
emmtyper \\
|
emmtyper \\
|
||||||
$args \\
|
$args \\
|
||||||
|
|
|
@ -24,7 +24,7 @@ process ENSEMBLVEP {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def dir_cache = task.ext.use_cache ? "\${PWD}/${cache}" : "/.vep"
|
def dir_cache = task.ext.use_cache ? "\${PWD}/${cache}" : "/.vep"
|
||||||
"""
|
"""
|
||||||
mkdir $prefix
|
mkdir $prefix
|
||||||
|
|
|
@ -18,7 +18,7 @@ process EXPANSIONHUNTER {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def gender = (meta.gender == 'male' || meta.gender == 1 || meta.gender == 'XY') ? "male" : "female"
|
def gender = (meta.gender == 'male' || meta.gender == 1 || meta.gender == 'XY') ? "male" : "female"
|
||||||
"""
|
"""
|
||||||
ExpansionHunter \\
|
ExpansionHunter \\
|
||||||
|
|
|
@ -17,7 +17,7 @@ process FASTANI {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
|
|
||||||
if (meta.batch_input) {
|
if (meta.batch_input) {
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -24,7 +24,7 @@ process FASTP {
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
// Added soft-links to original fastqs for consistent naming in MultiQC
|
// Added soft-links to original fastqs for consistent naming in MultiQC
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
if (meta.single_end) {
|
if (meta.single_end) {
|
||||||
def fail_fastq = save_trimmed_fail ? "--failed_out ${prefix}.fail.fastq.gz" : ''
|
def fail_fastq = save_trimmed_fail ? "--failed_out ${prefix}.fail.fastq.gz" : ''
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -18,7 +18,7 @@ process FASTQC {
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
// Add soft-links to original FastQs for consistent naming in pipeline
|
// Add soft-links to original FastQs for consistent naming in pipeline
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
if (meta.single_end) {
|
if (meta.single_end) {
|
||||||
"""
|
"""
|
||||||
[ ! -f ${prefix}.fastq.gz ] && ln -s $reads ${prefix}.fastq.gz
|
[ ! -f ${prefix}.fastq.gz ] && ln -s $reads ${prefix}.fastq.gz
|
||||||
|
|
|
@ -16,7 +16,7 @@ process FASTQSCAN {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
zcat $reads | \\
|
zcat $reads | \\
|
||||||
fastq-scan \\
|
fastq-scan \\
|
||||||
|
|
|
@ -16,7 +16,7 @@ process FGBIO_CALLMOLECULARCONSENSUSREADS {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
fgbio \\
|
fgbio \\
|
||||||
CallMolecularConsensusReads \\
|
CallMolecularConsensusReads \\
|
||||||
|
|
|
@ -17,7 +17,7 @@ process FGBIO_FASTQTOBAM {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
mkdir tmp
|
mkdir tmp
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ process FGBIO_GROUPREADSBYUMI {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
|
|
||||||
"""
|
"""
|
||||||
mkdir tmp
|
mkdir tmp
|
||||||
|
|
|
@ -16,7 +16,7 @@ process FGBIO_SORTBAM {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
fgbio \\
|
fgbio \\
|
||||||
SortBam \\
|
SortBam \\
|
||||||
|
|
|
@ -16,7 +16,7 @@ process FILTLONG {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def short_reads = meta.single_end ? "-1 $shortreads" : "-1 ${shortreads[0]} -2 ${shortreads[1]}"
|
def short_reads = meta.single_end ? "-1 $shortreads" : "-1 ${shortreads[0]} -2 ${shortreads[1]}"
|
||||||
"""
|
"""
|
||||||
filtlong \\
|
filtlong \\
|
||||||
|
|
|
@ -15,7 +15,7 @@ process FLASH {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
flash \\
|
flash \\
|
||||||
$args \\
|
$args \\
|
||||||
|
|
|
@ -22,7 +22,7 @@ process FREEBAYES {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def input = input_2 ? "${input_1} ${input_2}" : "${input_1}"
|
def input = input_2 ? "${input_1} ${input_2}" : "${input_1}"
|
||||||
def targets_file = targets ? "--target ${targets}" : ""
|
def targets_file = targets ? "--target ${targets}" : ""
|
||||||
def samples_file = samples ? "--samples ${samples}" : ""
|
def samples_file = samples ? "--samples ${samples}" : ""
|
||||||
|
|
|
@ -20,7 +20,7 @@ process GATK4_APPLYBQSR {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def interval = intervals ? "-L ${intervals}" : ""
|
def interval = intervals ? "-L ${intervals}" : ""
|
||||||
if (!task.memory) {
|
if (!task.memory) {
|
||||||
log.info '[GATK ApplyBQSR] Available memory not known - defaulting to 3GB. Specify process memory requirements to change this.'
|
log.info '[GATK ApplyBQSR] Available memory not known - defaulting to 3GB. Specify process memory requirements to change this.'
|
||||||
|
|
|
@ -22,7 +22,7 @@ process GATK4_BASERECALIBRATOR {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def intervalsCommand = intervalsBed ? "-L ${intervalsBed}" : ""
|
def intervalsCommand = intervalsBed ? "-L ${intervalsBed}" : ""
|
||||||
def sitesCommand = knownSites.collect{"--known-sites ${it}"}.join(' ')
|
def sitesCommand = knownSites.collect{"--known-sites ${it}"}.join(' ')
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ process GATK4_BEDTOINTERVALLIST {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
gatk BedToIntervalList \\
|
gatk BedToIntervalList \\
|
||||||
-I $bed \\
|
-I $bed \\
|
||||||
|
|
|
@ -18,7 +18,7 @@ process GATK4_CALCULATECONTAMINATION {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def matched_command = matched ? " -matched ${matched} " : ''
|
def matched_command = matched ? " -matched ${matched} " : ''
|
||||||
def segment_command = segmentout ? " -segments ${prefix}.segmentation.table" : ''
|
def segment_command = segmentout ? " -segments ${prefix}.segmentation.table" : ''
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -20,7 +20,7 @@ process GATK4_CREATESOMATICPANELOFNORMALS {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
gatk \\
|
gatk \\
|
||||||
CreateSomaticPanelOfNormals \\
|
CreateSomaticPanelOfNormals \\
|
||||||
|
|
|
@ -19,7 +19,7 @@ process GATK4_ESTIMATELIBRARYCOMPLEXITY {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def crams = cram.collect(){ x -> "-I ".concat(x.toString()) }.join(" ")
|
def crams = cram.collect(){ x -> "-I ".concat(x.toString()) }.join(" ")
|
||||||
|
|
||||||
def avail_mem = 3
|
def avail_mem = 3
|
||||||
|
|
|
@ -16,7 +16,7 @@ process GATK4_FASTQTOSAM {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def read_files = meta.single_end ? "-F1 $reads" : "-F1 ${reads[0]} -F2 ${reads[1]}"
|
def read_files = meta.single_end ? "-F1 $reads" : "-F1 ${reads[0]} -F2 ${reads[1]}"
|
||||||
"""
|
"""
|
||||||
gatk FastqToSam \\
|
gatk FastqToSam \\
|
||||||
|
|
|
@ -21,7 +21,7 @@ process GATK4_FILTERMUTECTCALLS {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
|
|
||||||
def orientationbias_options = ''
|
def orientationbias_options = ''
|
||||||
if (orientationbias) {
|
if (orientationbias) {
|
||||||
|
|
|
@ -22,7 +22,7 @@ process GATK4_GENOTYPEGVCFS {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def dbsnp_options = dbsnp ? "-D ${dbsnp}" : ""
|
def dbsnp_options = dbsnp ? "-D ${dbsnp}" : ""
|
||||||
def interval_options = intervals_bed ? "-L ${intervals_bed}" : ""
|
def interval_options = intervals_bed ? "-L ${intervals_bed}" : ""
|
||||||
def gvcf_options = gvcf.name.endsWith(".vcf") || gvcf.name.endsWith(".vcf.gz") ? "$gvcf" : "gendb://$gvcf"
|
def gvcf_options = gvcf.name.endsWith(".vcf") || gvcf.name.endsWith(".vcf.gz") ? "$gvcf" : "gendb://$gvcf"
|
||||||
|
|
|
@ -19,7 +19,7 @@ process GATK4_GETPILEUPSUMMARIES {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def sitesCommand = ''
|
def sitesCommand = ''
|
||||||
|
|
||||||
sitesCommand = sites ? " -L ${sites} " : " -L ${variants} "
|
sitesCommand = sites ? " -L ${sites} " : " -L ${variants} "
|
||||||
|
|
|
@ -23,7 +23,7 @@ process GATK4_HAPLOTYPECALLER {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def interval_option = interval ? "-L ${interval}" : ""
|
def interval_option = interval ? "-L ${interval}" : ""
|
||||||
def dbsnp_option = dbsnp ? "-D ${dbsnp}" : ""
|
def dbsnp_option = dbsnp ? "-D ${dbsnp}" : ""
|
||||||
def avail_mem = 3
|
def avail_mem = 3
|
||||||
|
|
|
@ -16,7 +16,7 @@ process GATK4_INTERVALLISTTOOLS {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
mkdir ${prefix}_split
|
mkdir ${prefix}_split
|
||||||
|
|
|
@ -16,7 +16,7 @@ process GATK4_LEARNREADORIENTATIONMODEL {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def inputs_list = []
|
def inputs_list = []
|
||||||
f1r2.each() { a -> inputs_list.add(" -I " + a) }
|
f1r2.each() { a -> inputs_list.add(" -I " + a) }
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -18,7 +18,7 @@ process GATK4_MARKDUPLICATES {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def bam_list = bams.collect(){ bam -> "--INPUT ".concat(bam.toString()) }.join(" ")
|
def bam_list = bams.collect(){ bam -> "--INPUT ".concat(bam.toString()) }.join(" ")
|
||||||
def avail_mem = 3
|
def avail_mem = 3
|
||||||
if (!task.memory) {
|
if (!task.memory) {
|
||||||
|
|
|
@ -19,7 +19,7 @@ process GATK4_MERGEBAMALIGNMENT {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
gatk MergeBamAlignment \\
|
gatk MergeBamAlignment \\
|
||||||
ALIGNED=$aligned \\
|
ALIGNED=$aligned \\
|
||||||
|
|
|
@ -18,7 +18,7 @@ process GATK4_MERGEVCFS {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.suffix ? "${meta.id}${task.ext.suffix}" : "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
|
|
||||||
// Make list of VCFs to merge
|
// Make list of VCFs to merge
|
||||||
def input = ""
|
def input = ""
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue