コード例 #1
0
    def _merge_streams(self, stream_map):
        """
        All buffer streams are merged too.
        """
        dilution_streams = dict()
        for job_index in self.__buffer_dilution_indices:
            dilution_streams[job_index] = stream_map[job_index]
            del stream_map[job_index]

        if len(dilution_streams) > 0:
            self.__buffer_stream = merge_csv_streams(dilution_streams)
        return StockTransferWriterExecutor._merge_streams(self, stream_map)
コード例 #2
0
ファイル: processing.py プロジェクト: helixyte/TheLMA
    def _merge_streams(self, stream_map):
        """
        All buffer streams are merged too.
        """
        dilution_streams = dict()
        for job_index in self.__buffer_dilution_indices:
            dilution_streams[job_index] = stream_map[job_index]
            del stream_map[job_index]

        if len(dilution_streams) > 0:
            self.__buffer_stream = merge_csv_streams(dilution_streams)
        return StockTransferWriterExecutor._merge_streams(self, stream_map)
コード例 #3
0
ファイル: mastermix.py プロジェクト: helixyte/TheLMA
    def _merge_streams(self, stream_map):
        """
        All transfer jobs are merged into one file. Optimem and reagent
        stream are from the merged stream map, too.
        """
        self._extract_mastermix_streams(stream_map)
        transfer_streams = dict()
        transfer_worklist = None
        for job_index, stream in stream_map.iteritems():
            transfer_streams[job_index] = stream
            if transfer_worklist is None:
                transfer_worklist = self._transfer_jobs[job_index].planned_worklist

        transfer_stream = merge_csv_streams(transfer_streams)
        self._final_streams[self.FILE_SUFFIX_TRANSFER] = transfer_stream
        return dict()
コード例 #4
0
ファイル: mastermix.py プロジェクト: papagr/TheLMA
    def _merge_streams(self, stream_map):
        """
        All transfer jobs are merged into one file. Optimem and reagent
        stream are from the merged stream map, too.
        """
        self._extract_mastermix_streams(stream_map)
        transfer_streams = dict()
        transfer_worklist = None
        for job_index, stream in stream_map.iteritems():
            transfer_streams[job_index] = stream
            if transfer_worklist is None:
                transfer_worklist = self._transfer_jobs[job_index].\
                                    planned_worklist

        transfer_stream = merge_csv_streams(transfer_streams)
        self._final_streams[self.FILE_SUFFIX_TRANSFER] = transfer_stream
        return dict()
コード例 #5
0
ファイル: series.py プロジェクト: papagr/TheLMA
 def _merge_streams(self, stream_map):
     """
     By default, streams for the same worklist are merged.
     """
     sorted_streams = dict()
     for job_index, stream in stream_map.iteritems():
         if job_index in self.__rack_transfer_indices:
             continue
         transfer_job = self._transfer_jobs[job_index]
         worklist_label = transfer_job.planned_worklist.label
         if sorted_streams.has_key(worklist_label):
             worklist_map = sorted_streams[worklist_label]
         else:
             worklist_map = dict()
             sorted_streams[worklist_label] = worklist_map
         worklist_map[job_index] = stream
     merged_streams = dict()
     for worklist_label, worklist_map in sorted_streams.iteritems():
         merged_stream = merge_csv_streams(worklist_map)
         merged_streams[worklist_label] = merged_stream
     return merged_streams
コード例 #6
0
ファイル: series.py プロジェクト: helixyte/TheLMA
 def _merge_streams(self, stream_map):
     """
     By default, streams for the same worklist are merged.
     """
     sorted_streams = dict()
     for job_index, stream in stream_map.iteritems():
         if job_index in self.__rack_transfer_indices:
             continue
         transfer_job = self._transfer_jobs[job_index]
         worklist_label = transfer_job.planned_worklist.label
         if sorted_streams.has_key(worklist_label):
             worklist_map = sorted_streams[worklist_label]
         else:
             worklist_map = dict()
             sorted_streams[worklist_label] = worklist_map
         worklist_map[job_index] = stream
     merged_streams = dict()
     for worklist_label, worklist_map in sorted_streams.iteritems():
         merged_stream = merge_csv_streams(worklist_map)
         merged_streams[worklist_label] = merged_stream
     return merged_streams