Skip to content

Add Exception or similar for metabolites without associated reactions #561

@PyLaRi24

Description

@PyLaRi24

Is your feature request related to a problem? Please describe.
When a metabolite without associated reactions was added to the model, an error appears when I try to do any Analysis. This Is not a huge issue, as I can easily remove the metabolite since it does not impact what I do in CNApy. It would be nice to not have to delete information from the model though.

Describe the solution you'd like
Some sort of exception or similar, so that instead of an error there would be a warning and the analysis continues on.

Describe alternatives you've considered
As I'm not quite sure where exactly the error comes from the only alternative is to delete the metabolite from the model.

Additional context

Image Note that I'm using CNApy 1.2.8, but cnapy-1.2.7 is my environment name.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions