Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base mod API clarification #1635

Closed
jts opened this issue Jun 19, 2023 · 2 comments
Closed

base mod API clarification #1635

jts opened this issue Jun 19, 2023 · 2 comments

Comments

@jts
Copy link

jts commented Jun 19, 2023

I've been working to add support for the basemod API to rust-htslib (rust-bio/rust-htslib#385) and am a bit confused about the base_mod_query_type function. I currently use it to retrieve metadata (strand, canonical base, implicit/explicit flag) for each modification code but when writing a test around MM-double.sam I realized that it will always return metadata for the first m mod (C+m, never G-m) in the record. Is it intended that user-level code uses base_mod_query_type, or should we only use the data returned during iteration (like in the test_mod.c driver code)?

@jts
Copy link
Author

jts commented Jun 19, 2023

@cjw85 just pointed out to me this is essentially the same as #1550. Feel free to close to keep the discussion in one place but it might be good to add a new API call base_mod_queryi (or something) that returns metadata for the i-th modification in the record, to be used with bam_mods_recorded.

@jkbonfield
Copy link
Contributor

Closing and will start on #1550 then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants