Class AbstractSingleH5FileInSeriesSingleCellDetector

All Implemented Interfaces:
SingleCellDetector
Direct Known Subclasses:
AnnDataDetector, SeuratDiskDetector

public abstract class AbstractSingleH5FileInSeriesSingleCellDetector extends AbstractSingleFileInSeriesSingleCellDetector
Author:
poirigui
  • Constructor Details

    • AbstractSingleH5FileInSeriesSingleCellDetector

      protected AbstractSingleH5FileInSeriesSingleCellDetector(String name, String extension)
  • Method Details

    • existsAndHasExpectedSize

      protected boolean existsAndHasExpectedSize(Path dest, String remoteFile, long expectedContentLength, boolean decompressIfNeeded, boolean storeCompressed) throws IOException
      Check if a file at a given destination exists and has the size of a remote file.

      In addition to size and existence, also check if the H5 is truncated.

      Overrides:
      existsAndHasExpectedSize in class AbstractSingleCellDetector
      Parameters:
      dest - file at destination
      remoteFile - filename at origin
      expectedContentLength - expected size, or -1 if unknown
      decompressIfNeeded - if true and the remote file is gzipped, will only check if the local file exists
      storeCompressed - if true and the remote file is *not* gzipped, will only check if the local file exists
      Throws:
      IOException
    • isTruncated

      protected boolean isTruncated(Path dest) throws IOException
      Throws:
      IOException