Skip to content

Commit c2ce5c9

Browse files
authored
Fix condition and add better comments
1 parent 796f7eb commit c2ce5c9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

workflows/taxprofiler.nf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,11 @@ workflow TAXPROFILER {
6363
adapterlist = params.shortread_qc_adapterlist ? file(params.shortread_qc_adapterlist) : []
6464
custom_adapters = params.longread_qc_adapterlist ? file(params.longread_qc_adapterlist, checkIfExists: true) : []
6565

66-
if (params.shortread_hostremoval_tool == 'bowtie2' || params.longread_hostremoval_tool == 'bowtie2') {
66+
// Manual host removal
67+
if (params.shortread_hostremoval_tool == 'bowtie2' || params.longread_hostremoval_tool == 'minimap2') {
6768
ch_reference = file(params.hostremoval_reference)
6869
}
70+
// Dedicated tool host removal
6971
else if (params.shortread_hostremoval_tool == 'hostile' && params.longread_hostremoval_tool == 'hostile') {
7072
// Hostile does not accept references directly
7173
ch_reference = channel.empty()

0 commit comments

Comments
 (0)