Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
# create custom labware
rack_name_1 = '5x10-false-bottom-3ml'
if rack_name_1 not in labware.list():
labware.create(
rack_name_1,
grid=(10, 5),
spacing=(18.5, 18.5),
diameter=11,
depth=50,
volume=3000
)
rack_name_2 = '5x10-filter-vial'
if rack_name_2 not in labware.list():
labware.create(
rack_name_2,
grid=(10, 5),
spacing=(18.5, 18.5),
diameter=6.25,
depth=24,
volume=450
)
tips_name = 'Globe-Scientific-tiprack-200ul'
if tips_name not in labware.list():
labware.create(
tips_name,
grid=(12, 8),
spacing=(9, 9),
diameter=3.5,
def run_custom_protocol(
number_of_columns: int=12,
p10_tiprack_type: StringSelection(
'fisherbrand-filter-tiprack-10ul',
'phenix-filter-tiprack-10ul')='phenix-filter-tiprack-10ul',
p50_tiprack_type: StringSelection(
'fisherbrand-filter-tiprack-200ul',
'phenix-filter-tiprack-300ul')='phenix-filter-tiprack-300ul'):
for tiprack_type in [p10_tiprack_type, p50_tiprack_type]:
if tiprack_type not in labware.list():
labware.create(
tiprack_type,
grid=(12, 8),
spacing=(9, 9),
diameter=5,
depth=60)
# labware setup
plate = labware.load('biorad-hardshell-96-PCR', '1')
mag_module = modules.load('magdeck', '4')
mag_plate = labware.load('biorad-hardshell-96-PCR', '4', share=True)
reagent_tubes = labware.load('96-PCR-tall', '5')
deep_plate = labware.load('96-deep-well', '7')
trough = labware.load('trough-12row', '8')
tipracks_10 = [labware.load(p10_tiprack_type, slot)
5,A1,11,9,A3,
8,E4,4.5,9,A3,
8,C8,4.5,9,A3,Yes
"""
rack_name = "beckman-coulter-24-tuberack-5"
if rack_name not in labware.list():
labware.create(
rack_name,
grid=(6, 4),
spacing=(19, 19),
diameter=8.38,
depth=42.9)
custom_plate_name = 'greiner-sapphire-96-PCR-plate'
if custom_plate_name not in labware.list():
labware.create(
custom_plate_name,
grid=(12, 8),
spacing=(9, 9),
diameter=5.57,
depth=20)
# labware setup
reagent_list = {
'5': labware.load(rack_name, '5'),
'8': labware.load('biorad-hardshell-96-PCR', '8')
}
tipracks_10 = [labware.load('tiprack-10ul', slot)
for slot in ['7', '10', '11']]
tipracks_50 = [labware.load('opentrons-tiprack-300ul', slot)
from opentrons import instruments, labware
petri_6 = 'petri-dish-6cm'
petri_10 = 'petri-dish-10cm'
if petri_10 not in labware.list():
labware.create(petri_10,
grid=(1, 1), # specify amount of (columns, rows)
spacing=(0, 0), # distances (mm) between each
diameter=100,
depth=10)
if petri_6 not in labware.list():
labware.create(petri_6,
grid=(1, 1), # specify amount of (columns, rows)
spacing=(0, 0), # distances (mm) between each
diameter=60,
depth=10)
tubes = labware.load('tube-rack-15_50ml', '5')
dish1 = labware.load(petri_6, '1')
dish2 = labware.load(petri_6, '2')
from opentrons import labware, instruments, modules, robot
metadata = {
'protocolName': 'Nucleic Acid Purification',
'author': 'Nick ',
'source': 'Custom Protocol Request'
}
# create custom labware
res_name = '4titue-reservoir'
if res_name not in labware.list():
labware.create(res_name,
grid=(1, 1),
spacing=(0, 0),
depth=39.22,
diameter=65,
volume=290000)
# labware
deep_plate = labware.load('96-deep-well', '2')
new_plate = labware.load('biorad-hardshell-96-PCR', '3')
trough1 = labware.load('trough-12row', '4')
trough2 = labware.load('trough-12row', '5')
waste = labware.load(res_name, '6')
sample_tip_rack = labware.load('tiprack-200ul', '7')
VHB_tip_rack = labware.load('tiprack-200ul', '8')
SPM_tip_rack = labware.load('tiprack-200ul', '9')
from opentrons import labware, instruments, robot
from otcustomizers import StringSelection, FileInput
metadata = {
'protocolName': 'Mastermix Assay from .csv',
'author': 'Nick ',
'source': 'Custom Protocol Request'
}
# create custom labware
pool_name = 'thermofisherabgene_96_wellplate_800ul_deep'
if pool_name not in labware.list():
labware.create(
pool_name,
grid=(12, 8),
spacing=(9, 9),
diameter=7,
depth=27,
volume=800
)
thermo_name = 'thermofisherabgene_96_wellplate_1.2ml_deep'
if thermo_name not in labware.list():
labware.create(
thermo_name,
grid=(12, 8),
spacing=(9, 9),
diameter=7,
Plate8-C4,Plate7-C4,52.8,27.2
"""
output_plate_name = 'ssibio-96-PCR-semi-skirted'
if output_plate_name not in labware.list():
labware.create(
output_plate_name,
grid=(12, 8),
spacing=(9, 9),
diameter=5.5,
depth=19.85,
volume=350
)
trough_name = 'trough-1row'
if trough_name not in labware.list():
labware.create(
trough_name,
grid=(1, 1),
spacing=(0, 0),
diameter=70,
depth=40)
def run_custom_protocol(
volume_csv: FileInput=example_csv,
pause_to_spin_plate: StringSelection('True', 'False')='True'
):
# labware setup
plates = {slot: labware.load(plate_type, slot)
for slots, plate_type in zip(
from opentrons import labware, instruments, modules, robot
import math
metadata = {
'protocolName': 'NGS Library Prep',
'author': 'Nick ',
'source': 'Custom Protocol Request'
}
# create custom plate
plate_name = 'Eppendorf-twintec-96-PCR'
if plate_name not in labware.list():
labware.create(
plate_name,
grid=(12, 8),
spacing=(9, 9),
diameter=6.46,
depth=14.6,
volume=200
)
# load labware
tubes50 = labware.load('opentrons-tuberack-50ml', '1')
barcode_plate = labware.load(plate_name, '2', 'barcode plate')
reagent_plate = labware.load(plate_name, '4', 'reagent plate')
magdeck = modules.load('magdeck', '7')
mag_plate = labware.load(plate_name, '7', share=True)
tempdeck = modules.load('tempdeck', '11')
'author': 'Nick ',
'source': 'Custom Protocol Request'
}
# create custom labware
tips10_name = 'Starlab-10ul-tiprack'
if tips10_name not in labware.list():
labware.create(
tips10_name,
grid=(12, 8),
spacing=(9, 9),
diameter=5,
depth=60)
tips50_name = 'Starlab-50ul-tiprack'
if tips50_name not in labware.list():
labware.create(
tips50_name,
grid=(12, 8),
spacing=(9, 9),
diameter=5,
depth=60)
trough_name = 'Starlab-trough-12row'
if trough_name not in labware.list():
labware.create(
trough_name,
grid=(12, 1),
spacing=(9, 0),
diameter=8.1,
depth=39.1,
# example
example_csv = """,Sample in µl,,,,,,,,,,,,,,
,,1,2,3,4,5,6,7,8,9,10,11,12,," "
,A,1,1,1,1,1,1,1,1,1,1,1,1,,
,B,2,2,2,2,2,2,2,2,2,2,2,2,,
,C,3,3,3,3,3,3,3,3,3,3,3,3,,
,D,4,4,4,4,4,4,4,4,4,4,4,4,,
,E,5,5,5,5,5,5,5,5,5,5,5,5,,
,F,6,6,6,6,6,6,6,6,6,6,6,6,,
,G,7,7,7,7,7,7,7,7,7,7,7,7,,
,H,8,8,8,8,8,8,8,8,8,8,8,8,,
"""
# create custom create custom labware
PCR_plate_name = 'FrameStar-96-PCR'
if PCR_plate_name not in labware.list():
labware.create(
PCR_plate_name,
grid=(12, 8),
spacing=(9, 9),
diameter=5.50,
depth=15.10,
volume=200
)
flat_plate_name = '4titude-96-flat'
if flat_plate_name not in labware.list():
labware.create(
flat_plate_name,
grid=(12, 8),
spacing=(9, 9),
diameter=6.3,