Closed rrazaghi closed 2 years ago
In what sense? I guess to return simply and list of (position, score)
tuples for the modified base probabilities?
yes exactly! I've received a few feature requests for these within modbamtools and trying to make a module around them
I think we're basically in the realm here of reimplementing pysam, which I'd rather not do.
The information you want is available through pysam: https://pysam.readthedocs.io/en/latest/api.html?highlight=modified%20bases#pysam.AlignedSegment.modified_bases
They don't appear to have anything tying into the pileup API; so there's no one API that "does everything". You may wish to ask @AndreasHeger about this as I know he was playing with the code in modbampy.
I wasn't aware this was implemented (partially) in pysam but this is exactly what I want.
I saw Marcus has opened an issue there as it currently does not support ?
in MM tag. Thanks!
It doesn't support ?
because I believe it uses a slightly older version of htslib than the current development branch. IIRC even the current development branch of htslib doesn't do anything clever with the ?
flag, it just doesn't barf like the earlier implementation.
Hi @cjw85 ,
was wondering if there's a way to parse reads in an unaligned modbam using modbampy. Thanks!