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

Number of variants from index file #195

Closed
kriestof opened this issue Aug 17, 2023 · 2 comments
Closed

Number of variants from index file #195

kriestof opened this issue Aug 17, 2023 · 2 comments
Labels

Comments

@kriestof
Copy link

kriestof commented Aug 17, 2023

Is it possible to get number of variants from tabix/csi file?

From what I find it should be (here and here).

Sorry for asking question here, but could not find better spot. I just want to indicate some progress information while loading vcf. Of course it's non-critical feature.

@zaeleus
Copy link
Owner

zaeleus commented Aug 17, 2023

Sum the mapped record counts of each reference sequence in the index, e.g., noodles-csi/examples/csi_count.rs. This works for any of the binning index formats (BAI, CSI, and tabix).

Sorry for asking question here, but could not find better spot.

No problem! You can use discussions if you have general questions and don't want to open an issue.

@zaeleus zaeleus added the csi label Aug 17, 2023
@kriestof
Copy link
Author

Ok, closing. Thank you for the answer. Should have checked better with examples. Next time I will use discussion.

@zaeleus zaeleus closed this as completed Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants