Class AbstractSingleH5FileInSeriesSingleCellDetector
java.lang.Object
ubic.gemma.core.loader.expression.geo.singleCell.AbstractSingleCellDetector
ubic.gemma.core.loader.expression.geo.singleCell.AbstractSingleFileInSeriesSingleCellDetector
ubic.gemma.core.loader.expression.geo.singleCell.AbstractSingleH5FileInSeriesSingleCellDetector
- All Implemented Interfaces:
SingleCellDetector
- Direct Known Subclasses:
AnnDataDetector,SeuratDiskDetector
public abstract class AbstractSingleH5FileInSeriesSingleCellDetector
extends AbstractSingleFileInSeriesSingleCellDetector
- Author:
- poirigui
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSingleH5FileInSeriesSingleCellDetector(String name, String extension) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanexistsAndHasExpectedSize(Path dest, String remoteFile, long expectedContentLength, boolean decompressIfNeeded, boolean storeCompressed) Check if a file at a given destination exists and has the size of a remote file.protected booleanisTruncated(Path dest) Methods inherited from class ubic.gemma.core.loader.expression.geo.singleCell.AbstractSingleFileInSeriesSingleCellDetector
accepts, downloadSingleCellData, downloadSingleCellData, downloadSingleCellData, getAdditionalSupplementaryFiles, getAdditionalSupplementaryFiles, getDest, hasSingleCellData, hasSingleCellDataMethods inherited from class ubic.gemma.core.loader.expression.geo.singleCell.AbstractSingleCellDetector
getDownloadDirectory, getSizeInBytes, openSupplementaryFileAsStream, retry, setDownloadDirectory, setFTPClientFactory, setRetryPolicyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ubic.gemma.core.loader.expression.geo.singleCell.SingleCellDetector
getSingleCellDataLoader
-
Constructor Details
-
AbstractSingleH5FileInSeriesSingleCellDetector
-
-
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:
existsAndHasExpectedSizein classAbstractSingleCellDetector- Parameters:
dest- file at destinationremoteFile- filename at originexpectedContentLength- expected size, or -1 if unknowndecompressIfNeeded- if true and the remote file is gzipped, will only check if the local file existsstoreCompressed- if true and the remote file is *not* gzipped, will only check if the local file exists- Throws:
IOException
-
isTruncated
- Throws:
IOException
-