diff --git a/modules/local/irma.nf b/modules/local/irma.nf index 8ad2b69..f45233e 100644 --- a/modules/local/irma.nf +++ b/modules/local/irma.nf @@ -37,7 +37,7 @@ process IRMA { IRMA $irma_module $reads $meta.id - if compgen -G "${meta.id}/amended_consensus/*.fa" > /dev/null; then + if ls "${meta.id}/amended_consensus/*.fa" > /dev/null 2>&1; then cat ${meta.id}/amended_consensus/*.fa > ${meta.id}.irma.consensus.fasta fi ln -s .command.log $irma_log