How to use the tellurium.sbmlToAntimony function in tellurium

To help you get started, we’ve selected a few tellurium examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sys-bio / tellurium / tellurium / roadrunner / extended_roadrunner.py View on Github external
def getAntimony(self, current=False):
        """ Antimony string of the original model loaded into roadrunner.

        :param current: return current model state
        :type current: bool
        :return: Antimony
        :rtype: str
        """
        sbml = self.__getSBML(current)
        from .. import sbmlToAntimony
        return sbmlToAntimony(sbml)
github sys-bio / tellurium / tellurium / tecombine.py View on Github external
def getSBMLAsAntimony(self, sbmlfile):
        """ returns SBML as antimony

        :param sbmlfile: filename of SBML file in COMBINE archive
        :return: antimony string
        :rtype: str
        """
        warnings.warn('Use inline_omex instead.', DeprecationWarning)
        zf = ZipFile(self.combinePath, 'r')
        sbmlStr = zf.read(sbmlfile)
        zf.close()
        antStr = te.sbmlToAntimony(sbmlStr)

        return antStr