How to use the opentrons.containers.load 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 / Protocols / Tubes_to_plate_distribution / tube_to_plate_distribution.py View on Github external
plate = containers.load(
    '96-PCR-flat',  
    'B1',             
    'plate'         
)
tuberack = containers.load(
    'tube-rack-2ml',  
    'C1',             
    'tuberack'         
)
tuberack2 = containers.load(
    'tube-rack-2ml',  
    'D1',             
    'tuberack2'         
)
tuberack3 = containers.load(
    'tube-rack-2ml',  
    'C2',             
    'tuberack3'         
)
tuberack4 = containers.load(
    'tube-rack-2ml',  
    'D2',             
    'tuberack4'         
)
trash = containers.load(
	'point',
	'A2',
	'trash'
)

p200 = instruments.Pipette(
github Opentrons / Protocols / 96 Multi / FU_Berlin_Protocol2.py View on Github external
from opentrons import containers, instruments


p200rack = containers.load('tiprack-200ul', 'D2')
trash = containers.load('trash-box', 'E2')
trough = containers.load('trough-12row', 'C2')
plate1 = containers.load('96-PCR-flat', 'A1')
plate2 = containers.load('96-PCR-flat', 'A2')
plate3 = containers.load('96-PCR-flat', 'B1')
plate4 = containers.load('96-PCR-flat', 'B2')
plate5 = containers.load('96-PCR-flat', 'C1')
plate6 = containers.load('96-PCR-flat', 'D1')
plate7 = containers.load('96-PCR-flat', 'E1')

p200 = instruments.Pipette(
    axis="b",
    max_volume=200,
    tip_racks=[p200rack],
    trash_container=trash
)
github Opentrons / Protocols / protocols / youPCR-setup / youPCR-setup.ot1.py View on Github external
from opentrons import containers, instruments


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

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

# tip rack for p200 pipette
tip200_rack = containers.load('tiprack-200ul', 'A2')

# tip rack for p10 pipette
tip10_rack = containers.load('tiprack-10ul', 'C2')

# trash to dispose of tips
trash = containers.load('point', 'B3', 'trash')

# p200 (20 - 200 uL) (single)
p200single = instruments.Pipette(
    axis='b',
    max_volume=200,
    min_volume=20,
    channels=1,
    trash_container=trash,
    tip_racks=[tip200_rack])
github Opentrons / Protocols / protocols / elisa_prep / elisa_prep.ot1.py View on Github external
# extra voume aspirate for accuracy in multidispense
extravol = 20  # can change here (in ul)

# 96 well deep plate with antibodies
antibodies = containers.load('96-deep-well', 'C2')

# 96 well flat ELISA plates
plate1 = containers.load('96-PCR-flat', 'A1')
plate2 = containers.load('96-PCR-flat', 'B1')
plate3 = containers.load('96-PCR-flat', 'C1')
plate4 = containers.load('96-PCR-flat', 'D1')
plate5 = containers.load('96-PCR-flat', 'E1')
plate6 = containers.load('96-PCR-flat', 'A2')
plate7 = containers.load('96-PCR-flat', 'E2')
plate8 = containers.load('96-PCR-flat', 'A3')
plate9 = containers.load('96-PCR-flat', 'B3')
plate10 = containers.load('96-PCR-flat', 'C3')
plate11 = containers.load('96-PCR-flat', 'D3')

# tip rack for p50 pipette
tip200_rack = containers.load('tiprack-200ul', 'B2')

# trash to dispose of tips
trash = containers.load('point', 'D2', 'trash')

# p300 (50 - 300 uL) (multi)
p300multi = instruments.Pipette(
    axis='a',
    name='p300multi',
    max_volume=300,
    min_volume=50,
    channels=8,
github Opentrons / Protocols / protolib / parse / parseOT1.py View on Github external
import time
import shutil
from opentrons import robot, containers
from opentrons.instruments import Pipette as BasePipette
from opentrons.instruments import Magbead as BaseMagbead
from opentrons.util.environment import settings as opentrons_settings

import sys

# HACK to get pipette type
pipetteType = type(BasePipette(robot, 'a'))

# monkeypatch containers.load with the load_container_spy fn,
# use global all_containers to track containers per protocol
global all_containers
orig_containers_load = containers.load


def load_container_spy(container_name, slot, label=None):
    all_containers.append({
        'type': container_name,
        'slot': slot,
        'name': label or container_name
        })
    return orig_containers_load(container_name, slot, label)


containers.load = load_container_spy


def parse(protocol_path):
github Opentrons / Protocols / protocols / IFIN / enzyme_activity.ot1.py View on Github external
from opentrons import containers, instruments

plate_a = containers.load('96-flat', 'A1')
plate_b = containers.load('96-flat', 'B1')
trash = containers.load('trash-box', 'A2')
tiprack1 = containers.load('tiprack-200ul', 'B2')
tiprack2 = containers.load('tiprack-200ul', 'C2')


m200 = instruments.Pipette(
    axis='a',
    name='m200',
    max_volume=200,
    min_volume=20,
    channels=8,
    trash_container=trash,
    tip_racks=[tiprack1, tiprack2]
    )
github Opentrons / Protocols / protocols / biofilm_setup / biofilm_setup.ot1.py View on Github external
from opentrons import containers, instruments

vol = 100  # in ul, can change

# tip rack for p200 pipette
tip200_rack = containers.load('tiprack-200ul', 'A1')

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

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

cells = containers.load('tube-rack-2ml', 'C2')

# p100 (10 - 100 uL) (single)
p200 = instruments.Pipette(
    axis='b',
    max_volume=200,
    min_volume=20,
    channels=1,
    trash_container=trash,
github Opentrons / Protocols / a_to_b / a_to_b.py View on Github external
destination_container_type: Container = '96-flat',
    pipette_model: [1, 5, 10, 20, 50, 100, 200] = 100,
    pipette_axis: ['a', 'b'] = 'a',
    pipette_channels: [1, 8] = 1,
    number_of_samples: int = 1,
    transfer_volume: float = 10.0
):
    # HACK: Doing `container_var or 'point'` so deck map parsing works
    source_container = containers.load(source_container_type or 'point', 'E1')
    destination_container = containers.load(
        destination_container_type or 'point', 'C1')

    tiprack1 = containers.load('tiprack-200ul', 'A1', 'p200rack')
    tiprack2 = containers.load('tiprack-200ul', 'B1', 'p200rack')

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

    pipette = instruments.Pipette(
        axis=pipette_axis,
        trash_container=trash,
        tip_racks=[tiprack1, tiprack2],
        max_volume=pipette_model,
        min_volume=math.ceil(pipette_model / 10),
        # TODO: validate containers for 8-channel, not all will work!
        channels=pipette_channels,
    )

    source_wells = source_container.wells(length=number_of_samples)
    destination_wells = source_container.wells(length=number_of_samples)

    if pipette_channels == 8:
        source_wells = get_alternating_wells(
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')

# p200 (20 - 200 uL) (single)
p200single = instruments.Pipette(
    axis='b',
    name='p200',
    max_volume=200,
    min_volume=20,
    channels=1,
    trash_container=trash,
    tip_racks=[tip200_rack])

# p300 (50 - 300 uL) (multi)
github Opentrons / Protocols / protocols / Septum_Plate_Setup_27-11-2017 / Septum_Plate_Setup_27-11-2017.ot1.py View on Github external
"""
septum2 = containers.load('septum-plate', 'C3')
trash = containers.load('trash-box', 'C2')
trough = containers.load('trough-12row', 'C1')

"""
Column D
"""
septum3 = containers.load('septum-plate', 'D1')
septum4 = containers.load('septum-plate', 'D2')
septum5 = containers.load('septum-plate', 'D3')

"""
Column E
"""
septum6 = containers.load('septum-plate', 'E1')
septum7 = containers.load('septum-plate', 'E2')
septum8 = containers.load('septum-plate', 'E3')

"""
Instruments
"""
p50 = instruments.Pipette(
    axis='a',
    name='p50multi',
    max_volume=50,
    min_volume=5,
    channels=8,
    tip_racks=[tiprack],
    trash_container=trash)

p100 = instruments.Pipette(