groovy formatting

This commit is contained in:
kevinmenden 2020-12-17 10:24:48 +01:00
parent 8d3fc30eb3
commit 57ab6dbcbf
2 changed files with 15 additions and 15 deletions

View file

@ -11,21 +11,21 @@ process BOWTIE_ALIGN {
mode: params.publish_dir_mode,
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), publish_id:meta.id) }
conda (params.enable_conda ? "bioconda::bowtie=1.3.0 bioconda::samtools=1.10" : null)
conda (params.enable_conda ? 'bioconda::bowtie=1.3.0 bioconda::samtools=1.10' : null)
if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/mulled-v2-ffbf83a6b0ab6ec567a336cf349b80637135bca3:9e14e16c284d6860574cf5b624bbc44c793cb024-0"
container 'https://depot.galaxyproject.org/singularity/mulled-v2-ffbf83a6b0ab6ec567a336cf349b80637135bca3:9e14e16c284d6860574cf5b624bbc44c793cb024-0'
} else {
container "quay.io/biocontainers/mulled-v2-ffbf83a6b0ab6ec567a336cf349b80637135bca3:9e14e16c284d6860574cf5b624bbc44c793cb024-0"
container 'quay.io/biocontainers/mulled-v2-ffbf83a6b0ab6ec567a336cf349b80637135bca3:9e14e16c284d6860574cf5b624bbc44c793cb024-0'
}
input:
tuple val(meta), path(reads)
path index
output:
tuple val(meta), path("*.bam"), emit: bam
tuple val(meta), path("*.out"), emit: log
path "bowtie.version.txt", emit: version
tuple val(meta), path('*.bam'), emit: bam
tuple val(meta), path('*.out'), emit: log
path 'bowtie.version.txt', emit: version
script:
def software = getSoftwareName(task.process)
@ -39,10 +39,10 @@ process BOWTIE_ALIGN {
--sam \\
-x \$INDEX \\
-q \\
$unaligned \\
$unaligned \\
$options.args \\
$endedness \\
2> ${prefix}.out \\
2> ${prefix}.out \\
| samtools view $options.args2 -@ $task.cpus -bS -o ${prefix}.bam -
bowtie --version | head -n 1 | cut -d" " -f3 > ${software}.version.txt

View file

@ -11,19 +11,19 @@ process BOWTIE_INDEX {
mode: params.publish_dir_mode,
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), publish_id:'') }
conda (params.enable_conda ? "bioconda::bowtie=1.3.0" : null)
conda (params.enable_conda ? 'bioconda::bowtie=1.3.0' : null)
if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/bowtie:1.3.0--py38hed8969a_1"
container 'https://depot.galaxyproject.org/singularity/bowtie:1.3.0--py38hed8969a_1'
} else {
container "quay.io/biocontainers/bowtie:1.3.0--py38hed8969a_1"
container 'quay.io/biocontainers/bowtie:1.3.0--py38hed8969a_1'
}
input:
path fasta
output:
path "bowtie", emit: index
path "*.version.txt", emit: version
path 'bowtie', emit: index
path '*.version.txt', emit: version
script:
def software = getSoftwareName(task.process)
@ -32,4 +32,4 @@ process BOWTIE_INDEX {
bowtie-build --threads $task.cpus ${fasta} bowtie/${fasta.baseName}.index
bowtie --version | head -n 1 | cut -d" " -f3 > ${software}.version.txt
"""
}
}