def read(self, size=-1):  # pylint: disable=invalid-name
    if self._seek_away is not None:
      raise CommandException('Read called on hashing file pointer in an '
                             'unknown position; cannot correctly compute '
                             'digest.')

    data = self._orig_fp.read(size)
    self._digesters_previous_mark = self._digesters_current_mark
    for alg in self._digesters:
      self._digesters_previous[alg] = self._digesters[alg].copy()
      self._digesters[alg].update(data)
    self._digesters_current_mark += len(data)
    return data
Annotation, selection, and analysis of variants in the context of next-gen sequencing analysis.
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/hashing_helper.py/HashingFileUploadWrapper.read--crossover with--dataset/ETHPy150Open chapmanb/cloudbiolinux/cloudbio/custom/bio_nextgen.py/install_varianttools