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

Ask Your Question

Changing the database in lisp expression

asked 2017-08-23 10:34:49 -0500

jo gravatar image

updated 2017-08-24 01:59:37 -0500

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.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2017-08-29 23:09:39 -0500

JW Carlson gravatar image

I use a lisp command similar to:

(select-organism :org-id 'META)

incidentally, you can see what's in there with the command

edit flag offensive delete link more

answered 2017-08-24 07:11:21 -0500

jo gravatar image

I found a workaround by starting the pathwaytools executable with metacyc as the default pgdb:

pathway-tools -python-local-only-non-strict -org META -lisp
edit flag offensive delete link more

answered 2017-08-23 23:20:39 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Indeed, pathway PWY-6120 does not exist in EcoCyc. You can switch to MetaCyc by using the method pythoncyc.select_organism('meta'). For more information about this method, please see the documentation at

edit flag offensive delete link more


Unfortunately, this is not working. I used ``select_organism`` before sending the lisp query. I included this to the question

jo gravatar imagejo ( 2017-08-24 02:06:20 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-08-23 10:34:49 -0500

Seen: 527 times

Last updated: Aug 29 '17