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

Query samples looping #88

Merged
merged 4 commits into from
Oct 14, 2024

Conversation

Will-Tyler
Copy link
Contributor

Overview

This pull request adds support for looping over samples in queries. This pull request closes #83.

Testing

I add unit tests and validation tests based on the bcftools query examples. The coverage report showed good coverage, except for the case where there is no phasing information. I chose not to implement this since there isn't a test dataset with genotype data but without phasing data. If there is a convenient way to test this, I would be happy to implement it and add tests.

References

@Will-Tyler
Copy link
Contributor Author

Sample filtering is not implemented yet in vcztools query, but it should be easy to filter samples by applying the sample selection when loading the data in the tag generator in _compose_tag_generator.


Some of the bcftools query examples use the %SAMPLE tag. This is not implemented yet, and I am thinking to open an issue for this.

Copy link
Contributor

@jeromekelleher jeromekelleher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jeromekelleher jeromekelleher merged commit 9ba6758 into sgkit-dev:main Oct 14, 2024
11 checks passed
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

Successfully merging this pull request may close these issues.

vcztools query: support looping over samples
3 participants