Skip to content

Commit

Permalink
Remove unnecessary (and sometimes problematic) input channel
Browse files Browse the repository at this point in the history
  • Loading branch information
jfy133 committed Jul 27, 2023
1 parent 286545e commit d591036
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 0 additions & 3 deletions modules/nf-core/centrifuge/centrifuge/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ process CENTRIFUGE_CENTRIFUGE {
path db
val save_unaligned
val save_aligned
val sam_format

output:
tuple val(meta), path('*report.txt') , emit: report
Expand All @@ -38,7 +37,6 @@ process CENTRIFUGE_CENTRIFUGE {
unaligned = save_unaligned ? "--un-conc-gz ${prefix}.unmapped.fastq.gz" : ''
aligned = save_aligned ? "--al-conc-gz ${prefix}.mapped.fastq.gz" : ''
}
def sam_output = sam_format ? "--out-fmt 'sam'" : ''
"""
## we add "-no-name ._" to ensure silly Mac OSX metafiles files aren't included
db_name=`find -L ${db} -name "*.1.cf" -not -name "._*" | sed 's/\\.1.cf\$//'`
Expand All @@ -51,7 +49,6 @@ process CENTRIFUGE_CENTRIFUGE {
$unaligned \\
$aligned \\
$sam_output \\
$args
cat <<-END_VERSIONS > versions.yml
"${task.process}":
Expand Down
6 changes: 2 additions & 4 deletions tests/modules/nf-core/centrifuge/centrifuge/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ workflow test_centrifuge_centrifuge_single_end {
db = [ [], file('https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/delete_me/minigut_cf.tar.gz', checkIfExists: true) ]
save_unaligned = true
save_aligned = false
sam_format = false

UNTAR ( db )
CENTRIFUGE_CENTRIFUGE ( input, UNTAR.out.untar.map{ it[1] }, save_unaligned, save_aligned, sam_format )
CENTRIFUGE_CENTRIFUGE ( input, UNTAR.out.untar.map{ it[1] }, save_unaligned, save_aligned )

}

Expand All @@ -27,10 +26,9 @@ workflow test_centrifuge_centrifuge_paired_end {
db = [ [], file('https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/delete_me/minigut_cf.tar.gz', checkIfExists: true) ]
save_unaligned = true
save_aligned = false
sam_format = false

UNTAR ( db )
CENTRIFUGE_CENTRIFUGE ( input, UNTAR.out.untar.map{ it[1] }, save_unaligned, save_aligned, sam_format )
CENTRIFUGE_CENTRIFUGE ( input, UNTAR.out.untar.map{ it[1] }, save_unaligned, save_aligned )


}

0 comments on commit d591036

Please sign in to comment.