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

API Function to check for queryname or query group sorts #799

Open
nh13 opened this issue Mar 1, 2022 · 0 comments
Open

API Function to check for queryname or query group sorts #799

nh13 opened this issue Mar 1, 2022 · 0 comments

Comments

@nh13
Copy link
Member

nh13 commented Mar 1, 2022

In a lot of places we check if the input SAM header is queryname or query group sorted. We should have a single function in Bams to do this.

I think we should also have a function that can be used on an iterator of SAM records that checks for either queryname or query group sorts, and emits a warning (or fails) when proven wrong. It would return an iterator of sam records so it can be used in a map over the iterator.

We could then use the above methods in our consensus tools to warn when the user really should provide a sorted SAM in the right order, or just check ourselves.

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

1 participant