当前位置: 首页>>代码示例>>Python>>正文


Python _index.SearchIndexer类代码示例

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


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

示例1: __init__

    def __init__(self, filename, comments=False, fields=_DEFAULT_FIELDS):
        SearchIndexer.__init__(self, filename, comments=comments, fields=fields)

        # if the file doesn't have comments,
        # get index of column used as the key (qseqid / qacc / qaccver)
        if not self._kwargs['comments']:
            if 'qseqid' in fields:
                self._key_idx = fields.index('qseqid')
            elif 'qacc' in fields:
                self._key_idx = fields.index('qacc')
            elif 'qaccver' in fields:
                self._key_idx = fields.index('qaccver')
            else:
                raise ValueError("Custom fields is missing an ID column. "
                        "One of these must be present: 'qseqid', 'qacc', or 'qaccver'.")
开发者ID:JulianNymark,项目名称:blendergame,代码行数:15,代码来源:blast_tab.py

示例2: __init__

 def __init__(self, filename):
     SearchIndexer.__init__(self, filename)
     # TODO: better way to do this?
     iter_obj = self._parser(self._handle)
     self._meta, self._fallback = iter_obj._meta, iter_obj._fallback
开发者ID:harshberia93,项目名称:biopython,代码行数:5,代码来源:blast_xml.py

示例3: __init__

 def __init__(self, filename, pslx=False):
     SearchIndexer.__init__(self, filename, pslx=pslx)
开发者ID:olgabot,项目名称:biopython,代码行数:2,代码来源:BlatIO.py

示例4: __init__

 def __init__(self, filename):
     SearchIndexer.__init__(self, filename)
     self._handle = UndoHandle(self._handle)
开发者ID:guru1982,项目名称:biopython,代码行数:3,代码来源:FastaIO.py

示例5: __init__

 def __init__(self, filename, **kwargs):
     """Initialize the class."""
     SearchIndexer.__init__(self, filename)
     # TODO: better way to do this?
     iter_obj = self._parser(self._handle, **kwargs)
     self._meta, self._fallback = iter_obj._meta, iter_obj._fallback
开发者ID:umbrr,项目名称:biopython,代码行数:6,代码来源:blast_xml.py

示例6: __init__

 def __init__(self, filename, pslx=False):
     """Initialize the class."""
     SearchIndexer.__init__(self, filename, pslx=pslx)
开发者ID:JoaoRodrigues,项目名称:biopython,代码行数:3,代码来源:BlatIO.py

示例7: __init__

 def __init__(self, filename):
     """Initialize the class."""
     SearchIndexer.__init__(self, filename)
     self._handle = UndoHandle(self._handle)
开发者ID:umbrr,项目名称:biopython,代码行数:4,代码来源:FastaIO.py


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