• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python base.BaseTool类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中thelma.tools.base.BaseTool的典型用法代码示例。如果您正苦于以下问题:Python BaseTool类的具体用法?Python BaseTool怎么用?Python BaseTool使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了BaseTool类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: reset

 def reset(self):
     BaseTool.reset(self)
     self.__single_stock_rack_map = {}
     self.__prep_plate_map = {}
     self.__ssc_layout_map = {}
     self.__empty_stock_rack_positions_map = {}
     self.__stock_trf_exc_wl_map = None
开发者ID:helixyte,项目名称:TheLMA,代码行数:7,代码来源:executor.py


示例2: __init__

    def __init__(self, iso_request, ticket_numbers=None, reporter=None,
                 parent=None):
        """
        Constructor.

        :param iso_request: The ISO request for which to generate the ISOs.
        :type iso_request:
            :class:`thelma.entities.iso.StockSampleGenerationIsoRequest`
        :param ticket_numbers: The user might specify ticket numbers for the
            ISO tickets. The number of ticket number must either be 1 (in
            which case all ISOs get the same ticket number) or equal to the
            number of ISOs. If there is no ticket number specified, the
            tool will generate new tickets for each ISO.
            Attention: It is not checked whether these given tickets exist!
        :type ticket_numbers: :class:`list` of `int`
        :default ticket_numbers: *None*
        :param reporter: This user will become reporter of the tickets (if
            new tickets are created). If you do not want to create tickets,
            the user might be *None*.
        :type reporter: :class:`thelma.entities.user.User`
        :default reporter: *None*
        """
        BaseTool.__init__(self, parent=parent)
        self.iso_request = iso_request
        self.ticket_numbers = ticket_numbers
        self.reporter = reporter
        #: The number of ISOs created (for checking reasons).
        self.__new_iso_counter = None
开发者ID:helixyte,项目名称:TheLMA,代码行数:28,代码来源:generation.py


示例3: reset

 def reset(self):
     """
     Resets all values except for the initialisation values.
     """
     BaseTool.reset(self)
     self.__design_series = None
     self.__rack_worklists = None
开发者ID:helixyte,项目名称:TheLMA,代码行数:7,代码来源:worklist.py


示例4: reset

 def reset(self):
     BaseTool.reset(self)
     self.__pool_stock_rack_buffer_volume = None
     self.__tube_rack_map = {}
     self.__source_rack_locations = {}
     self.__single_stock_rack_map = {}
     self.__pool_stock_rack_map = None
开发者ID:helixyte,项目名称:TheLMA,代码行数:7,代码来源:writer.py


示例5: __init__

    def __init__(self, iso, user, parent=None):
        """
        Constructor.

        :param iso: library creation ISO to execute.
        :param user: User performing the execution.
        """
        BaseTool.__init__(self, parent=parent)
        self.iso = iso
        self.user = user
        #:
        self.__single_stock_rack_map = None
        #:
        self.__pool_stock_rack_map = None
        #:
        self.__prep_plate_map = None
        #:
        self.__ssc_layout_map = None
        #:
        self.__empty_stock_rack_positions_map = None
        #:
        self.__stock_trf_exc_wl_map = None
        # These are attributes required by the Trac reporter that this
        # executor is passed to.
        self.mode = StockTransferWriterExecutor.MODE_EXECUTE
        self.entity = iso
开发者ID:helixyte,项目名称:TheLMA,代码行数:26,代码来源:executor.py


示例6: __init__

    def __init__(
        self,
        base_layout,
        stock_concentration,
        library_name,
        preparation_buffer_volume,
        pool_buffer_volume=None,
        parent=None,
    ):
        """
        Constructor.

        :param base_layout: Layout defining which positions of the layout
            are allowed to take up library samples.
        :type base_layout: :class:`LibraryBaseLayout`
        :param int stock_concentration: Concentration of the single
            source molecule designs in the stock in nM (positive number).
        :param str library_name: Name of the library to be created.
        :param float preparation_buffer_volume: Buffer volume for preparation
            plates in ul.
        :param float pool_buffer_volume: Buffer volume for pool
            plates in ul. May be `None` if no pool racks are created.
        """
        BaseTool.__init__(self, parent=parent)
        self.base_layout = base_layout
        self.stock_concentration = stock_concentration
        self.library_name = library_name
        self.preparation_buffer_volume = preparation_buffer_volume
        self.pool_buffer_volume = pool_buffer_volume
        #: The worklist series for the ISO request.
        self.__worklist_series = None
        #: The last used worklist index (within the series).
        self.__last_worklist_index = None
        #: The base layout for each sector.
        self.__sector_layouts = None
开发者ID:helixyte,项目名称:TheLMA,代码行数:35,代码来源:requestgenerator.py


示例7: __init__

    def __init__(self, iso, single_stock_racks, pool_stock_racks=None,
                 include_dummy_output=False, parent=None):
        """
        Constructor.

        :param list single_stock_racks: Barcodes for single stock racks (must
            be empty).
        :param list pool_stock_racks: Optional pool stock rack barcodes.
            Each pool stock rack is expected to contain empty tubes in the
            expected positions.
        :param bool include_dummy_output: Flag indicating if the writer should
            return a dummy output file for the tube transfers.
        """
        BaseTool.__init__(self, parent=parent)
        self.iso = iso
        self.single_stock_racks = single_stock_racks
        self.pool_stock_racks = pool_stock_racks
        self.include_dummy_output = include_dummy_output
        #: Pool stock rack buffer volume in ul.
        self.__pool_stock_rack_buffer_volume = None
        #: Map tube rack barcode -> tube rack.
        self.__tube_rack_map = None
        #: Map sector index -> single stock rack barcodes.
        self.__single_stock_rack_map = None
        #: Map sector index -> pool stock rack barcode.
        self.__pool_stock_rack_map = None
        #: Map rack barcode -> location string.
        self.__source_rack_locations = None
开发者ID:helixyte,项目名称:TheLMA,代码行数:28,代码来源:writer.py


示例8: __init__

 def __init__(self, parent=None):
     BaseTool.__init__(self, parent=parent)
     #: The source layout.
     self._source_layout = None
     #: A set of all hash values.
     self._hash_values = None
     #: The column maps for the different target layouts (working positions
     #: mapped onto column indices) - the keys of this dictionary should
     #: be suitable for sorting. Otherwise there are irrelevant.
     self._column_maps = None
     #: The rack shape of the source layout.
     self.__source_rack_shape = None
     #: The minimum distance in rows two well of a column must have for
     #: the Biomek to pipet them together. The value is 1 for 384-well
     #: plates and 0 (=no distance) for 96-well plates.
     self.__trg_min_row_distance = None
     #: The minimum distance in rows two well of a column must have for
     #: the Biomek to pipet them together. The value is 1 for 384-well
     #: plates and 0 (=no distance) for 96-well plates.
     self.__src_min_row_distance = None
     #: The transfer items that are already part of a subcolumn.
     self.__subcolumn_tids = None
     #: All :class:`TransferSubcolumn` objects mapped onto their length.
     self.__subcolumn_lengths = None
     #: Stores :class:`SourceSubcolumn` objects managing the remaining free
     #: positions for the source transfection layout.
     self.__free_positions = None
开发者ID:helixyte,项目名称:TheLMA,代码行数:27,代码来源:optimiser.py


示例9: reset

 def reset(self):
     BaseTool.reset(self)
     self.__base_layout = None
     self.__pool_set = None
     self.__worklist_series = None
     self.__stock_concentration = None
     self.__number_plates = None
开发者ID:helixyte,项目名称:TheLMA,代码行数:7,代码来源:requestgenerator.py


示例10: __init__

    def __init__(self, iso_request, number_isos,
                 excluded_racks=None, requested_tubes=None, parent=None):
        """
        Constructor.

        :param iso_request: The ISO request containing the ISO layout for the
            ISO (and experiment metadata with the molecule design pools).
        :type iso_request: :class:`thelma.entities.iso.IsoRequest`
        :param int number_isos: The number of ISOs ordered.
        :param excluded_racks: A list of barcodes from stock racks that shall
            not be used for stock sample picking.
        :type excluded_racks: A list of rack barcodes
        :param requested_tubes: A list of barcodes from stock tubes that are
            supposed to be used.
        :type requested_tubes: A list of tube barcodes.
        """
        BaseTool.__init__(self, parent=parent)
        #: The ISO request defining the ISO layout
        #: (:class:`thelma.entities.iso.IsoRequest`)
        self.iso_request = iso_request
        #: The number of ISOs ordered.
        self.number_isos = number_isos
        #: A list of barcodes from stock racks that shall not be used for
        #: stock sample (molecule design pool) picking.
        self.excluded_racks = excluded_racks
        if excluded_racks is None:
            self.excluded_racks = []
        if requested_tubes is None:
            requested_tubes = []
        #: A list of barcodes from stock tubes that are supposed to be used
        #: (for fixed positions).
        self.requested_tubes = requested_tubes
开发者ID:helixyte,项目名称:TheLMA,代码行数:32,代码来源:jobcreator.py


示例11: reset

 def reset(self):
     """
     Resets all values except for the input values.
     """
     BaseTool.reset(self)
     self._planned_liquid_transfers = []
     self._label = None
开发者ID:helixyte,项目名称:TheLMA,代码行数:7,代码来源:generation.py


示例12: __init__

    def __init__(self, molecule_design_pools, stock_concentration,
                 take_out_volume,
                 excluded_racks=None, requested_tubes=None, parent=None):
        """
        Constructor.

        :param molecule_design_pools: The molecule design pool IDs for which
            to run the query.
        :type molecule_design_pools: :class:`set` of molecule design pool IDs
        :param int stock_concentration: The stock concentration of the single
            molecule design pools for the library in nM (positive number).
        :param int take_out_volume: The volume that shall be removed from the
            single molecule design stock in ul (positive number).
        :param requested_tubes: A list of barcodes from stock tubes that are
            supposed to be used.
        :type requested_tubes: A list of tube barcodes.
        :param excluded_racks: A list of barcodes from stock racks that shall
            not be used for molecule design picking.
        :type excluded_racks: A list of rack barcodes
        """
        BaseTool.__init__(self, parent=parent)
        #: The molecule design pool IDs for which to run the query.
        self.molecule_design_pools = molecule_design_pools
        #: The stock concentration of the single molecule design pools for
        #: the library in nM.
        self.stock_concentration = stock_concentration
        #: The volume that shall be removed from the single molecule design
        #: stock in ul.
        self.take_out_volume = take_out_volume
        if excluded_racks is None: excluded_racks = []
        #: A list of barcodes from stock racks that shall not be used for
        #: molecule design picking.
        self.excluded_racks = excluded_racks
        if requested_tubes is None: requested_tubes = []
        #: A list of barcodes from stock tubes that are supposed to be used
        #: (for fixed positions).
        self.requested_tubes = requested_tubes
        #: The DB session used for the queries.
        self.__session = None
        #: The library candidated mapped onto pool IDs.
        self.__library_candidates = None
        #: Maps library pool IDs onto molecule design IDs. ATTENTION: a molecule
        #: design pool can point to several library pools! For this reason,
        #: library 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
        #: Stores the suitable stock sample IDs for the single molecule
        #: designs pools used to create the library pools. The results are
        #: determined by the :class:`SINGLE_POOL_QUERY`.
        self.__stock_samples = None

        #: The picked library candidates for the pools in the order of
        #: completion.
        self.__picked_candidates = 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_iso_candidates = None
开发者ID:helixyte,项目名称:TheLMA,代码行数:59,代码来源:optimizer.py


示例13: reset

 def reset(self):
     BaseTool.reset(self)
     self.__library_candidates = {}
     self.__md_map = dict()
     self.__picked_candidates = []
     self.__stock_samples = []
     self.__single_pool_map = dict()
     self.__multi_pool_iso_candidates = dict()
开发者ID:helixyte,项目名称:TheLMA,代码行数:8,代码来源:optimizer.py


示例14: reset

 def reset(self):
     """
     Resets all attributes except for the user input.
     """
     BaseTool.reset(self)
     self.__stream = None
     self._column_map_list = None
     self._index_map = None
开发者ID:helixyte,项目名称:TheLMA,代码行数:8,代码来源:writers.py


示例15: reset

 def reset(self):
     BaseTool.reset(self)
     self.__ticket_number = None
     self.__series_map = dict()
     self.__worklist_counter = 0
     self.__ordered_plate_markers = []
     self.__series_keys = dict()
     self.__process_job_first = None
开发者ID:helixyte,项目名称:TheLMA,代码行数:8,代码来源:jobcreator.py


示例16: reset

 def reset(self):
     """
     Resets all attributes except for the :attr:`experiment_design`.
     """
     BaseTool.reset(self)
     self.__experiment_layouts = dict()
     self.__placeholder_maps = dict()
     self.__iso_layout = None
开发者ID:helixyte,项目名称:TheLMA,代码行数:8,代码来源:transfectionlayoutfinder.py


示例17: reset

 def reset(self):
     BaseTool.reset(self)
     self.__pool_set = None
     self.__number_designs = None
     self.__stock_concentration = None
     self.__adj_target_volume = None
     self.__worklist_series = None
     self.__expected_number_isos = None
开发者ID:helixyte,项目名称:TheLMA,代码行数:8,代码来源:generation.py


示例18: __init__

    def __init__(self, library_creation_iso, tube_destination_racks,
                 pool_stock_racks, parent=None):
        """
        Constructor:

        :param library_creation_iso: The library creation ISO for which to
            generate the worklist files.
        :type library_creation_iso:
            :class:`thelma.entities.library.LibraryCreationIso`

        :param tube_destination_racks: The barcodes for the destination
            rack for the single molecule design tube (these racks have to be
            empty).
        :type tube_destination_racks: map of barcode lists
            (:class:`basestring`) mapped onto sector indices.

        :param pool_stock_racks: The barcodes for the pool stock racks
            (these racks have to have empty tubes in defined positions).
        :type pool_stock_racks: map of barcodes
            (:class:`basestring`) mapped onto sector indices.
        """
        BaseTool.__init__(self, parent=parent)

        #: The library creation ISO for which to generate the worklist files.
        self.library_creation_iso = library_creation_iso
        #: The barcodes for the destination rack for the single molecule
        #: design tube (these racks have to be empty).
        self.tube_destination_racks = tube_destination_racks
        #: The barcodes for the pool stock racks rack for the single molecule
        #: design tube (these racks have to have empty tubes in defined
        #: positions).
        self.pool_stock_racks = pool_stock_racks

        #: The name of the library that is created here.
        self.library_name = None
        #: The layout number of the ISO.
        self.layout_number = None

        #: Stores the generated file streams (mapped onto file names).
        self.__file_map = None

        #: Maps tube racks onto barcodes.
        self.__rack_map = None
        #: The library layout for the ISO.
        self.__library_layout = None
        #: Maps library position onto sector indices.
        self.__library_sectors = None
        #: Maps translated library position onto sector indices.
        self.__translated_sectors = None

        #: Maps tube onto tube barcodes.
        self.__tube_map = dict()
        #: The tube transfer data items for the tube handler worklist writer
        #: sorted by sector index.
        self.__tube_transfers = None
        #: Stores the rack location for each source rack (single molecule
        #: design pools).
        self.__source_rack_locations = None
开发者ID:helixyte,项目名称:TheLMA,代码行数:58,代码来源:writer.py


示例19: __init__

 def __init__(self, parent=None):
     BaseTool.__init__(self, parent=parent)
     reg = get_current_registry()
     self.tractor_api = reg.getUtility(ITractor)
     #: The value return of the :func:`send_request` method.
     self.return_value = None
     #: Is set to *True*, if all Trac request have been completed
     #: successfully.
     self.was_successful = False
开发者ID:helixyte,项目名称:TheLMA,代码行数:9,代码来源:tracbase.py


示例20: reset

 def reset(self):
     """
     Resets all values except the initialisation values.
     """
     BaseTool.reset(self)
     self._sector_concentrations = None
     self._associated_sectors = []
     self.__sector_set_hashes = dict()
     self.__sector_set_positions = dict()
开发者ID:helixyte,项目名称:TheLMA,代码行数:9,代码来源:racksector.py



注:本文中的thelma.tools.base.BaseTool类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python theme.get_color函数代码示例发布时间:2022-05-27
下一篇:
Python utils.replace_command函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap