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.
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.