Entering edit mode
3.2 years ago
O.rka
▴
740
I'm trying to adapt the following lines of code for use with GNU parallel:
for ID in $(cut -f1 markers.tsv);
do echo $ID;
FAA=${ID}.faa.gz
zcat ${FAA} | muscle -out ${ID}.msa
done
However, the examples I'm seeing here do not show where I can use my ${ID}
argument.
Can someone help me adapt this using --jobs 16
?
This could be one a one liner:
for ID in $(cut -f1 markers.tsv);
do echo $ID && FAA=${ID}.faa.gz && zcat ${FAA} | muscle -out ${ID}.msa
done
Preferably without an intermediate script
If you want to test how the parallel commands will look, add
--dry-run
for example:@OP: Cut may not be necessary here. Try:
you can also try: