fmicompbio / footprintR

Tools for working with single-molecule footprinting data
https://fmicompbio.github.io/footprintR/
Other
0 stars 0 forks source link

Add readModBam() to extract modification probabilities directly from bam files (MM/ML tags) #4

Closed mbstadler closed 1 month ago

mbstadler commented 1 month ago

I am opening this PR because it would be great to get your input on what you think about this.

The workhorse function read_modbam_cpp() is in C++ (so it will add a few dependencies) and seems to do what it needs, although I get a minority subset of probabilities that differ when comparing to the ones returned by modkit.

It would also be good to integrate filtering (at the moment, no filtering is performed, thus many more positions are returned than by modkit).

codecov-commenter commented 1 month ago

Welcome to Codecov :tada:

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered :open_umbrella:

mbstadler commented 1 month ago

I think that getReadDataForRegion() has become obsolete and superseded by readModBam(), which should do the same thing but more efficiently. If you agree, I'll remove it.