Hello,
Is it possible to obtain the read group of a bam file ?
I am doing this by converting bam into sam (see below) but I would like to do it directly on the bam file because converting is long !
Thanks a lot !
#samtools view -h ${OUTPUT}.bam > ${OUTPUT}.bam.sam
#grep "^@RG" ${OUTPUT}.bam.sam > RG_${OUTPUT}
Is it possible to obtain the read group of a bam file ?
I am doing this by converting bam into sam (see below) but I would like to do it directly on the bam file because converting is long !
Thanks a lot !
#samtools view -h ${OUTPUT}.bam > ${OUTPUT}.bam.sam
#grep "^@RG" ${OUTPUT}.bam.sam > RG_${OUTPUT}
Comment