! /bin/bash
$ -l mem=30G,time=50::
$ -j y
$ -N bam2fq
$ -cwd
source ~/.bashrc
for i in $(seq 1 96)
do
samtools bam2fq /ifs/scratch/L001_C{i}.fastq
done
Reference:
https://sites.google.com/site/wiki4metagenomics/tools/samtools/converting-bam-to-fastq