def __init__(self, pool_ids, concentration, minimum_volume=None): """ Constructor: :param pool_ids: The molecule design pool IDs for which you want to find stock samples. :type pool_ids: collection of :class:`int` :param concentration: The concentration of the stock sample *in nM*. :type concentration: positive number, unit nM :param minimum_volume: The minimum volume the tube must have *in ul* - the dead volume of the stock is added to it automatically. If you do pass a minimum volume all samples are accepted. :type minimum_volume: positive number, unit ul """ CustomQuery.__init__(self) #: The molecule design pool IDs for which to find stock samples. self.pool_ids = pool_ids #: The concentration of the stock sample *in nM*. self.concentration = concentration #: The minimum volume the tube must have *in ul* - the dead volume of #: the stock is added to it automatically. If the minimum volume #: is None is is set to 0. self.minimum_volume = minimum_volume if minimum_volume is None: self.minimum_volume = 0
def __init__(self, rack_barcodes): """ Constructor: :param rack_barcodes: The rack barcodes as list. :type rack_barcodes: :class:`list` (or iterable) """ CustomQuery.__init__(self) #: The rack barcodes as list. self.rack_barcodes = rack_barcodes
def __init__(self, molecule_design_ids): """ Constructor: :param molecule_design_ids: The molecule design IDs for which you want to find the pool IDs. :type molecule_design_ids: :class:`list` """ CustomQuery.__init__(self) #: The molecule design IDs for which you want to find the pool IDs. self.molecule_design_ids = molecule_design_ids
def __init__(self, tube_barcodes): """ Constructor: :param requested_tubes: A list of barcodes from stock tubes. :type requested_tubes: :class:`list` """ CustomQuery.__init__(self) #: A list of barcodes from stock tubes. self.tube_barcodes = tube_barcodes
def __init__(self, donor_racks, receiver_racks): """ Constructor. :param donor_racks: The donor racks mapped onto rack barcodes. :type donor_racks: :class:`list` or iterable :param receiver_racks: The receiver racks mapped onto rack barcodes. :type receiver_racks: :class:`list` or iterable """ CustomQuery.__init__(self) #: All stock condense racks mapped onto rack barcodes. self.rack_map = dict() for donor_rack in donor_racks: self.rack_map[donor_rack.rack_barcode] = donor_rack for receiver_rack in receiver_racks: self.rack_map[receiver_rack.rack_barcode] = receiver_rack #: Stores data about found tubes that do not match the stock constraints self.mismatching_tubes = []