How to use the autoprotocol.unit.Unit function in autoprotocol

To help you get started, we’ve selected a few autoprotocol 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 autoprotocol / autoprotocol-python / autoprotocol / container_type.py View on Github external
capabilities=["liquid_handle", "incubate", "cover", "dispense", "liquid_handle"],
    shortname="res-mw12-hp",
    col_count=12,
    dead_volume_ul=Unit(1.8, "milliliter"),
    safe_min_volume_ul=Unit(5, "milliliter"),
    true_max_vol_ul=Unit(21.0, "milliliter"),
    vendor="Axygen",
    cat_no="res-mw12-hp",
)

#:
FLAT96CLEARTC = ContainerType(
    name="96-well flat-bottom TC treated plate",
    well_count=96,
    well_depth_mm=None,
    well_volume_ul=Unit(340.0, "microliter"),
    well_coating=None,
    sterile=False,
    is_tube=False,
    cover_types=["low_evaporation", "standard", "universal"],
    seal_types=None,
    capabilities=[
        "liquid_handle",
        "spin",
        "absorbance",
        "fluorescence",
        "luminescence",
        "incubate",
        "gel_separate",
        "gel_purify",
        "cover",
        "dispense",
github autoprotocol / autoprotocol-python / autoprotocol / container_type.py View on Github external
"liquid_handle",
        "incubate",
        "gel_separate",
        "mag_dry",
        "mag_incubate",
        "mag_collect",
        "mag_release",
        "mag_mix",
        "cover",
        "dispense",
    ],
    shortname="96-deep-kf",
    is_tube=False,
    col_count=12,
    dead_volume_ul=Unit(50, "microliter"),
    safe_min_volume_ul=Unit(50, "microliter"),
    vendor="Fisher",
    cat_no="22-387-031",
)

#:
V96CC = ContainerType(
    name="96-well cell culture multiple well plate, V bottom",
    well_count=96,
    well_depth_mm=10.668,
    well_volume_ul=Unit(200.0, "microliter"),
    well_coating=None,
    sterile=True,
    is_tube=False,
    cover_types=["standard", "universal", "low_evaporation", "ultra-clear", "foil"],
    seal_types=None,
    capabilities=[
github autoprotocol / autoprotocol-python / autoprotocol / container_type.py View on Github external
RESSW96HP = ContainerType(
    name="96-well singlewell highprofile reservoir",
    well_count=1,
    well_depth_mm=None,
    well_volume_ul=Unit(170.0, "milliliter"),
    well_coating=None,
    sterile=False,
    is_tube=False,
    cover_types=["universal"],
    seal_types=None,
    capabilities=["liquid_handle", "incubate", "cover", "dispense", "liquid_handle"],
    shortname="res-sw96-hp",
    col_count=1,
    dead_volume_ul=Unit(25, "milliliter"),
    safe_min_volume_ul=Unit(30, "milliliter"),
    true_max_vol_ul=Unit(280.0, "milliliter"),
    vendor="Axygen",
    cat_no="res-sw96-hp",
)

#:
RESMW8HP = ContainerType(
    name="8-row multiwell highprofile reservoir",
    well_count=8,
    well_depth_mm=None,
    well_volume_ul=Unit(24.0, "milliliter"),
    well_coating=None,
    sterile=False,
    is_tube=False,
    cover_types=["universal"],
    seal_types=None,
    capabilities=["liquid_handle", "incubate", "cover", "dispense", "liquid_handle"],
github autoprotocol / autoprotocol-python / autoprotocol / protocols / golden_braid.py View on Github external
"fragment_vol": "3:microliter",
            "water_vol": "2:microliter",
            "ligation_time": "10:minute",
            "deactivation_time": "5:minute",
            "deactivation_temp": "65:celsius",
        }
    }
    '''

    params = make_dottable_dict(params)
    refs = make_dottable_dict(params.refs)

    MM_vol = Unit.fromstring(params.backbone_vol) + Unit.fromstring(params.enzyme_vol) + Unit.fromstring(params.buffer_vol) + Unit.fromstring(params.ligase_vol) + Unit.fromstring(params.fragment_vol) + Unit.fromstring(params.water_vol)
    # make master mix
    protocol.transfer(params.backbone, params.MM_loc, Unit.fromstring(params.backbone_vol) * Unit((params.reaction_number + 2),"microliter"))
    protocol.transfer(params.T4_ligase, params.MM_loc, Unit.fromstring(params.ligase_vol) * Unit((params.reaction_number + 2),"microliter"))
    protocol.transfer(params.enzyme, params.MM_loc, Unit.fromstring(params.enzyme_vol) * Unit((params.reaction_number + 2),"microliter"))
    protocol.transfer(params.buffer, params.MM_loc, Unit.fromstring(params.buffer_vol) * Unit((params.reaction_number + 2),"microliter"))

    # distribute master mix
    protocol.distribute(params.MM_loc,
        refs.destination_plate.wells_from(params.reaction_start,
        params.reaction_number), MM_vol )

    protocol.seal("destination_plate")

    protocol.thermocycle("destination_plate", [
        {"cycles": 1, "steps": [
            {"temperature": "37:celsius", "duration": "2:minute"},
        ]},
        {"cycles": 1, "steps":[
            {"temperature": "16:celsius", "duration": "5:minute"},
github autoprotocol / autoprotocol-python / autoprotocol / container_type.py View on Github external
#:
RESSW384LP = ContainerType(
    name="384-well singlewell lowprofile reservoir",
    well_count=1,
    well_depth_mm=None,
    well_volume_ul=Unit(35, "milliliter"),
    well_coating=None,
    sterile=False,
    is_tube=False,
    cover_types=["universal"],
    seal_types=None,
    capabilities=["liquid_handle", "incubate", "cover", "dispense", "liquid_handle"],
    shortname="res-sw384-lp",
    col_count=1,
    dead_volume_ul=Unit(10, "milliliter"),
    safe_min_volume_ul=Unit(30, "milliliter"),
    true_max_vol_ul=Unit(92, "milliliter"),
    vendor="Axygen",
    cat_no="res-sw384-lp",
)

#:
ECHO384LDV = ContainerType(
    # Compatible with Labcyte Echo 520 and 55x only
    name="384-well Echo low dead volume plate",
    well_count=384,
    well_depth_mm=None,
    well_volume_ul=Unit(14.0, "microliter"),
    well_coating=None,
    sterile=None,
    is_tube=False,
    cover_types=["universal"],
github autoprotocol / autoprotocol-python / autoprotocol / container_type.py View on Github external
"dispense",
    ],
    shortname="96-pcr",
    col_count=12,
    dead_volume_ul=Unit(3, "microliter"),
    safe_min_volume_ul=Unit(5, "microliter"),
    vendor="Eppendorf",
    cat_no="951020619",
)

#:
DEEP96 = ContainerType(
    name="96-well extended capacity plate",
    well_count=96,
    well_depth_mm=None,
    well_volume_ul=Unit(2000.0, "microliter"),
    well_coating=None,
    sterile=False,
    cover_types=["standard", "universal"],
    seal_types=["breathable"],
    prioritize_seal_or_cover="cover",
    capabilities=[
        "liquid_handle",
        "incubate",
        "gel_separate",
        "gel_purify",
        "cover",
        "dispense",
        "seal",
    ],
    shortname="96-deep",
    is_tube=False,
github autoprotocol / autoprotocol-python / autoprotocol / liquid_handle / transfer.py View on Github external
def _dispense_transports(self, volume=None, density=None):
        self._transports = []
        volume = parse_unit(volume, "ul")

        # No transports if no volume specified
        if volume == Unit("0:ul"):
            return []

        self._transport_dispense_transit(volume)
        self._transport_dispense_target_volume(volume, density)
        self._transport_pre_mix_blowout(volume)
        self._transport_mix_after(volume)
        self._transport_blowout(volume)

        return self._transports
github autoprotocol / autoprotocol-python / autoprotocol / container.py View on Github external
Well
            Well with modified volume

        Raises
        ------
        TypeError
            Incorrect input-type given
        ValueError
            Volume set exceeds maximum well volume
        """
        if not isinstance(vol, str) and not isinstance(vol, Unit):
            raise TypeError(
                f"Volume {vol} is of type {type(vol)}, it should be either "
                f"'str' or 'Unit'."
            )
        v = Unit(vol)
        max_vol = self.container.container_type.true_max_vol_ul
        if v > max_vol:
            raise ValueError(
                f"Theoretical volume {v} to be set exceeds maximum well "
                f"volume {max_vol}."
            )
        self.volume = v
        return self
github autoprotocol / autoprotocol-python / autoprotocol / liquid_handle / transfer.py View on Github external
self._estimate_calibrated_volume(volume, self._source_liquid, self.tip_type)
            - volume
        )

        # handle whichever is larger, prime or transit volume
        if self.prime is True:
            prime = self.default_prime(volume)
        elif self.prime is False:
            prime = Unit(0, "uL")
        else:
            prime = self.prime

        if self.transit is True:
            transit = self.default_transit(volume)
        elif self.transit is False:
            transit = Unit(0, "uL")
        else:
            transit = self.transit

        prime_or_transit = max([prime, transit])

        return calibration_overage + prime_or_transit
github autoprotocol / autoprotocol-python / autoprotocol / liquid_handle / transfer.py View on Github external
Parameters
        ----------
        volume : Unit

        Returns
        -------
        dict
            pre_mix_blowout params

        See Also
        --------
        pre_mix_blowout : holds any user defined pre_mix_blowout parameters
        _transport_pre_mix_blowout : generates the actual blowout transports
        """
        return LiquidHandle.builders.blowout(
            volume=Unit(5, "ul"),
            initial_z=self.default_well_top_position_z(),
            flowrate=None,
        )