Added correct species information for small molecules
Added correct species information for small molecules (boundarycondition, substanceunits, etc) in sub-models
This commit is contained in:
parent
418e45e39e
commit
ba1826dd55
1 changed files with 5 additions and 2 deletions
|
|
@ -2062,9 +2062,12 @@ public class BioModel extends CoreObservable{
|
|||
Species smallMolecule = targetModel.getSBMLDocument().getModel().createSpecies();
|
||||
smallMolecule.setId(promoterInteractions.get(promoter).get(modifi));
|
||||
smallMolecule.setSBOTerm(GlobalConstants.SBO_SIMPLE_CHEMICAL);
|
||||
|
||||
smallMolecule.setCompartment(r.getCompartment());
|
||||
smallMolecule.setHasOnlySubstanceUnits(true);
|
||||
smallMolecule.setBoundaryCondition(true);
|
||||
smallMolecule.setConstant(false);
|
||||
//smallMolecule.setBoundaryCondition(true);
|
||||
smallMolecule.setInitialAmount(0.0);
|
||||
|
||||
SBMLutilities.copyDimensionsToEdgeIndex(r, sbml.getModel().getSpecies(promoterInteractions.get(promoter).get(modifi)), input, "species");
|
||||
|
||||
createDirPort(smallMolecule.getId(), GlobalConstants.INPUT);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue