Ask Pathway Tools logo   Pathway Tools Question & Answer forum for SRI's Pathway Tools

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Changing the database in lisp expression

I'm using sendQueryToPTools in PythonCyc in order to be able to use lisp expressions.

I can get the class of a pathway

pythoncyc.sendQueryToPTools("(get-instance-direct-types '|GLYSYN-PWY|)")

But this is not working for all pathways

pythoncyc.sendQueryToPTools("(get-instance-direct-types '|PWY-6120|)")

PToolsError: An internal error occurred in the running Pathway Tools application: :error Object "PWY-6120" is not coercible to a frame for KB ECOBASE

I assume it is caused by the database (ECOBASE). How can switch to METACYC?

Changing the database in lisp expression

I'm using sendQueryToPTools in PythonCyc in order to be able to use lisp expressions.

I can get the class of a pathway

pythoncyc.sendQueryToPTools("(get-instance-direct-types '|GLYSYN-PWY|)")

But this is not working for all pathways

pythoncyc.sendQueryToPTools("(get-instance-direct-types '|PWY-6120|)")

PToolsError: An internal error occurred in the running Pathway Tools application: :error Object "PWY-6120" is not coercible to a frame for KB ECOBASE

I assume it is caused by the database (ECOBASE). How can switch to METACYC?

PS.: I tried pythoncyc.select_organism('meta') but it is returning a pdgb object and seems to have no influence on the lisp query.