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

Ask Your Question
0

return value of pathway-components

asked 2018-06-12 13:48:46 -0500

JW Carlson gravatar image

Thanks for all your help on pathway-tools.

I ran into a discrepancy in the documentation for the call to pathway-components. I'm seeing 4 values returned: a list of reactions, then 3 integers. The documentation says that the return value is a list and 2 integers. The first and last integers look like the number of connected components and the total number of reactions (as described in the docs). But what is the second integer?

For example, for PWY-6341 in MetaCyc, the integers are 2,4,8.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-06-12 23:37:58 -0500

Suzanne Paley gravatar image

Looking at the code, the 2nd integer is the number of reactions in the first component. Why just the first? Why was this change made? I don't know! The change doesn't seem to have been documented in any way, and I can't find anything that calls this function internally that would require that value (which would be trivial to compute from the first return value). So now you know as much as I do!

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

Stats

Asked: 2018-06-12 13:48:46 -0500

Seen: 41 times

Last updated: Jun 12