Class AbstractSingleH5FileInSeriesSingleCellDetector

    • Constructor Detail

      • AbstractSingleH5FileInSeriesSingleCellDetector

        protected AbstractSingleH5FileInSeriesSingleCellDetector​(String name,
                                                                 String extension)
    • Method Detail

      • 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