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

Ask Your Question

Programmatically delete Frames

asked 2019-04-09 03:16:15 -0500

anonymous user



Pathway Tools typically overpredicts the number of pathway, reaction and metabolite frames that should be linked to a specific microorganism.

As part of the curation process, I have detached genes from reactions, ommitted pathays, etc.. But now I find myself with a lot of empty frames. For example, by deleting a pathway the underlying pathway class is not deleted. This has still to be done manually afterwards, which is time-consuming.

Is there a way to programmatically delete these (empty) frames, e.g. using PythonCyc?

Kind regards, Rudy

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-04-10 16:30:34 -0500

Hello, It sounds like you are performing the deletions you listed via the edit menu operations.

We intentionally leave the pathway classes present even after all of their pathways are deleted, in part so that if new pathways are later added for that class, the class is there to put them under. We don't consider it problematic to have pathway classes that contain no instances.

You can probably delete the classes by using API calls to delete-frame, e.g., delete-frame(class-id)

However, it's quite possible that our schema upgrade code will add the deleted classes back in the next time you upgrade to a new version of Pathway Tools!

edit flag offensive delete link more

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: 2019-04-09 03:16:15 -0500

Seen: 562 times

Last updated: Apr 10 '19