diff --git a/modules/motus/profile/main.nf b/modules/motus/profile/main.nf index dac4fe37..6a1acd3d 100644 --- a/modules/motus/profile/main.nf +++ b/modules/motus/profile/main.nf @@ -25,7 +25,7 @@ process MOTUS_PROFILE { def prefix = task.ext.prefix ?: "${meta.id}" def inputs = reads[0].getExtension() == 'bam' ? "-i ${reads}" : - $reads[0].getExtension() == 'mgc' ? "-m $reads" : + reads[0].getExtension() == 'mgc' ? "-m $reads" : meta.single_end ? "-s $reads" : "-f ${reads[0]} -r ${reads[1]}" def refdb = db ? "-db ${db}" : ""