def __create_stock_rack_buffer_worklists(self): # These worklists are responsible for the addition of annealing buffer # to the pool stock rack. There is 1 worklist for each quadrant. self.add_debug('Create stock rack buffer worklists ...') buffer_volume = get_stock_pool_buffer_volume() for sector_index, base_layout in self.__quadrant_layouts.iteritems(): label = self.LIBRARY_STOCK_BUFFER_WORKLIST_LABEL % ( self.library_name, (sector_index + 1)) self.__create_buffer_worklist(base_layout, buffer_volume, label, sector_index)
def __write_pool_creation_section(self): # This is the stock transfer part (creating pools from single molecule # designs). self.add_debug('Create pool section ...') self._write_headline(header_text=self.HEADER_POOL_CREATION, preceding_blank_lines=0) lines = [] volume_line = self.VOLUME_LINE % (MOLECULE_DESIGN_TRANSFER_VOLUME) volume_line += ' each' lines.append(volume_line) buffer_line = self.BUFFER_LINE % get_stock_pool_buffer_volume() lines.append(buffer_line) for sector_index in sorted(self.tube_destination_racks.keys()): lines.append('') lines.append(self.QUADRANT_LINE % (sector_index + 1)) barcodes = self.tube_destination_racks[sector_index] target_rack = self.pool_stock_racks[sector_index] src_line = self.SOURCE_LINE_PLURAL % (', '.join(sorted(barcodes))) lines.append(src_line) lines.append(self.TARGET_LINE % (target_rack)) self._write_body_lines(lines)