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

Some advanced filters fail passed as JSON string do not work #128

Open
davecap opened this issue May 17, 2022 · 0 comments
Open

Some advanced filters fail passed as JSON string do not work #128

davecap opened this issue May 17, 2022 · 0 comments
Labels

Comments

@davecap
Copy link
Member

davecap commented May 17, 2022

This should be FALSE instead of TRUE:

simplifyDataFrame = TRUE,

This works but is really ugly:

filters = list(
list(and=list(
list(or=list(
list(and=list(list("significance", "known"), list("allelefreq__gt", 0.01))),
list(and=list(list("significance", "likely"), list("allelefreq__gt", 0.2)))
)),
list(not=list("sample__in", c("X", "Y")))
))
)

The equivalent JSON is this, but does not work:

filters = '[
{"and": [
{"or": [
{"and": [["significance", "known"], ["allelefreq__gt", 0.01]]},
{"and": [["significance", "likely"], ["allelefreq__gt", 0.2]]}
]},
{"not": ["sample__in", ["X", "Y"]]}
]}
]'

@davecap davecap added the bug label May 17, 2022
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

1 participant