pezmaster31 / bamtools

C++ API & command-line toolkit for working with BAM data
MIT License
418 stars 153 forks source link

Allow fetching read name field without fetching other string fields? #225

Open rlorigro opened 2 years ago

rlorigro commented 2 years ago

Hi, for my purposes, I need to parse many alignments, but I don't much care about the cigar, or read sequence, or tags. However, I do need the read names. Is there currently any way to fetch the read name, given just the "AlignmentCore" without fetching the rest of the string fields?

Thanks

rlorigro commented 2 years ago

To clarify, I am working with Nanopore reads, which can have very long sequences, and loading the read name would be negligible in comparison