Class GenericMetadataSingleCellDataLoader
- java.lang.Object
-
- ubic.gemma.core.loader.expression.AbstractDelegatingDataLoader
-
- ubic.gemma.core.loader.expression.sequencing.AbstractDelegatingSequencingDataLoader
-
- ubic.gemma.core.loader.expression.singleCell.AbstractDelegatingSingleCellDataLoader
-
- ubic.gemma.core.loader.expression.singleCell.metadata.GenericMetadataSingleCellDataLoader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,DataLoader
,SequencingDataLoader
,SingleCellDataLoader
public class GenericMetadataSingleCellDataLoader extends AbstractDelegatingSingleCellDataLoader implements SingleCellDataLoader
A generic loader that can be used to load single cell with a tabular metadata file.This loader supports cell type assignments and generic cell-level characteristics and fallback to a delegate if the corresponding path is unset.
- Author:
- poirigui
- See Also:
CellTypeAssignmentMetadataParser
,GenericCellLevelCharacteristicsMetadataParser
-
-
Constructor Summary
Constructors Constructor Description GenericMetadataSingleCellDataLoader(SingleCellDataLoader delegate, Path cellTypeMetadataFile, Path otherCellCharacteristicsMetadataFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<CellTypeAssignment>
getCellTypeAssignments(SingleCellDimension singleCellDimension)
Load single-cell type assignments present in the data.Set<CellLevelCharacteristics>
getOtherCellLevelCharacteristics(SingleCellDimension dimension)
Load cell-level characteristics that are not cell type assignments present in the data.void
setBioAssayToSampleNameMapper(BioAssayMapper bioAssayToSampleNameMapper)
Set the strategy used for mappingBioAssay
to sample names from the data.void
setCellTypeAssignmentName(String cellTypeAssignmentName)
void
setCellTypeAssignmentProtocol(Protocol cellTypeAssignmentProtocol)
void
setIgnoreUnmatchedSamples(boolean ignoreUnmatchedSamples)
Ignore unmatched samples from the data.-
Methods inherited from class ubic.gemma.core.loader.expression.singleCell.AbstractDelegatingSingleCellDataLoader
getSequencingMetadata, getSingleCellDimension, loadVectors
-
Methods inherited from class ubic.gemma.core.loader.expression.sequencing.AbstractDelegatingSequencingDataLoader
getSequencingMetadata
-
Methods inherited from class ubic.gemma.core.loader.expression.AbstractDelegatingDataLoader
close, getFactors, getGenes, getQuantitationTypes, getSampleNames, getSamplesCharacteristics, setDesignElementToGeneMapper, setIgnoreUnmatchedDesignElements
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ubic.gemma.core.loader.expression.DataLoader
close, getFactors, getGenes, getQuantitationTypes, getSampleNames, getSamplesCharacteristics, setDesignElementToGeneMapper, setIgnoreUnmatchedDesignElements
-
Methods inherited from interface ubic.gemma.core.loader.expression.sequencing.SequencingDataLoader
getSequencingMetadata
-
Methods inherited from interface ubic.gemma.core.loader.expression.singleCell.SingleCellDataLoader
getSequencingMetadata, getSingleCellDimension, loadVectors
-
-
-
-
Constructor Detail
-
GenericMetadataSingleCellDataLoader
public GenericMetadataSingleCellDataLoader(SingleCellDataLoader delegate, @Nullable Path cellTypeMetadataFile, @Nullable Path otherCellCharacteristicsMetadataFile)
-
-
Method Detail
-
setIgnoreUnmatchedSamples
public void setIgnoreUnmatchedSamples(boolean ignoreUnmatchedSamples)
Ignore unmatched samples from the data.This defaults to true.
In addition, unmatched samples when parsing cell type assignment and other cell-level characteristics files will be ignored.
- Specified by:
setIgnoreUnmatchedSamples
in interfaceDataLoader
- Overrides:
setIgnoreUnmatchedSamples
in classAbstractDelegatingDataLoader
-
setCellTypeAssignmentName
public void setCellTypeAssignmentName(String cellTypeAssignmentName)
-
setCellTypeAssignmentProtocol
public void setCellTypeAssignmentProtocol(@Nullable Protocol cellTypeAssignmentProtocol)
-
setBioAssayToSampleNameMapper
public void setBioAssayToSampleNameMapper(BioAssayMapper bioAssayToSampleNameMapper)
Description copied from interface:DataLoader
Set the strategy used for mappingBioAssay
to sample names from the data.- Specified by:
setBioAssayToSampleNameMapper
in interfaceDataLoader
- Overrides:
setBioAssayToSampleNameMapper
in classAbstractDelegatingDataLoader
-
getCellTypeAssignments
public Set<CellTypeAssignment> getCellTypeAssignments(SingleCellDimension singleCellDimension) throws IOException
Description copied from interface:SingleCellDataLoader
Load single-cell type assignments present in the data.- Specified by:
getCellTypeAssignments
in interfaceSingleCellDataLoader
- Overrides:
getCellTypeAssignments
in classAbstractDelegatingSingleCellDataLoader
- Throws:
IOException
-
getOtherCellLevelCharacteristics
public Set<CellLevelCharacteristics> getOtherCellLevelCharacteristics(SingleCellDimension dimension) throws IOException
Description copied from interface:SingleCellDataLoader
Load cell-level characteristics that are not cell type assignments present in the data.- Specified by:
getOtherCellLevelCharacteristics
in interfaceSingleCellDataLoader
- Overrides:
getOtherCellLevelCharacteristics
in classAbstractDelegatingSingleCellDataLoader
- Throws:
IOException
-
-