本文整理汇总了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)
示例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)
示例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)