How to use the opentrons.containers function in opentrons

To help you get started, we’ve selected a few opentrons examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Opentrons / opentrons / tests / opentrons / helpers / test_helpers.py View on Github external
def setUp(self):
        self.robot = Robot.reset_for_tests()
        self.p200 = instruments.Pipette(axis='b', max_volume=200)
        self.plate = containers.load('96-flat', 'C1')
github Opentrons / Protocols / protocols / qubit_dna_quantification_pt2 / sample_to_qubit.ot1.py View on Github external
# due to bug that default offset is not (0, 0, 0) when run on the robot
offset_d = (3, 3, -.4)

gap = 2  # volume of air gap in ul, to minimize errors

# make sure tip container has 4 tips per row,
# alternating a space in between with the first column (A) empty
# if
# note that trash should be placed in slot D3

# allows file in speed_dir to control speed of the robot


# containers
p10rack = containers.load(
    'tiprack-10ul',  # container name in opentrons system
    'E1',  # slot of container
    'tiprack',  # name to remember calibrations
)

samples = containers.load(
    '96-PCR-tall',
    'D1',
    'sample_tubes',
)

tubes = containers.load(
    '96-deep-well',
    'D2',
    'd2qubit_tubes_spaced'
)
github Opentrons / Protocols / protocols / PCR_Prep_Multiple_Plates / PCR_Prep_2017-12-5.ot1.py View on Github external
from opentrons import containers, instruments
import math

tipracks = [
    containers.load('tiprack-10ul', slot)
    for slot in ['A1', 'B1', 'C1', 'D1']]

inputPlates = [
    containers.load('96-deep-well', slot)
    for slot in ['A2', 'B2', 'C2']]

outputPlate = containers.load('384-plate', 'D2')

trough = containers.load('trough-12row', 'E2')

trash = containers.load('trash-box', 'E1')

pipette = instruments.Pipette(
    axis='a',
    max_volume=10,
    min_volume=1,
    channels=8,
    tip_racks=tipracks,
    trash_container=trash)


def run_custom_protocol(number_of_samples: int=288):
    num_samples = number_of_samples

    # Plates/Tube racks
github Opentrons / Protocols / protocols / PCR_Prep_Multiple_Plates / PCR_Prep_2017-12-5.ot1.py View on Github external
from opentrons import containers, instruments
import math

tipracks = [
    containers.load('tiprack-10ul', slot)
    for slot in ['A1', 'B1', 'C1', 'D1']]

inputPlates = [
    containers.load('96-deep-well', slot)
    for slot in ['A2', 'B2', 'C2']]

outputPlate = containers.load('384-plate', 'D2')

trough = containers.load('trough-12row', 'E2')

trash = containers.load('trash-box', 'E1')

pipette = instruments.Pipette(
    axis='a',
    max_volume=10,
    min_volume=1,
github Opentrons / Protocols / protocols / Emory_University / pcr_prep.ot1.py View on Github external
trough_2 = containers.load('trough-12row', 'B2')
trough_3 = containers.load('trough-12row', 'C2')
trough_4 = containers.load('trough-12row', 'D2')
sample = containers.load('96-PCR-flat', 'E1')

target = containers.load('96-PCR-flat', 'C1')

tiprack_1 = containers.load('tiprack-10ul', 'A3')
tiprack_2 = containers.load('tiprack-10ul', 'B3')
tiprack_3 = containers.load('tiprack-10ul', 'C3')
tiprack_4 = containers.load('tiprack-10ul', 'D3')


tiprack = [tiprack_1, tiprack_2, tiprack_3, tiprack_4]

trash = containers.load('trash-box', 'E3')

p10 = instruments.Pipette(
    name='p10',
    channels=1,
    axis='b',
    max_volume=10,
    tip_racks=tiprack,
    trash_container=trash)

m10 = instruments.Pipette(
    name='m10',
    channels=8,
    axis='a',
    max_volume=10,
    tip_racks=tiprack,
    trash_container=trash)
github Opentrons / Protocols / protocols / cherrypicking_csv / cherrypicking_csv.ot1.py View on Github external
from opentrons import containers, instruments
from otcustomizers import FileInput, StringSelection

tiprack_slots = ['D1', 'A2', 'C2', 'E2']
tipracks = [containers.load('tiprack-200ul', slot) for slot in tiprack_slots]
trash = containers.load('trash-box', 'E1')

example_csv = """
A1, 20
A3, 10
B2, 15

"""


def run_custom_protocol(
        volumes_csv: FileInput=example_csv,
        pipette_axis: StringSelection(
            'B (left side)', 'A (right side)')='B (left side)',
        pipette_model: StringSelection(
            'p300', 'p50', 'p10', 'p1000')='p300',
github Opentrons / Protocols / protocols / pcr_prep_with_beads / pcr_prep_with_beads.ot1.py View on Github external
from opentrons import containers, instruments

# number of samples
num_samples = 94  # change here

# 96 well plate 1
plate1 = containers.load('96-PCR-flat', 'C1')

# 96 well plate 2
plate2 = containers.load('96-PCR-flat', 'D1')

# tip rack for p300 pipette and p20 pipette
tip200_rack = containers.load('tiprack-200ul', 'E3')
tip200_rack2 = containers.load('tiprack-200ul', 'D2')
tip200_rack3 = containers.load('tiprack-200ul', 'C3')

# trash to dispose of tips
trash = containers.load('trash-box', 'A3')

# trough with solution A and B
trough = containers.load('trough-12row', 'A1')

# tuberack with neg and pos controls
tuberack = containers.load('tube-rack-2ml', 'B2')

# p20 (1 - 20 uL) (single)
p20single = instruments.Pipette(
    axis='b',
    name='p20single',
    max_volume=20,
github Opentrons / Protocols / protocols / Serial_Dilution_ELISA / ELISA_2017-10-06.ot1.py View on Github external
from opentrons import containers, instruments, robot
import time


"""
Serial Dilution + ELISA
@author Opentrons
@date Septeber 20th, 2017
@robot_model OT S Hood

"""

p1000rack = containers.load('tiprack-1000ul', 'A1', 'p20-rack')
p300rack = containers.load('tiprack-200ul', 'C1', 'p300-rack')
p300rack2 = containers.load('tiprack-200ul', 'E1', 'p300-rack')

serial_dilution_plate = containers.load('96-deep-well', 'B1')
reaction_plate = containers.load('96-deep-well', 'D1')
samples = containers.load('tube-rack-2ml', 'C2')

buffers = containers.load('trough-12row', 'D2')

liquid_trash = containers.load('point', 'A2', 'liquid trash')


EGFR = buffers.wells('A2')
wash_buffer = buffers.wells('A3')
superblock = buffers.wells('A4')

diluted_antibody = buffers.wells('A5')
github Opentrons / Protocols / protocols / t4_dna_ligation / t4_dna_ligation.ot1.py View on Github external
from opentrons import containers, instruments

# add a 2ml tube rack
tuberack = containers.load('tube-rack-2ml', 'C1')

# add a p10 pipette, with tiprack and trash
p10rack = containers.load('tiprack-200ul', 'A1')
trash = containers.load('trash-box', 'B2')
p10 = instruments.Pipette(
    axis='b',
    max_volume=10,
    trash_container=trash,
    tip_racks=[p10rack]
)

# single sample volumes
buffer_vol = 1
vector_vol = 1.5
insert_vol = 2
ligase_vol = 1.6
water_vol = 20 - (buffer_vol + vector_vol + insert_vol + ligase_vol)

if water_vol < 0:
    raise RuntimeWarning('Volumes add up to more than 20uL')
github Opentrons / Protocols / protocols / neut_dilution / neut_dilution.ot1.py View on Github external
from opentrons import containers, instruments

# solutions in trough
trough = containers.load('trough-12row', 'A2')

# tube rack holding reagents
reagents = containers.load('tube-rack-.75ml', 'A1')

# 96 well plates
flat_plate = containers.load('96-PCR-flat', 'C1')
deep_plate = containers.load('96-deep-well', 'C2')

# tip rack for p10 and p50 pipette
tip200_rack = containers.load('tiprack-200ul', 'C3')
tip200_rack2 = containers.load('tiprack-200ul', 'E3')
tip200_rack3 = containers.load('tiprack-200ul', 'E2')

# trash to dispose of tips
trash = containers.load('trash-box', 'A3')