Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'96-flat',
'B1',
'plate'
)
trash = containers.load(
'point',
'C2',
'trash'
)
trough = containers.load(
'trough-12row',
'B2',
'trough'
)
p200 = instruments.Pipette(
name="p200",
trash_container=trash,
tip_racks=[tiprack],
max_volume=200,
min_volume=0.5,
axis="b",
channels=1
)
calibration_data = """
{
"b": {
"blowout": 28.0,
"bottom": 26.0,
"droptip": 32.0,
"resting": 0,
def setUp(self):
Robot.reset_for_tests()
self.robot = Robot.get_instance()
self.robot.connect()
self.plate = containers.load('96-flat', 'A1', 'plate')
self.p200 = instruments.Pipette(name="p200", axis="b")
self.p200.delete_calibration_data()
well = self.plate[0]
pos = well.from_center(x=0, y=0, z=0, reference=self.plate)
self.location = (self.plate, pos)
well_deck_coordinates = well.center(well.get_deck())
dest = well_deck_coordinates + Vector(1, 2, 3)
self.robot.move_head(x=dest['x'], y=dest['y'], z=dest['z'])
self.p200.calibrate_position(self.location)
def test_stop_run(self):
p200 = instruments.Pipette(axis='b', name='my-fancy-pancy-pipette')
p200.calibrate_plunger(top=0, bottom=5, blow_out=6, drop_tip=7)
for i in range(1000):
p200.aspirate().dispense()
res = None
def _run():
nonlocal res
self.assertRaises(RuntimeError, self.robot.run)
thread = threading.Thread(target=_run)
thread.start()
self.robot.stop()
#In-Gel Digest Protocol Full Hoodbot_RM @ Stanford University Mass Spectrometry_DC @ Opentrons
from opentrons import robot, containers, instruments
#Containers
tip_rack = containers.load('tiprack-200ul', 'D1', 'Tip Rack')
waste = containers.load('point', 'D2', 'Trash')
tube_rack = containers.load('tube-rack-2ml','C1', 'Tube Rack')
cold_deck = containers.load('tube-rack-2ml', 'A1', 'Cold Deck')
#Pipette
p200 = instruments.Pipette(
axis="b",
channels=1,
max_volume = 200,
min_volume = 20,
trash_container=waste,
tip_racks=[tip_rack],
name="p200")
robot.head_speed(6000)
#Reduction
p200.pick_up_tip()
dispense_volume = 100
for i in range(20):
if p200.current_volume < dispense_volume:
p200.aspirate(100,cold_deck['A1']).dispense(100,tube_rack[i].top())
p10rack = containers.load('tiprack-10ul', 'D2')
# tip disposal
trash = containers.load('trash-box', 'D1')
# solutions X1, X2, Y1, Y2, X, and Y; reagent
solutions = containers.load('trough-12row-short', 'A2')
reagent = containers.load('point', 'C1')
# 96 well plate 1
plate1 = containers.load('96-PCR-flat', 'A1')
# 96 well plate 2
plate2 = containers.load('96-PCR-flat', 'B1')
# p10 (1 - 10 uL) (single)
p10single = instruments.Pipette(
axis='b',
name='p10single',
max_volume=10,
min_volume=1,
channels=1,
trash_container=trash,
tip_racks=[p10rack])
# p300 (20 - 300 uL) (multi)
p300multi = instruments.Pipette(
axis='a',
name='p300multi',
max_volume=300,
min_volume=20,
channels=8,
trash_container=trash,
trough = containers.load('trough-12row', 'A1')
tiprack = containers.load('tiprack-200ul', 'A2')
liquid_trash = containers.load('trash-box', 'D2')
trash = containers.load('trash-box', 'D3')
# instruments setup
m300 = instruments.Pipette(
axis='a',
name='p300multi',
max_volume=300,
min_volume=30,
channels=8,
trash_container=trash,
tip_racks=[tiprack])
p300 = instruments.Pipette(
axis='b',
name='p300single',
max_volume=300,
min_volume=30,
channels=1,
trash_container=trash,
tip_racks=[tiprack])
# reagent setup
wash_buffer = trough.wells('A1')
blocking_buffer = trough.wells('A7')
# wash plate 3 times with wash buffer
wash_buffer_tracker = wash_buffer.max_volume()
for cycle in range(3):
m300.pick_up_tip()
metadata = {
'protocolName': 'PCR Prep',
'author': 'Alise ',
'source': 'Custom Protocol Library'
}
# labware setup
tiprack_200 = containers.load('tiprack-200ul', 'A2')
tiprack_10 = containers.load('tiprack-10ul', 'E2')
plate = containers.load('96-flat', 'D2')
block = containers.load('96-deep-well', 'C1')
pcr_strips = containers.load('PCR-strip-tall', 'D3')
trash = containers.load('trash-box', 'B3')
# instrument setup
m10 = instruments.Pipette(
axis='a',
channels=8,
max_volume=10,
min_volume=1,
trash_container=trash,
tip_racks=[tiprack_10])
p50 = instruments.Pipette(
axis='b',
channels=1,
max_volume=50,
min_volume=5,
trash_container=trash,
tip_racks=[tiprack_200])
'tube-rack-2ml',
'B3',
'heat_deck'
)
p200 = instruments.Pipette(
name="p200",
trash_container=trash,
tip_racks=[tiprack200],
min_volume=50,
axis="b",
channels=1
)
p10 = instruments.Pipette(
name="p10",
trash_container=trash,
tip_racks=[tiprack10],
min_volume=1,
axis="a",
channels=1
)
p200.set_max_volume(200) # volume calibration, can be called whenever you want
p10.set_max_volume(10)
# In[ ]:
DNA_delay = 1800
heat_shock_delay = 60
from opentrons import containers, instruments
p200rack = containers.load('tiprack-200ul','A1','p200rack')
output1 = containers.load('96-PCR-flat','C1','output1')
output2 = containers.load('96-PCR-flat','D1','output2')
input1 = containers.load('96-PCR-flat','C2','input1')
input2 = containers.load('96-PCR-flat','D2','input2')
input3 = containers.load('96-PCR-flat','C3','input3')
input4 = containers.load('96-PCR-flat','D3','input4')
trash = containers.load('point','B2','trash')
p200 = instruments.Pipette(
name = "p200",
axis = "b",
min_volume = 20,
max_volume = 200,
trash_container=trash,
tip_racks = [p200rack],
channels = 1
)
source_wells = input1.wells('B11','C4','C6','D2')
output_wells = output1.wells('A1','A2','A3','A4')
p200.transfer(20, source_wells, output_wells, new_tip='always',trash=False,touch_tip=True,blow_out=True,)
source_wells1 = input2.wells('A3','D3','G5','A7','H2','F3','F2','F1','E12')
output_wells1 = output2.wells('A1','A2','A3','A4','A5','A6','A7','A8','A9')
from opentrons import instruments, containers
PCR_plate = containers.load('384-plate', 'C1')
sample_plate = containers.load('96-PCR-flat', 'A2')
tiprack = containers.load('tiprack-10ul', 'A1')
tuberack = containers.load('tube-rack-2ml', 'C2')
trash = containers.load('trash-box', 'A3')
trough = containers.load('trough-12row', 'C3')
p10 = instruments.Pipette(
name='p10',
trash_container=trash,
tip_racks=[tiprack],
max_volume=10,
min_volume=0.5,
axis='b',
channels=1,
)
master_volume = 9
dilution_volume = 20
sample_volume = 2
master_mix1 = tuberack['A1']
master_mix2 = tuberack['A2']
H2O_dilute = trough['A1']