Exemple #1
0
 def __init__(self, _files, readClass=DNARead):
     self._files = _files if isinstance(_files, (list, tuple)) else [_files]
     self.readClass = readClass
     if PY3:
         super().__init__()
     else:
         Reads.__init__(self)
Exemple #2
0
 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)
Exemple #3
0
 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)
Exemple #4
0
 def __init__(self, _file, readClass=DNARead, checkAlphabet=None,
              upperCase=False):
     self._file = _file
     self._readClass = readClass
     self._checkAlphabet = checkAlphabet
     # 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
     Reads.__init__(self)
Exemple #5
0
 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)
Exemple #6
0
 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)
Exemple #7
0
 def __init__(self, filename):
     self.filename = filename
     Reads.__init__(self)
Exemple #8
0
 def __init__(self, file_, readClass=DNARead):
     self.file_ = file_
     self.readClass = readClass
     Reads.__init__(self)