Skip to content

Commit 59388ea

Browse files
committed
Formatting
1 parent 68514c1 commit 59388ea

3 files changed

Lines changed: 15 additions & 19 deletions

File tree

modules/local/samtools/unmapped/main.nf

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
process SAMTOOLS_UNMAPPED {
2-
tag "$meta.id"
2+
tag "${meta.id}"
33
label 'process_low'
44

55
conda "bioconda::samtools=1.21"
6-
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
7-
'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/9e/9edc2564215d5cd137a8b25ca8a311600987186d406b092022444adf3c4447f7/data' :
8-
'community.wave.seqera.io/library/htslib_samtools:1.21--6cb89bfd40cbaabf' }"
6+
container "${workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container
7+
? 'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/9e/9edc2564215d5cd137a8b25ca8a311600987186d406b092022444adf3c4447f7/data'
8+
: 'community.wave.seqera.io/library/htslib_samtools:1.21--6cb89bfd40cbaabf'}"
99

1010
input:
1111
tuple val(meta), path(input), path(index)
1212

1313
output:
1414
tuple val(meta), path("*hostremoved.fastq.gz"), emit: fastq
15-
path "versions.yml", emit: versions
15+
path "versions.yml" , emit: versions
1616

1717
when:
1818
task.ext.when == null || task.ext.when
@@ -26,16 +26,16 @@ process SAMTOOLS_UNMAPPED {
2626
"""
2727
samtools \\
2828
view \\
29-
--threads ${task.cpus-1} \\
30-
$args \\
31-
$input \\
29+
--threads ${task.cpus - 1} \\
30+
${args} \\
31+
${input} \\
3232
| \\
3333
samtools \\
3434
fastq \\
35-
$args2 \\
36-
--threads ${task.cpus-1} \\
35+
${args2} \\
36+
--threads ${task.cpus - 1} \\
3737
-0 ${prefix}.fastq.gz \\
38-
$mapped
38+
${mapped}
3939
4040
cat <<-END_VERSIONS > versions.yml
4141
"${task.process}":
@@ -44,7 +44,6 @@ process SAMTOOLS_UNMAPPED {
4444
"""
4545

4646
stub:
47-
def args = task.ext.args ?: ''
4847
def prefix = task.ext.prefix ?: "${meta.id}"
4948
"""
5049
touch ${prefix}.fastq.gz

subworkflows/local/tiara/main.nf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ workflow TIARA {
118118
.map { _meta, classification ->
119119
[ classification ]
120120
}
121-
.collect()
122-
.map { classifications ->
121+
.collect { classifications ->
123122
[[:], classifications]
124123
}
125124

subworkflows/local/utils_nfcore_mag_pipeline/main.nf

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,15 @@ workflow PIPELINE_INITIALISATION {
9797
ch_samplesheet
9898
.map { meta, _sr1, _sr2, _lr -> meta.sr_platform }
9999
.unique()
100-
.collect()
101-
.map {
100+
.collect {
102101
if (it.size() > 1) {
103102
error("[nf-core/mag] ERROR: Multiple short read sequencing platforms found in samplesheet. Use same platform for all samples when running with binning_map_mode 'all'.")
104103
}
105104
}
106105
ch_samplesheet
107106
.map { meta, _sr1, _sr2, _lr -> meta.lr_platform }
108107
.unique()
109-
.collect()
110-
.map {
108+
.collect {
111109
if (it.size() > 1) {
112110
error("[nf-core/mag] ERROR: Multiple long read sequencing platforms found in samplesheet. Use same platform for all samples when running with binning_map_mode 'all'.")
113111
}
@@ -138,7 +136,7 @@ workflow PIPELINE_INITIALISATION {
138136
ch_raw_long_reads
139137
.map { meta, lr -> [ meta.id, lr ] }
140138
.join(ch_raw_long_reads.map {meta, sr1 -> [meta.id, sr1] }, by: 0, remainder: true)
141-
.map { id, lr, sr1 ->
139+
.map { _id, lr, sr1 ->
142140
if (lr && sr1) {
143141
hybrid = true
144142
}

0 commit comments

Comments
 (0)