Skip to content

Commit

Permalink
irma.nf: check that amended_consensus fasta files exist before concat…
Browse files Browse the repository at this point in the history
…enation using ls instead of compgen
  • Loading branch information
peterk87 committed Sep 11, 2023
1 parent 2a0d9e7 commit 0946f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/local/irma.nf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0946f98

Please sign in to comment.