BMS.Assembly Class¶
The BMS.Assembly class is used as container for storing basic, textual information about a DNA assembly. It has no associated methods and is simply used to allow for standardised storage of a DNA assembly across BiomationScripter.
Creating the Assembly¶
First, the BMS generic tools module is imported as BMS
In [1]:
Copied!
import BiomationScripter as BMS
import BiomationScripter as BMS
Next, the initial information is defined
In [2]:
Copied!
Assembly_Name = "GFP Expression Unit"
Backbone = "pOdd1"
Parts = ["J23100", "B0034", "GFP", "B0015"]
Assembly_Name = "GFP Expression Unit"
Backbone = "pOdd1"
Parts = ["J23100", "B0034", "GFP", "B0015"]
Then, the Assembly object can be created
In [3]:
Copied!
GFP_Expression_Assembly = BMS.Assembly(
Name = Assembly_Name,
Backbone = Backbone,
Parts = Parts
)
GFP_Expression_Assembly = BMS.Assembly(
Name = Assembly_Name,
Backbone = Backbone,
Parts = Parts
)
Information can be retrieved using the three attributes
In [4]:
Copied!
GFP_Expression_Assembly.name
GFP_Expression_Assembly.name
Out[4]:
'GFP Expression Unit'
In [5]:
Copied!
GFP_Expression_Assembly.backbone
GFP_Expression_Assembly.backbone
Out[5]:
'pOdd1'
In [6]:
Copied!
GFP_Expression_Assembly.parts
GFP_Expression_Assembly.parts
Out[6]:
['J23100', 'B0034', 'GFP', 'B0015']
In [ ]:
Copied!