コード例 #1
0
def test_labware_create(dummy_db):
    from opentrons import labware
    lw_name = '15-well-plate'
    if lw_name in labware.list():
        database.delete_container(lw_name)
    n_cols = 5
    n_rows = 3
    col_space = 12
    row_space = 18
    diameter = 5
    height = 20
    volume = 3.14 * (diameter / 2.0)**2
    res = labware.create(lw_name, (n_cols, n_rows), (col_space, row_space),
                         diameter, height, volume)
    lw = database.load_container(lw_name)
    database.delete_container(lw_name)

    assert len(lw.wells()) is n_cols * n_rows
    for well in lw.wells():
        name = well.get_name()
        assert res[name].coordinates() == well.coordinates()
        for prop in ['height', 'diameter']:
            assert res[name].properties[prop] == well.properties[prop]
    assert lw.well("B5").coordinates() == ((n_cols - 1) * col_space, row_space,
                                           0)
    assert lw.well("C3").coordinates() == (2 * col_space, 0, 0)

    assert lw.well(2).get_name() == 'C1'
コード例 #2
0
#If false, ignores any labware that is already defined in robot
REPLACE = False

#define a dict of custom plates. Can add as many as necessary
custom_plates = dict()

custom_plates['CCL_ARTBot_canvas'] = dict(grid=(1, 1),
                                          spacing=(0, 0),
                                          diameter=60,
                                          depth=13,
                                          volume=100)

custom_plates['falcon_6_wellplate_15.5ml_flat'] = dict(grid=(3, 2),
                                                       spacing=(39.3, 39.3),
                                                       diameter=34.75,
                                                       depth=18,
                                                       volume=15500)

custom_plates['nunc_8_wellplate_flat'] = dict(grid=(4, 2),
                                              spacing=(31, 40.5),
                                              diameter=31,
                                              depth=13.3,
                                              volume=13000)

for plate_name in custom_plates:
    if plate_name in labware.list():
        if REPLACE:
            database.delete_container(plate_name)
        else:
            continue
    labware.create(plate_name, **custom_plates[plate_name])
コード例 #3
0
    'author': 'Ben Avants <*****@*****.**>',
    'source': 'HydraBot Vivarium Project'
    }

def circle(location, radius, steps=50, pause=.05):
    step = 2 * 3.14159 / steps
    for i in range(steps):
        vect = location.from_center(r=radius, theta=step*i, h=1)
        pipette.move_to((location, vect), strategy='direct')
        sleep(pause)
    pipette.move_to(location, strategy='direct')

redefine = False
if redefine is True:
    from opentrons.data_storage import database
    database.delete_container('3x2_plate')
    database.delete_container('3x2_plate_eppendorf')
    database.delete_container('3x2_plate_corning')
    database.delete_container('3x2_plate_falcon')

#  6-well plate custom entry
plate_name = '3x2_plate_eppendorf'
if plate_name not in labware.list():
    hydra_plate = labware.create(
        plate_name,
        grid=(3, 2),
        spacing=(38, 40),
        diameter=35,
        depth=17,
        volume=3000
    )
コード例 #4
0
from opentrons.data_storage import database

metadata = {
   'protocolName' : 'Coating',
   'description'  : 'Coating of the samples',
   'source'       : 'https://github.com/Zildj1an/SELEX'
}

# [0] Our design for the three modules

# X,Y,Z,A speeds for lateral,front and vertical motion for left and right
# B,C plunger speed for motor
#max_speed_per_axis = {'x': 600,'y': 400,'z': 125,'a': 125,'b': 40,'c': 40}
max_speed_per_axis = {'x': 600,'y': 400,'z': 125,'a': 125,'b': 40,'c': 40}
robot.head_speed(**max_speed_per_axis)
'''
database.delete_container('Falcon_Samples')
database.delete_container('Eppendorf_Samples')
'''
plate_falcon = 'Falcon_Samples'
if plate_falcon not in labware.list():
   Falcon = labware.create(
      plate_falcon,
      grid = (3,2),
      spacing = (35,43),
      diameter = 10,
      depth  = 110,
      volume = 800)

plate_eppendorf = 'Eppendorf_Samples'
if plate_eppendorf not in labware.list():
コード例 #5
0
}

# [0] Ninja-PCR API

URL_PCR = "http://ninjapcr.local/command"
URL_AUX = "http://thermaux.local/command"

# [1] Labware

# X,Y,Z,A speeds for lateral,front and vertical motion for left and right
# B,C plunger speed for motor

max_speed_per_axis = {'X': 600,'Y': 400,'Z': 125,'A': 125,'B': 40,'C': 40}
robot.head_speed(**max_speed_per_axis)

database.delete_container('Thermic_Module')

thermic_name = 'Thermic_Module' #TODO check
if thermic_name not in labware.list():
    thermic = labware.create(
        thermic_name,                         # Labware Name
        grid     = (4, 4),                    # Amount of (columns, rows)
        spacing  = (9, 9),                    # Distances (mm) between each (column, row)
        diameter = 2,                         # Diameter (mm) of each well on the plate
        depth    = 10,                        # Depth (mm) of each well on the plate
        volume   = 50)

plate_samples    =   labware.load('96-flat',      slot ='11')                       # Samples TODO Eppendorf 1.5
tiprack          =   labware.load('tiprack-10ul', slot ='6')                        # Tipracks
magnetic         =   modules.load('magdeck',      slot ='4')                        # Magnetic Deck
plate_magnet     =   labware.load('96-flat',      slot ='4', share = True)          # Magnetic Deck plate
コード例 #6
0
from opentrons.data_storage import database

metadata = {
    'protocolName':
    'delete_labware_Starlab',
    'author':
    'James Kitson <*****@*****.**>',
    'description':
    'A list of the labware delete commands for standard Starlab consumables'
}
#Deepwell plates
#database.delete_container('starlab-E2896-0220')
#database.delete_container('starlab-E2896-0600')

#RPT filter tips
database.delete_container('tiprack-starlab-S1181-3810')
#database.delete_container('tiprack-starlab-S1180-3810')
#database.delete_container('tiprack-starlab-S1180-1840')
#database.delete_container('tiprack-starlab-S1180-8810')
#database.delete_container('tiprack-starlab-S1180-9810')
#database.delete_container('tiprack-starlab-S1182-1830')

#Regular filter tips
#database.delete_container('tiprack-starlab-S1121-3810')
#database.delete_container('tiprack-starlab-S1120-3810')
#database.delete_container('tiprack-starlab-S1120-2810')
#database.delete_container('tiprack-starlab-S1123-1840')
#database.delete_container('tiprack-starlab-S1120-8810')
#database.delete_container('tiprack-starlab-S1120-9810')
#database.delete_container('tiprack-starlab-S1122-1830')