PathwayCommons / cpath2

Biological pathway data integration and access platform (Pathway Commons)
http://www.pathwaycommons.org/pc2/
MIT License
6 stars 5 forks source link

PC2 '/search': cannot (often?) find a pathway by ID #256

Closed IgorRodchenkov closed 7 years ago

IgorRodchenkov commented 7 years ago

I've got an example (ID) where PC2 search web service command returns no hits (error code: 460):

http://www.pathwaycommons.org/pc2/search?q=Q8IVM0&type=pathway

(should match the pathway with URI: http://pathwaycommons.org/pc2/Pathway_3a6d369c50d4882dc6b61149d4d84c3a) whereas, if searching with type=proteinreference or protein or interaction, one finds hits, and the pathway URI can be also seen there in the result <pathway/> element.

Looks, we are to increase the full-text index depth here... or (in the other branch) here, here, to have depth=5 or 6...

IgorRodchenkov commented 7 years ago

Now it works (in the beta web service); try:

http://beta.pathwaycommons.org/pc2/search?q=Q8IVM0&type=pathway

http://beta.pathwaycommons.org/pc2/search.xml?q=xrefid:"NOG"&type=pathway&datasource=reactome

//if **searching** with an ID that contains ':', for this to match, 
//use '?' and no quotes: CHEBI?16236 instead of "CHEBI:16236" or "CHEBI\:16236": 
http://beta.pathwaycommons.org/pc2/search.xml?q=xrefid:CHEBI?16236&type=pathway

(the same queries if sent to current (v8) www.pathwaycommons.org/pc2/ don't work.)