79614681

Date: 2025-05-09 18:28:34
Score: 1
Natty:
Report link

yes, you can either loop across files or parallel the runs.

for bam in $(ls *.bam)
do              
samtools fastq $bam > my_converted_$bam_file.fastq
done

or

parallel -j 4 'samtools fastq {} > {.}.fastq ' ::: *.bam # where 4 is the number of jobs you want to run in parallel
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: nicolotellini