Class AbstractSingleFileInSeriesSingleCellDetector
java.lang.Object
ubic.gemma.core.loader.expression.geo.singleCell.AbstractSingleCellDetector
ubic.gemma.core.loader.expression.geo.singleCell.AbstractSingleFileInSeriesSingleCellDetector
- All Implemented Interfaces:
SingleCellDetector
- Direct Known Subclasses:
AbstractSingleH5FileInSeriesSingleCellDetector, LoomSingleCellDetector
public abstract class AbstractSingleFileInSeriesSingleCellDetector
extends AbstractSingleCellDetector
Handle detection and download of single-cell data from a single file in the supplementary materials of a GEO series.
- Author:
- poirigui
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSingleFileInSeriesSingleCellDetector(String name, String extension) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanIndicate if the given supplementary file is accepted.downloadSingleCellData(GeoSample sample) Download single-cell data for the given GEO sample.downloadSingleCellData(GeoSeries series) Download single-cell data for the given GEO series.downloadSingleCellData(GeoSeries series, String file) Download a specific supplementary file at the series-level.Obtain a list of all additional supplementary files.Obtain a list of all additional supplementary files.protected PathObtain the download destination for the single-cell data file.booleanhasSingleCellData(GeoSample sample) Detection is not supported at the sample level.booleanhasSingleCellData(GeoSeries series) Indicate if the given GEO series has single-cell data.Methods inherited from class AbstractSingleCellDetector
existsAndHasExpectedSize, getDownloadDirectory, getProgressReporterFactory, getSizeInBytes, openSupplementaryFileAsStream, retry, setDownloadDirectory, setFTPClientFactory, setProgressReporterFactory, setRetryPolicyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SingleCellDetector
getSingleCellDataLoader
-
Constructor Details
-
AbstractSingleFileInSeriesSingleCellDetector
-
-
Method Details
-
accepts
Indicate if the given supplementary file is accepted.The default implementation checks if the file ends with the extension (or the extension +
.gz). -
getDest
-
hasSingleCellData
Description copied from interface:SingleCellDetectorIndicate if the given GEO series has single-cell data. -
hasSingleCellData
Detection is not supported at the sample level. -
downloadSingleCellData
public Path downloadSingleCellData(GeoSeries series) throws NoSingleCellDataFoundException, IOException Download single-cell data for the given GEO series.- Returns:
- a directory or file containing the downloaded series data
- Throws:
IllegalArgumentException- if more than one matching file is present in the supplementary files of the series, usedownloadSingleCellData(GeoSeries, String)as a workaround.NoSingleCellDataFoundException- if there is no single-cell data for the given seriesIOException
-
downloadSingleCellData
Download a specific supplementary file at the series-level.- Throws:
IllegalArgumentException- if the supplementary file is not present in the seriesIOException
-
downloadSingleCellData
Description copied from interface:SingleCellDetectorDownload single-cell data for the given GEO sample.- Returns:
- a directory or file containing the downloaded sample data
- Throws:
NoSingleCellDataFoundException- if there is no single-cell data for the given sample
-
getAdditionalSupplementaryFiles
Description copied from interface:SingleCellDetectorObtain a list of all additional supplementary files. -
getAdditionalSupplementaryFiles
Description copied from interface:SingleCellDetectorObtain a list of all additional supplementary files.
-