biocrnpyler.core.polymer
The classes OrderedPolymer and OrderedMonomer are datastructures used to represent Polymers and their associatd components.
These classes are used by Chemical Reaction Network Species as well as certain Components such as DNA_construct.
Classes
|
A class used to represent a collection of OrderedMonomers without any particular structure |
|
The same as an OrderedPolymer but it has a name |
|
a unit that belongs to an OrderedPolymer. |
|
a polymer made up of OrderedMonomers that has a specific order |
- class biocrnpyler.core.polymer.MonomerCollection(monomers)[source]
A class used to represent a collection of OrderedMonomers without any particular structure
- class biocrnpyler.core.polymer.NamedPolymer(parts, name, default_direction=None, circular=False)[source]
The same as an OrderedPolymer but it has a name
parts can be a list of lists containing [[OrderedMonomer,direction],[OrderedMonomer,direction],…] alternatively, you can have a regular list, and the direcitons will end up being None
- class biocrnpyler.core.polymer.OrderedMonomer(direction=None, position=None, parent=None)[source]
a unit that belongs to an OrderedPolymer. Each unit has a direction, a location, and a link back to its parent
the default is that the monomer is not part of a polymer
- class biocrnpyler.core.polymer.OrderedPolymer(parts, default_direction=None)[source]
a polymer made up of OrderedMonomers that has a specific order
parts can be a list of lists containing [[OrderedMonomer,direction],[OrderedMonomer,direction],…] alternatively, you can have a regular list, and the direcitons will end up being None