Interface CellXGeneDataLoaderService
- All Known Implementing Classes:
CellXGeneDataLoaderServiceImpl
public interface CellXGeneDataLoaderService
High-level service for fetching and loading CELLxGENE datasets.
- Author:
- poirigui
-
Method Summary
Modifier and TypeMethodDescriptionfetchAndLoad(String collectionId, String datasetId, String assetId, ArrayDesign platform, String datasetShortName, boolean loadSingleCellData, boolean keepPooledSample, boolean keepUnknownSample, boolean dryRun) Fetch a CELLxGENE dataset and load it into the database.voidsetProgressReporterFactory(ProgressReporterFactory progressReporterFactory) Set the progress reporter factory to use for reporting progress during data downloading.
-
Method Details
-
fetchAndLoad
ExpressionExperiment fetchAndLoad(String collectionId, @Nullable String datasetId, @Nullable String assetId, ArrayDesign platform, String datasetShortName, boolean loadSingleCellData, boolean keepPooledSample, boolean keepUnknownSample, boolean dryRun) throws IOException Fetch a CELLxGENE dataset and load it into the database.- Parameters:
datasetId- CELLxGENE dataset identifierassetId- CELLxGENE dataset asset identifierplatform- platform to use for mapping design elements from the data, the primary taxon must correspond to that of the dataset.datasetShortName- short name to use for the resulting datasetloadSingleCellData- whether to load the single-cell data vectors, this can be done later if neededkeepPooledSample- whether to keep the "pooled" samplekeepUnknownSample- whether to keep the "unknown" sample- Returns:
- a persistent
ExpressionExperimentpre-populated with CELLxGENE metadata and single-cell data (if requested) - Throws:
IllegalArgumentException- if a dataset with the given short name already exists in the database, or if the platform taxon does not match that of the CELLxGENE datasetIOException
-
setProgressReporterFactory
Set the progress reporter factory to use for reporting progress during data downloading.
-