String disk_size | String disk_size | ||||
command <<< | command <<< | ||||
cat ${region} | whlie read a | |||||
cat ${region} | while read a | |||||
do | do | ||||
/opt/conda/bin/samtools view -b ${bam} "$a" > $a.${sample}.bam | /opt/conda/bin/samtools view -b ${bam} "$a" > $a.${sample}.bam | ||||
/opt/conda/bin/samtools index $a.${sample}.bam | /opt/conda/bin/samtools index $a.${sample}.bam |