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