Skip to content

cobrapy won't read eciML1515 because of ascii character 32 in reaction id #103

@sulheim

Description

@sulheim

The SBML file is valid with the online validator. However, with cobrapy version 0.26.2 I get this error when I try to read the eciML1515.xml file with cobra.io.read_sbml_model:

raise ValueError('Variable names cannot contain whitespace characters. "%s" contains whitespace character "%s".' % (name, char))

This error comes from the reaction with ID R_protein__32__pseudoreaction on line 61811 of the xml file. Changing this ID to e.g. R_protein_pseudoreaction resolves the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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