rust-bio / rust-htslib

This library provides HTSlib bindings and a high level Rust API for reading and writing BAM files.
MIT License
308 stars 80 forks source link

[Feature Request] An option for pileup similar with `truncate` in pysam #414

Open Crispy13 opened 11 months ago

Crispy13 commented 11 months ago

Hi. In pileup() of pysam, it seems that there is an option named truncate which get the function to iterate over only pileup columns whose pileup pos is within query start and end.

Could you add an option like this here as well?

It would be good to get read information for specific cases from very big bam files.