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

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

Open
sulheim opened this issue Jan 15, 2023 · 0 comments
Open

Comments

@sulheim
Copy link

sulheim commented Jan 15, 2023

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.

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

1 participant