Entering edit mode
8.2 years ago
BioICoder
▴
40
Hello there,
Is there away to be able to extract the entire chromosome sequence from the bam file using the Pysam Python module? I am trying to analyze the entire aligned sequence of some chromosome for instance chr1 from NGS.
Thanks a lot in advance.
if you mean extracting the reads aligned to chr1 you can use
and if you want extract your chromosome in bam format using samtools