def reset(self): TubePicker.reset(self) self._picked_candidates = [] self.__pool_candidates = {} self.__md_map = dict() self.__single_pool_map = dict() self.__multi_pool_tube_candidates = dict() self.__picked_pool_ids = set()
def __init__(self, molecule_design_pools, single_design_concentration, take_out_volume, excluded_racks=None, requested_tubes=None, parent=None): TubePicker.__init__(self, molecule_design_pools, single_design_concentration, take_out_volume=take_out_volume, excluded_racks=excluded_racks, requested_tubes=requested_tubes, parent=parent) #: The pool candidates mapped onto pool IDs. self.__pool_candidates = None #: Maps multi-pool IDs onto molecule design IDs. ATTENTION: a multi #: molecule design pool can point to several set pools! For this reason, #: multi-pool IDs are stored in lists. self.__md_map = None #: Maps molecule design IDs onto single molecule design pool IDs. self.__single_pool_map = None #: If an siRNA is used in several pools this map will store the data #: of which ISO candidate has been used for which one. self.__multi_pool_tube_candidates = None #: Set of IDs that have been picked. self.__picked_pool_ids = None
def __run_tube_picker(self, pools, conc): tube_picker = TubePicker(pools, conc, parent=self) return dict([(pool.id, tbs[0].tube_barcode) for (pool, tbs) in tube_picker.get_result().iteritems() if len(tbs) > 0])