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

No error thrown with an invalid region #200

Open
jamespeapen opened this issue May 5, 2021 · 0 comments
Open

No error thrown with an invalid region #200

jamespeapen opened this issue May 5, 2021 · 0 comments

Comments

@jamespeapen
Copy link
Contributor

Is there a way to know if the region supplied to the VCF reader is a valid region?

# reading vcf of chr19
reader = VCF("chr19.vcf")

# try getting a region fro chr30 
region = reader("chr30:45407332-45424365")

# use invalid region with letters
region = reader("chr19:45407332-aaaaaaa")

The creation of these invalid regions don't throw any errors. The "no intervals found for vcf" error in thrown only when iterating through the region.

Is there a way to know when an invalid region has been queried without trying to iterate through it?

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