How to use the pysces.core2.PyscesCore2.MapList function in pysces

To help you get started, we’ve selected a few pysces 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 PySCeS / pysces / pysces / core2 / PyscesCore2.py View on Github external
def hasGlobalParameters(self):
        return MapList(p.name for p in self.global_parameters)
github PySCeS / pysces / pysces / core2 / PyscesCore2.py View on Github external
def hasSubstrates(self):
        return MapList([s.name for s in self.substrates])
github PySCeS / pysces / pysces / core2 / PyscesCore2.py View on Github external
def hasFunctions(self):
        return MapList([f.name for f in self.functions])
github PySCeS / pysces / pysces / core2 / PyscesCore2.py View on Github external
def hasSpecies(self):
        return MapList([s.name for s in self.species])
github PySCeS / pysces / pysces / core2 / PyscesCore2.py View on Github external
def findReactionsThatIncludeAllSpecifiedReagents(self, *args):
        assert len(args) > 1, '\nNeed two or more species for this one!'
        setlist = [self.__getattribute__(s).isReagentOf().asSet() for s in args]
        isect = setlist[0]
        for s in setlist:
            isect.intersection_update(s)
        return MapList(isect)
github PySCeS / pysces / pysces / core2 / PyscesCore2.py View on Github external
def hasReactions(self):
        return MapList([r.name for r in self.reactions])
github PySCeS / pysces / pysces / core2 / PyscesCore2.py View on Github external
def isProductOf(self):
        return MapList([r.name for r in self.prods])
github PySCeS / pysces / pysces / core2 / PyscesCore2.py View on Github external
def hasCompartments(self):
        return MapList(c.name for c in self.compartments)
github PySCeS / pysces / pysces / core2 / PyscesCore2.py View on Github external
def hasAssignmentRules(self):
        return MapList([ar.name for ar in self.global_parameters+self.species if hasattr(ar, 'type')=='rate'])