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

Neater notebook representation of Model Objects #1277

Open
1 task done
achillesrasquinha opened this issue Sep 19, 2022 · 1 comment · May be fixed by #1278
Open
1 task done

Neater notebook representation of Model Objects #1277

achillesrasquinha opened this issue Sep 19, 2022 · 1 comment · May be fixed by #1278

Comments

@achillesrasquinha
Copy link
Contributor

achillesrasquinha commented Sep 19, 2022

Checklist

Is your feature related to a problem? Please describe it.

Describe the solution you would like.

It would be nice to have a neater representation of the model objects - metabolites, reactions, genes, etc. For example,
Screen Shot 2022-09-18 at 11 15 21 PM

This introduces a _repr_html_ within the DictList object. Each Object then declares a _DF_ATTRS internally that contains the needed column list for the data frame representation to be created. Adding a to_dataframe() function to DictList would solve this.

>>> model.reactions.to_dataframe()

I've currently already had this implemented at https://github.com/achillesrasquinha/cobrapy/tree/feats

Describe alternatives you considered

Additional context

@achillesrasquinha achillesrasquinha linked a pull request Sep 19, 2022 that will close this issue
4 tasks
@Midnighter
Copy link
Member

Midnighter commented Sep 19, 2022

Please make a new pull request for this. And don't add it to #1278. I like the idea, though. 👍🏼

Oh, I got confused because you kept the same title as for #1276

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

Successfully merging a pull request may close this issue.

2 participants