nf-core_modules/modules/cnvkit/batch/main.nf

56 lines
1.6 KiB
Text
Raw Normal View History

process CNVKIT_BATCH {
cnvkit module (#173) * Normal bam file added * Normal bam.bai file added * Tumour bam bai files added * human dir added * annotation dir added * cnvkit dir added * cnvkit dir added * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * changed input filenames * edited main.nf * edited main.nf * edited meta.nf * edited test.yml * filters.yml * edited main * edited main * edited meta * edited meta * edited main * removed unwanted lines * edited the path to the main.nf * removed function.nf * added functions.nf * deleted 2 workflows and craeted a common workflow * deleted paths for 2 workflows and created paths for a common workflow * Deleted annotation dir * deleted params.modules * Edited meta.with_normal * deleted normal_280_sub_chr21.bam * deleted normal_280_sub_chr21.bam.bai * deleted tumour_278_sub_chr21.bam * deleted tumour_278_sub_chr21.bam.bai * Edited input and script parts * Edited input part * Added * Edited args * Edited script * Edited input * Changed annotation to annotationfile * Changed description of the tool * edited singularuty container * edited input * line 44 removed trailing whitespace * Edited addParams * Deleted pdf output * Deleted pdf output * edited the path to main.nf * edited path to the main.nf * Added docker image version * Removed extra ../ * added md5sums * added md5sums * Update software/cnvkit/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Update software/cnvkit/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Edited the script * Edited the input * Edited main.nf * Edited main.nf * edited md5sum for reference.cnn * removed human fasta * removed human fasta.fai * added GRCh38 fasta * added GRCh38 fasta.fai * added hg19 fasta.fai * added hg19 fasta * Edited fasta file name * Edited bed file names and md5sums * Edited md5sums * edited the input and script section * edited input section * added targetfile * changed the files * changed the output files * added bam files * added bam files * remove files * added md5sums * replace file * added files * edited tests/software/cnvkit files * edited tests/software/cnvkit files * edited authors list * removed files * added files * added files * added files * added files * added file * added file * added file * added file * edited files * edited files * edited files * edited files * edited files * edited files * added new module * added new module * edited files * edited file * edited file * edited file * removed files Co-authored-by: kaurravneet4123 <kaurravneet4123@yahoo.com@users.noreply.github.com> Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
2021-03-22 22:27:30 +00:00
tag "$meta.id"
label 'process_low'
conda (params.enable_conda ? 'bioconda::cnvkit=0.9.9' : null)
Update all modules to new NF DSL2 syntax (#1099) * 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 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>
2021-11-26 07:58:40 +00:00
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/cnvkit:0.9.9--pyhdfd78af_0' :
'quay.io/biocontainers/cnvkit:0.9.9--pyhdfd78af_0' }"
cnvkit module (#173) * Normal bam file added * Normal bam.bai file added * Tumour bam bai files added * human dir added * annotation dir added * cnvkit dir added * cnvkit dir added * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * changed input filenames * edited main.nf * edited main.nf * edited meta.nf * edited test.yml * filters.yml * edited main * edited main * edited meta * edited meta * edited main * removed unwanted lines * edited the path to the main.nf * removed function.nf * added functions.nf * deleted 2 workflows and craeted a common workflow * deleted paths for 2 workflows and created paths for a common workflow * Deleted annotation dir * deleted params.modules * Edited meta.with_normal * deleted normal_280_sub_chr21.bam * deleted normal_280_sub_chr21.bam.bai * deleted tumour_278_sub_chr21.bam * deleted tumour_278_sub_chr21.bam.bai * Edited input and script parts * Edited input part * Added * Edited args * Edited script * Edited input * Changed annotation to annotationfile * Changed description of the tool * edited singularuty container * edited input * line 44 removed trailing whitespace * Edited addParams * Deleted pdf output * Deleted pdf output * edited the path to main.nf * edited path to the main.nf * Added docker image version * Removed extra ../ * added md5sums * added md5sums * Update software/cnvkit/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Update software/cnvkit/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Edited the script * Edited the input * Edited main.nf * Edited main.nf * edited md5sum for reference.cnn * removed human fasta * removed human fasta.fai * added GRCh38 fasta * added GRCh38 fasta.fai * added hg19 fasta.fai * added hg19 fasta * Edited fasta file name * Edited bed file names and md5sums * Edited md5sums * edited the input and script section * edited input section * added targetfile * changed the files * changed the output files * added bam files * added bam files * remove files * added md5sums * replace file * added files * edited tests/software/cnvkit files * edited tests/software/cnvkit files * edited authors list * removed files * added files * added files * added files * added files * added file * added file * added file * added file * edited files * edited files * edited files * edited files * edited files * edited files * added new module * added new module * edited files * edited file * edited file * edited file * removed files Co-authored-by: kaurravneet4123 <kaurravneet4123@yahoo.com@users.noreply.github.com> Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
2021-03-22 22:27:30 +00:00
input:
tuple val(meta), path(tumor), path(normal)
path fasta
path targets
path reference
cnvkit module (#173) * Normal bam file added * Normal bam.bai file added * Tumour bam bai files added * human dir added * annotation dir added * cnvkit dir added * cnvkit dir added * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * changed input filenames * edited main.nf * edited main.nf * edited meta.nf * edited test.yml * filters.yml * edited main * edited main * edited meta * edited meta * edited main * removed unwanted lines * edited the path to the main.nf * removed function.nf * added functions.nf * deleted 2 workflows and craeted a common workflow * deleted paths for 2 workflows and created paths for a common workflow * Deleted annotation dir * deleted params.modules * Edited meta.with_normal * deleted normal_280_sub_chr21.bam * deleted normal_280_sub_chr21.bam.bai * deleted tumour_278_sub_chr21.bam * deleted tumour_278_sub_chr21.bam.bai * Edited input and script parts * Edited input part * Added * Edited args * Edited script * Edited input * Changed annotation to annotationfile * Changed description of the tool * edited singularuty container * edited input * line 44 removed trailing whitespace * Edited addParams * Deleted pdf output * Deleted pdf output * edited the path to main.nf * edited path to the main.nf * Added docker image version * Removed extra ../ * added md5sums * added md5sums * Update software/cnvkit/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Update software/cnvkit/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Edited the script * Edited the input * Edited main.nf * Edited main.nf * edited md5sum for reference.cnn * removed human fasta * removed human fasta.fai * added GRCh38 fasta * added GRCh38 fasta.fai * added hg19 fasta.fai * added hg19 fasta * Edited fasta file name * Edited bed file names and md5sums * Edited md5sums * edited the input and script section * edited input section * added targetfile * changed the files * changed the output files * added bam files * added bam files * remove files * added md5sums * replace file * added files * edited tests/software/cnvkit files * edited tests/software/cnvkit files * edited authors list * removed files * added files * added files * added files * added files * added file * added file * added file * added file * edited files * edited files * edited files * edited files * edited files * edited files * added new module * added new module * edited files * edited file * edited file * edited file * removed files Co-authored-by: kaurravneet4123 <kaurravneet4123@yahoo.com@users.noreply.github.com> Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
2021-03-22 22:27:30 +00:00
output:
tuple val(meta), path("*.bed"), emit: bed
tuple val(meta), path("*.cnn"), emit: cnn, optional: true
tuple val(meta), path("*.cnr"), emit: cnr, optional: true
tuple val(meta), path("*.cns"), emit: cns, optional: true
path "versions.yml" , emit: versions
cnvkit module (#173) * Normal bam file added * Normal bam.bai file added * Tumour bam bai files added * human dir added * annotation dir added * cnvkit dir added * cnvkit dir added * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * changed input filenames * edited main.nf * edited main.nf * edited meta.nf * edited test.yml * filters.yml * edited main * edited main * edited meta * edited meta * edited main * removed unwanted lines * edited the path to the main.nf * removed function.nf * added functions.nf * deleted 2 workflows and craeted a common workflow * deleted paths for 2 workflows and created paths for a common workflow * Deleted annotation dir * deleted params.modules * Edited meta.with_normal * deleted normal_280_sub_chr21.bam * deleted normal_280_sub_chr21.bam.bai * deleted tumour_278_sub_chr21.bam * deleted tumour_278_sub_chr21.bam.bai * Edited input and script parts * Edited input part * Added * Edited args * Edited script * Edited input * Changed annotation to annotationfile * Changed description of the tool * edited singularuty container * edited input * line 44 removed trailing whitespace * Edited addParams * Deleted pdf output * Deleted pdf output * edited the path to main.nf * edited path to the main.nf * Added docker image version * Removed extra ../ * added md5sums * added md5sums * Update software/cnvkit/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Update software/cnvkit/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Edited the script * Edited the input * Edited main.nf * Edited main.nf * edited md5sum for reference.cnn * removed human fasta * removed human fasta.fai * added GRCh38 fasta * added GRCh38 fasta.fai * added hg19 fasta.fai * added hg19 fasta * Edited fasta file name * Edited bed file names and md5sums * Edited md5sums * edited the input and script section * edited input section * added targetfile * changed the files * changed the output files * added bam files * added bam files * remove files * added md5sums * replace file * added files * edited tests/software/cnvkit files * edited tests/software/cnvkit files * edited authors list * removed files * added files * added files * added files * added files * added file * added file * added file * added file * edited files * edited files * edited files * edited files * edited files * edited files * added new module * added new module * edited files * edited file * edited file * edited file * removed files Co-authored-by: kaurravneet4123 <kaurravneet4123@yahoo.com@users.noreply.github.com> Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
2021-03-22 22:27:30 +00:00
2022-02-04 08:53:32 +00:00
when:
task.ext.when == null || task.ext.when
cnvkit module (#173) * Normal bam file added * Normal bam.bai file added * Tumour bam bai files added * human dir added * annotation dir added * cnvkit dir added * cnvkit dir added * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * changed input filenames * edited main.nf * edited main.nf * edited meta.nf * edited test.yml * filters.yml * edited main * edited main * edited meta * edited meta * edited main * removed unwanted lines * edited the path to the main.nf * removed function.nf * added functions.nf * deleted 2 workflows and craeted a common workflow * deleted paths for 2 workflows and created paths for a common workflow * Deleted annotation dir * deleted params.modules * Edited meta.with_normal * deleted normal_280_sub_chr21.bam * deleted normal_280_sub_chr21.bam.bai * deleted tumour_278_sub_chr21.bam * deleted tumour_278_sub_chr21.bam.bai * Edited input and script parts * Edited input part * Added * Edited args * Edited script * Edited input * Changed annotation to annotationfile * Changed description of the tool * edited singularuty container * edited input * line 44 removed trailing whitespace * Edited addParams * Deleted pdf output * Deleted pdf output * edited the path to main.nf * edited path to the main.nf * Added docker image version * Removed extra ../ * added md5sums * added md5sums * Update software/cnvkit/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Update software/cnvkit/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Edited the script * Edited the input * Edited main.nf * Edited main.nf * edited md5sum for reference.cnn * removed human fasta * removed human fasta.fai * added GRCh38 fasta * added GRCh38 fasta.fai * added hg19 fasta.fai * added hg19 fasta * Edited fasta file name * Edited bed file names and md5sums * Edited md5sums * edited the input and script section * edited input section * added targetfile * changed the files * changed the output files * added bam files * added bam files * remove files * added md5sums * replace file * added files * edited tests/software/cnvkit files * edited tests/software/cnvkit files * edited authors list * removed files * added files * added files * added files * added files * added file * added file * added file * added file * edited files * edited files * edited files * edited files * edited files * edited files * added new module * added new module * edited files * edited file * edited file * edited file * removed files Co-authored-by: kaurravneet4123 <kaurravneet4123@yahoo.com@users.noreply.github.com> Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
2021-03-22 22:27:30 +00:00
script:
Update all modules to new NF DSL2 syntax (#1099) * 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 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>
2021-11-26 07:58:40 +00:00
def args = task.ext.args ?: ''
def normal_args = normal ? "--normal $normal" : ""
def fasta_args = fasta ? "--fasta $fasta" : ""
def reference_args = reference ? "--reference $reference" : ""
def target_args = ""
Update all modules to new NF DSL2 syntax (#1099) * 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 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>
2021-11-26 07:58:40 +00:00
if (args.contains("--method wgs") || args.contains("-m wgs")) {
target_args = targets ? "--targets $targets" : ""
}
else {
target_args = "--targets $targets"
}
cnvkit module (#173) * Normal bam file added * Normal bam.bai file added * Tumour bam bai files added * human dir added * annotation dir added * cnvkit dir added * cnvkit dir added * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * changed input filenames * edited main.nf * edited main.nf * edited meta.nf * edited test.yml * filters.yml * edited main * edited main * edited meta * edited meta * edited main * removed unwanted lines * edited the path to the main.nf * removed function.nf * added functions.nf * deleted 2 workflows and craeted a common workflow * deleted paths for 2 workflows and created paths for a common workflow * Deleted annotation dir * deleted params.modules * Edited meta.with_normal * deleted normal_280_sub_chr21.bam * deleted normal_280_sub_chr21.bam.bai * deleted tumour_278_sub_chr21.bam * deleted tumour_278_sub_chr21.bam.bai * Edited input and script parts * Edited input part * Added * Edited args * Edited script * Edited input * Changed annotation to annotationfile * Changed description of the tool * edited singularuty container * edited input * line 44 removed trailing whitespace * Edited addParams * Deleted pdf output * Deleted pdf output * edited the path to main.nf * edited path to the main.nf * Added docker image version * Removed extra ../ * added md5sums * added md5sums * Update software/cnvkit/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Update software/cnvkit/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Edited the script * Edited the input * Edited main.nf * Edited main.nf * edited md5sum for reference.cnn * removed human fasta * removed human fasta.fai * added GRCh38 fasta * added GRCh38 fasta.fai * added hg19 fasta.fai * added hg19 fasta * Edited fasta file name * Edited bed file names and md5sums * Edited md5sums * edited the input and script section * edited input section * added targetfile * changed the files * changed the output files * added bam files * added bam files * remove files * added md5sums * replace file * added files * edited tests/software/cnvkit files * edited tests/software/cnvkit files * edited authors list * removed files * added files * added files * added files * added files * added file * added file * added file * added file * edited files * edited files * edited files * edited files * edited files * edited files * added new module * added new module * edited files * edited file * edited file * edited file * removed files Co-authored-by: kaurravneet4123 <kaurravneet4123@yahoo.com@users.noreply.github.com> Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
2021-03-22 22:27:30 +00:00
"""
cnvkit.py \\
batch \\
$tumor \\
$normal_args \\
$fasta_args \\
$reference_args \\
$target_args \\
Update all modules to new NF DSL2 syntax (#1099) * 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 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>
2021-11-26 07:58:40 +00:00
--processes $task.cpus \\
$args
cnvkit module (#173) * Normal bam file added * Normal bam.bai file added * Tumour bam bai files added * human dir added * annotation dir added * cnvkit dir added * cnvkit dir added * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * changed input filenames * edited main.nf * edited main.nf * edited meta.nf * edited test.yml * filters.yml * edited main * edited main * edited meta * edited meta * edited main * removed unwanted lines * edited the path to the main.nf * removed function.nf * added functions.nf * deleted 2 workflows and craeted a common workflow * deleted paths for 2 workflows and created paths for a common workflow * Deleted annotation dir * deleted params.modules * Edited meta.with_normal * deleted normal_280_sub_chr21.bam * deleted normal_280_sub_chr21.bam.bai * deleted tumour_278_sub_chr21.bam * deleted tumour_278_sub_chr21.bam.bai * Edited input and script parts * Edited input part * Added * Edited args * Edited script * Edited input * Changed annotation to annotationfile * Changed description of the tool * edited singularuty container * edited input * line 44 removed trailing whitespace * Edited addParams * Deleted pdf output * Deleted pdf output * edited the path to main.nf * edited path to the main.nf * Added docker image version * Removed extra ../ * added md5sums * added md5sums * Update software/cnvkit/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Update software/cnvkit/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Edited the script * Edited the input * Edited main.nf * Edited main.nf * edited md5sum for reference.cnn * removed human fasta * removed human fasta.fai * added GRCh38 fasta * added GRCh38 fasta.fai * added hg19 fasta.fai * added hg19 fasta * Edited fasta file name * Edited bed file names and md5sums * Edited md5sums * edited the input and script section * edited input section * added targetfile * changed the files * changed the output files * added bam files * added bam files * remove files * added md5sums * replace file * added files * edited tests/software/cnvkit files * edited tests/software/cnvkit files * edited authors list * removed files * added files * added files * added files * added files * added file * added file * added file * added file * edited files * edited files * edited files * edited files * edited files * edited files * added new module * added new module * edited files * edited file * edited file * edited file * removed files Co-authored-by: kaurravneet4123 <kaurravneet4123@yahoo.com@users.noreply.github.com> Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
2021-03-22 22:27:30 +00:00
cat <<-END_VERSIONS > versions.yml
Update all modules to new NF DSL2 syntax (#1099) * 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 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>
2021-11-26 07:58:40 +00:00
"${task.process}":
cnvkit: \$(cnvkit.py version | sed -e "s/cnvkit v//g")
END_VERSIONS
cnvkit module (#173) * Normal bam file added * Normal bam.bai file added * Tumour bam bai files added * human dir added * annotation dir added * cnvkit dir added * cnvkit dir added * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * Update software/cnvkit/main.nf Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> * changed input filenames * edited main.nf * edited main.nf * edited meta.nf * edited test.yml * filters.yml * edited main * edited main * edited meta * edited meta * edited main * removed unwanted lines * edited the path to the main.nf * removed function.nf * added functions.nf * deleted 2 workflows and craeted a common workflow * deleted paths for 2 workflows and created paths for a common workflow * Deleted annotation dir * deleted params.modules * Edited meta.with_normal * deleted normal_280_sub_chr21.bam * deleted normal_280_sub_chr21.bam.bai * deleted tumour_278_sub_chr21.bam * deleted tumour_278_sub_chr21.bam.bai * Edited input and script parts * Edited input part * Added * Edited args * Edited script * Edited input * Changed annotation to annotationfile * Changed description of the tool * edited singularuty container * edited input * line 44 removed trailing whitespace * Edited addParams * Deleted pdf output * Deleted pdf output * edited the path to main.nf * edited path to the main.nf * Added docker image version * Removed extra ../ * added md5sums * added md5sums * Update software/cnvkit/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Update software/cnvkit/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Edited the script * Edited the input * Edited main.nf * Edited main.nf * edited md5sum for reference.cnn * removed human fasta * removed human fasta.fai * added GRCh38 fasta * added GRCh38 fasta.fai * added hg19 fasta.fai * added hg19 fasta * Edited fasta file name * Edited bed file names and md5sums * Edited md5sums * edited the input and script section * edited input section * added targetfile * changed the files * changed the output files * added bam files * added bam files * remove files * added md5sums * replace file * added files * edited tests/software/cnvkit files * edited tests/software/cnvkit files * edited authors list * removed files * added files * added files * added files * added files * added file * added file * added file * added file * edited files * edited files * edited files * edited files * edited files * edited files * added new module * added new module * edited files * edited file * edited file * edited file * removed files Co-authored-by: kaurravneet4123 <kaurravneet4123@yahoo.com@users.noreply.github.com> Co-authored-by: Maxime Garcia <maxime.garcia@scilifelab.se> Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
2021-03-22 22:27:30 +00:00
"""
}