[ont_qc] Add {} for bash variable of more than one number
We had an issue recently where the command would not be correctly interpreted :
ng6@node103 /work/ng6/jflow/work/ont_qc/wf007676 $ cat /work/ng6/jflow/work/ont_qc/wf007676/.working/7c6b4a7d6d/_Stash/0/0/0/w0000021
#!/bin/sh
module load bioinfo/seqkit-v0.9.3
/usr/local/bioinfo/SeqKit/seqkit-v0.9.3/seqkit stats --all $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14> $15
Was just adding a number behind an argument. Exemple, if $1 contains "unclassified.fastq.gz", then echo $15 will give : "unclassified.fastq.gz5".
We never noticed this issue before because we never had multiplexed run with more than 8 sample. To correct this issue, you should put the variable in this format : ${15}, like this :
/usr/local/bioinfo/SeqKit/seqkit-v0.9.3/seqkit stats --all ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14}> ${15}
Thank you for your help