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

/similarity/frequency returns nothing at least for some phenotypes for the genes corpus #192

Closed
hlapp opened this issue Feb 17, 2020 · 1 comment · Fixed by #206
Closed

Comments

@hlapp
Copy link
Member

hlapp commented Feb 17, 2020

For example, the following yields a row for the taxa corpus:

curl -X GET "https://kb.phenoscape.org/api/similarity/frequency?terms=%5B%22http%3A%2F%2Fpurl.org%2Fphenoscape%2Fexpression%3Fvalue%3D%253Chttp%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000051%253E%2Bsome%2B%250A%2B%2B%2B%2B%2528%253Chttp%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FPATO_0001955%253E%250A%2B%2B%2B%2B%2Band%2B%2528%253Chttp%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0000052%253E%2Bsome%2B%253Chttp%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_2002077%253E%2529%2529%22%5D&corpus_graph=http%3A%2F%2Fkb.phenoscape.org%2Fsim%2Ftaxa" -H "accept: text/csv"

However, when switching to the genes corpus, it yields zero bytes:

curl -X GET "https://kb.phenoscape.org/api/similarity/frequency?terms=%5B%22http%3A%2F%2Fpurl.org%2Fphenoscape%2Fexpression%3Fvalue%3D%253Chttp%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000051%253E%2Bsome%2B%250A%2B%2B%2B%2B%2528%253Chttp%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FPATO_0001955%253E%250A%2B%2B%2B%2B%2Band%2B%2528%253Chttp%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0000052%253E%2Bsome%2B%253Chttp%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_2002077%253E%2529%2529%22%5D&corpus_graph=http%3A%2F%2Fkb.phenoscape.org%2Fsim%2Fgenes" -H "accept: text/csv"

Even a phenotype associated with a gene (http://zfin.org/ZDB-GENE-040426-731, brpf1) yields nothing:

as.phenotype("http://purl.org/phenoscape/expression?value=%3Chttp%3A%2F%2Fpurl.obolibrary.org%2Fobo%2FBFO_0000051%3E+some+%0A++++%28%3Chttp%3A%2F%2Fpurl.obolibrary.org%2Fobo%2FPATO_0001483%3E%0A+++++and+%28%3Chttp%3A%2F%2Fpurl.obolibrary.org%2Fobo%2FBFO_0000052%3E+some+%3Chttp%3A%2F%2Fpurl.obolibrary.org%2Fobo%2FZFA_0000316%3E%29%29")$label
[1] "basihyal bone aplastic"
curl -X GET "https://kb.phenoscape.org/api/similarity/frequency?terms=%5B%22http%3A%2F%2Fpurl.org%2Fphenoscape%2Fexpression%3Fvalue%3D%253Chttp%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000051%253E%2Bsome%2B%250A%2B%2B%2B%2B%2528%253Chttp%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FPATO_0001483%253E%250A%2B%2B%2B%2B%2Band%2B%2528%253Chttp%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000052%253E%2Bsome%2B%253Chttp%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FZFA_0000316%253E%2529%2529%22%5D&corpus_graph=http%3A%2F%2Fkb.phenoscape.org%2Fsim%2Fgenes" -H "accept: text/csv"

Is the endpoint broken for the genes corpus, or does it expect a different kind of input term?

hlapp added a commit to phenoscape/rphenoscape that referenced this issue Feb 18, 2020
Note that not all corpora are supported in the KB API yet. Specifically,
support for the "gene_annotations" corpus is pending in the API
(see phenoscape/phenoscape-kb-services#146 and phenoscape/phenoscape-kb-services#189),
and at least presently there are some issues in the KB API for the "genes"
corpus (see phenoscape/phenoscape-kb-services#191 and
phenoscape/phenoscape-kb-services#192).
@hlapp
Copy link
Member Author

hlapp commented Feb 18, 2020

Show this issue's status in phenoscape/rphenoscape#139.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant