Right now I need to grab some information from lines of SAM/BAM files. Well, I know we cannot directly view BAM files as SAM.
But do we have any ways of accessing the information of BAM without converting it to SAM? You know, SAM is three times larger.
thx
Pipe. Practically we almost never decompress BAM or a gzip file.
what information are you trying to grab?
Distance between two mapped reads.
That presumes that parsing SAM is easier than BAM. But that's only true if you're stuck with a poor scripting language.