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

Get units correct for species #109

Open
luciansmith opened this issue Jan 23, 2025 · 0 comments
Open

Get units correct for species #109

luciansmith opened this issue Jan 23, 2025 · 0 comments

Comments

@luciansmith
Copy link
Contributor

In Antimony, we assume that all species are concentrations, but in SBML, it needs to be flagged with 'substance Units'

So, the Antimony:

species S1
S1 has moles

translates to

<?xml version="1.0" encoding="UTF-8"?>
<!-- Created by libAntimony version v3.0.0 with libSBML version 5.20.4. -->
<sbml xmlns="http://www.sbml.org/sbml/level3/version2/core" level="3" version="2">
  <model metaid="__main" id="__main">
    <listOfUnitDefinitions>
      <unitDefinition id="mole_litre">
        <listOfUnits>
          <unit kind="mole" exponent="1" scale="0" multiplier="1"/>
          <unit kind="litre" exponent="1" scale="0" multiplier="1"/>
        </listOfUnits>
      </unitDefinition>
    </listOfUnitDefinitions>
    <listOfCompartments>
      <compartment sboTerm="SBO:0000410" id="default_compartment" spatialDimensions="3" size="1" constant="true"/>
    </listOfCompartments>
    <listOfSpecies>
      <species id="S1" compartment="default_compartment" substanceUnits="mole_litre" hasOnlySubstanceUnits="false" boundaryCondition="false" constant="false"/>
    </listOfSpecies>
  </model>
</sbml>

which is wrong!

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