Skip to content

Neater notebook representation of Model Objects #1277

Open
@achillesrasquinha

Description

@achillesrasquinha

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions