Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get reactions number of a pathway #2

Closed
oTelle opened this issue Mar 3, 2021 · 3 comments
Closed

get reactions number of a pathway #2

oTelle opened this issue Mar 3, 2021 · 3 comments

Comments

@oTelle
Copy link
Contributor

oTelle commented Mar 3, 2021

Is it possible to calculate the reactions number of a pathway and put it in a key dictionary when using toDict method ?

@breakthewall
Copy link
Member

Hi Olivier,

len(rpsbml.toDict['reactions'].keys()) gives you the number of reactions of the pathway represented by rpsbml object.

Is it what you look for?

Best,
Joan

@oTelle
Copy link
Contributor Author

oTelle commented Mar 11, 2021

Yes, I need this value but stored in a key computed with toDict(), in order to directly display it in a chart (the displayed data cannot be a function result). Or I could do insert it by myself in the program but I think it could be more time consuming when running.

@breakthewall
Copy link
Member

Ok I see, since the 4.4.3 version toDict() integrates now nb_reactions key in [brsynth][pathway] sub-dictionary. Tell me if you have any issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants