Skip to content

Commit 74398e2

Browse files
committed
Fix bwa-index issues with if clause
1 parent b835935 commit 74398e2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

main.nf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,9 @@ ${summary.collect { k,v -> " <dt>$k</dt><dd><samp>${v ?: '<span style
372372
/*
373373
* Create BWA indices if they are not present
374374
*/
375+
376+
if(!params.bwa_index && params.fasta && (params.aligner =='bwa' || params.bwamem)) {
377+
375378
process makeBWAIndex {
376379
tag {fasta}
377380
publishDir path: "${params.outdir}/reference_genome/bwa_index", mode: 'copy', saveAs: { filename ->
@@ -399,6 +402,8 @@ process makeBWAIndex {
399402
"""
400403
}
401404

405+
}
406+
402407

403408
/*
404409
* PREPROCESSING - Index Fasta file if not specified on CLI

0 commit comments

Comments
 (0)