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

Confusing behaviour of VariantRecord.filter #1309

Open
awgymer opened this issue Oct 1, 2024 · 0 comments
Open

Confusing behaviour of VariantRecord.filter #1309

awgymer opened this issue Oct 1, 2024 · 0 comments

Comments

@awgymer
Copy link

awgymer commented Oct 1, 2024

Trying to check the filter values of a record:

chr1	882644	MY_DEL	T	<DEL>	35	.	END=882732
print(record.filter.items())
[]

'PASS' in record.filter
True

'PASS' in record.filter.keys()
False

The behaviour of this in check feels confusing.
Is it correct and expected that the right way to check if a particular record has a filter value is by using keys?

I am guessing that doing in on just record.filter is checking the header associated with this record (which obviously has the PASS row)?

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