Closed dhimmel closed 6 years ago
@dhimmel yes, you can actually make boolean queries:
q=TP53 AND type_of_gene:protein-coding
Then you don't need facets anymore.
Thanks @newgene. Also confirming that order doesn't appear to matter, e.g. the following works:
Yes, the order does not matter, just like regular boolean syntax.
We'd like a way to restrict our query to entrez genes where
type_of_gene="protein-coding"
. Essentially we want to query for human protein-coding entrez genes. The closest could get is:https://mygene.info/v3/query?q=TP53&fields=symbol%5E2%2Calias%2Ctype_of_gene&species=human&size=2&facets=type_of_gene&entrezonly=true
which returned:
So we could filter by
type_of_gene
after receiving the response. But is there a way to filter at query time?