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


Python Reads.__init__方法代码示例

本文整理汇总了Python中dark.reads.Reads.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Reads.__init__方法的具体用法?Python Reads.__init__怎么用?Python Reads.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在dark.reads.Reads的用法示例。


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

示例1: __init__

# 需要导入模块: from dark.reads import Reads [as 别名]
# 或者: from dark.reads.Reads import __init__ [as 别名]
 def __init__(self, _files, readClass=SSAARead, upperCase=False):
     self._files = _files if isinstance(_files, (list, tuple)) else [_files]
     self._readClass = readClass
     self._upperCase = upperCase
     if PY3:
         super().__init__()
     else:
         Reads.__init__(self)
开发者ID:bamueh,项目名称:dark-matter,代码行数:10,代码来源:fasta_ss.py

示例2: __init__

# 需要导入模块: from dark.reads import Reads [as 别名]
# 或者: from dark.reads.Reads import __init__ [as 别名]
 def __init__(self, _files, readClass=DNARead, upperCase=False):
     self._files = _files if isinstance(_files, (list, tuple)) else [_files]
     self._readClass = readClass
     # TODO: It would be better if upperCase were an argument that could
     # be passed to Reads.__init__ and that could do the uppercasing in
     # its add method (as opposed to using it below in our iter method).
     # In that case, in the iter of this class we'd call self.add on
     # each of the sequences coming from self._file. Or, if we'd already
     # read the file we'd return Reads.iter(self) to re-iterate over the
     # sequences already added from the file.
     self._upperCase = upperCase
     if PY3:
         super().__init__()
     else:
         Reads.__init__(self)
开发者ID:acorg,项目名称:dark-matter,代码行数:17,代码来源:fasta.py

示例3: __init__

# 需要导入模块: from dark.reads import Reads [as 别名]
# 或者: from dark.reads.Reads import __init__ [as 别名]
 def __init__(self, filename):
     self.filename = filename
     Reads.__init__(self)
开发者ID:sophiemathias,项目名称:dark-matter,代码行数:5,代码来源:fasta.py


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