Class AbstractAnnDataSingleCellDataLoaderConfigurer
java.lang.Object
ubic.gemma.core.loader.expression.singleCell.AbstractAnnDataSingleCellDataLoaderConfigurer
- All Implemented Interfaces:
DataLoaderConfigurer<AnnDataSingleCellDataLoader, SingleCellDataLoaderConfig>, SingleCellDataLoaderConfigurer<AnnDataSingleCellDataLoader>
- Direct Known Subclasses:
AnnDataSingleCellDataLoaderConfigurer
public abstract class AbstractAnnDataSingleCellDataLoaderConfigurer
extends Object
implements SingleCellDataLoaderConfigurer<AnnDataSingleCellDataLoader>
Base class for
AnnDataSingleCellDataLoader configurers.
This base class provides capabilities for detecting data stored in various columns.
- Author:
- poirigui
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractAnnDataSingleCellDataLoaderConfigurer(Path annDataFile) -
Method Summary
Modifier and TypeMethodDescriptionAutomatically configure a loader for an AnnData file.protected StringgetUnknownCellTypeIndicator(Dataframe.Column<?, String> column) Extract the unknown cell type indicator from a set of values.protected booleanisCellIdColumn(Dataframe.Column<?, String> column) Check if the given dataframe column contains cell identifiers.protected booleanisCellTypeColumn(Dataframe.Column<?, String> column) Check if a given column contains cell types.protected booleanisGeneColumn(Dataframe.Column<?, String> column) Check if a given column contains gene identifiers.protected booleanisSampleNameColumn(Dataframe.Column<?, String> column) Check if a given dataframe column contains sample names.voidsetPythonExecutable(Path pythonExecutable) Set the path to a Python executable.voidsetScratchDir(Path scratchDir) Set the path to a scratch directory to use for on-disk transformations.
-
Field Details
-
CELL_ID_COLUMN_NAME_KEYWORDS
TODO
-
-
Constructor Details
-
AbstractAnnDataSingleCellDataLoaderConfigurer
-
-
Method Details
-
setPythonExecutable
Set the path to a Python executable. If null, no transformation will be performed on the AnnData file. -
setScratchDir
Set the path to a scratch directory to use for on-disk transformations. If null, no transformation will be performed on the AnnData file. -
configureLoader
Automatically configure a loader for an AnnData file.- Specified by:
configureLoaderin interfaceDataLoaderConfigurer<AnnDataSingleCellDataLoader, SingleCellDataLoaderConfig>
-
isCellIdColumn
Check if the given dataframe column contains cell identifiers. -
isSampleNameColumn
Check if a given dataframe column contains sample names. -
isCellTypeColumn
Check if a given column contains cell types. -
getUnknownCellTypeIndicator
Extract the unknown cell type indicator from a set of values. -
isGeneColumn
Check if a given column contains gene identifiers.
-