Closed mmoisse closed 4 years ago
I noticed similar issues with x_linked_dominant
and x_linked_recessive
Yes, this seems like a clear bug with a simple fix. Thanks for reporting!
related issue #837
I experience similar issues with x_linked_dominant
and x_linked_recessive
Probably this line of code
https://github.com/arq5x/gemini/blob/79c5b022556f603ffa27f866ac3d989d8ecd7b5e/gemini/gim.py#L53
I noticed that when using an OR with and without brackets gives different results.
When running this command, I get 4 pairs of comp het variants:
While the following command only results in 3 pairs of comp het variants:
The difference is that the first command also reports non-exonic variants, while the later doesn't. This is probably due to the fact that behind the scenes some extra where's are defined, and the final query becomes:
Probably brackets around
args.filter
would solve the issue. https://github.com/arq5x/gemini/blob/c3a321eac6d51bdd55fd9c55a09bef6db8aaffd0/gemini/gim.py#L387