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

Build_Model_Template.py failing for Mycobacteria #32

Open
tfarrah opened this issue Jul 19, 2016 · 0 comments
Open

Build_Model_Template.py failing for Mycobacteria #32

tfarrah opened this issue Jul 19, 2016 · 0 comments

Comments

@tfarrah
Copy link

tfarrah commented Jul 19, 2016

I am using Build_Model_Template.py to create template files for the ProbModelSEED software. It failed when building a template for Mycobacteria:

Traceback (most recent call last):
File "./Build_Model_Template.py", line 91, in
helper.readReactionsFile(reactionsFile, includeLinenum=False)
File "/users/tfarrah/ModelSEEDDatabase/scripts/TemplateHelper.py", line 488, in readReactionsFile
raise ReactionFormatError('Reaction %s on line %d has invalid stoichiometry "%s" in master reaction' %(reaction['id'], linenum, masterReaction['stoichiometry']))
TemplateHelper.ReactionFormatError: Reaction rxn34330_c0 on line 17573 has invalid stoichiometry

Digging in a little, I found that the failure was in the following line of code:
compCompound = self.addCompCompound(parts[1], compartmentIds[compartmentIndex])

... and that it was failing for the following reaction part from Biochemistry/compounds.master.tsv:
-1:cpd30510:2:0:"photon (380 to 750 nm, visible spectrum)

Here, the value of compartmentIndex is 2 -- an unusual value for this field.

I stopped investigating at this point. Hoping you can take it from here and fix whatever needs to be fixed in order for me to build this template file.

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