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 data 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:
-
Constructor Summary
ConstructorsConstructorDescriptionGenericMetadataSingleCellDataLoader(SingleCellDataLoader delegate, Path cellTypeMetadataFile, List<String> otherCellLevelCharacteristicsNames, Path otherCellCharacteristicsMetadataFile) -
Method Summary
Modifier and TypeMethodDescriptiongetCellTypeAssignments(SingleCellDimension singleCellDimension) Load single-cell type assignments present in the data.Load cell-level characteristics that are not cell type assignments present in the data.voidsetBioAssayToSampleNameMapper(BioAssayMapper bioAssayToSampleNameMapper) Set the strategy used for mappingBioAssayto sample names from the data.voidsetCellTypeAssignmentDescription(String cellTypeAssignmentDescription) voidsetCellTypeAssignmentName(String cellTypeAssignmentName) voidsetCellTypeAssignmentProtocol(Protocol cellTypeAssignmentProtocol) voidsetIgnoreUnmatchedCellIds(boolean ignoreUnmatchedCellIds) voidsetIgnoreUnmatchedSamples(boolean ignoreUnmatchedSamples) Ignore unmatched samples from the data.voidsetInferSamplesFromCellIdsOverlap(boolean inferSamplesFromCellIdsOverlap) voidsetUseCellIdsIfSampleNameIsMissing(boolean useCellIdsIfSampleNameIsMissing) Methods inherited from class ubic.gemma.core.loader.expression.singleCell.AbstractDelegatingSingleCellDataLoader
getSequencingMetadata, getSingleCellDimension, loadVectorsMethods inherited from class ubic.gemma.core.loader.expression.sequencing.AbstractDelegatingSequencingDataLoader
getSequencingMetadataMethods inherited from class ubic.gemma.core.loader.expression.AbstractDelegatingDataLoader
close, getFactors, getGenes, getQuantitationTypes, getSampleNames, getSamplesCharacteristics, setDesignElementToGeneMapper, setIgnoreUnmatchedDesignElementsMethods 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.DataLoader
close, getFactors, getGenes, getQuantitationTypes, getSampleNames, getSamplesCharacteristics, setDesignElementToGeneMapper, setIgnoreUnmatchedDesignElementsMethods inherited from interface ubic.gemma.core.loader.expression.sequencing.SequencingDataLoader
getSequencingMetadataMethods inherited from interface ubic.gemma.core.loader.expression.singleCell.SingleCellDataLoader
getSequencingMetadata, getSingleCellDimension, loadVectors
-
Constructor Details
-
GenericMetadataSingleCellDataLoader
-
-
Method Details
-
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:
setIgnoreUnmatchedSamplesin interfaceDataLoader- Overrides:
setIgnoreUnmatchedSamplesin classAbstractDelegatingDataLoader
-
setCellTypeAssignmentName
-
setCellTypeAssignmentDescription
-
setCellTypeAssignmentProtocol
-
setBioAssayToSampleNameMapper
Description copied from interface:DataLoaderSet the strategy used for mappingBioAssayto sample names from the data.- Specified by:
setBioAssayToSampleNameMapperin interfaceDataLoader- Overrides:
setBioAssayToSampleNameMapperin classAbstractDelegatingDataLoader
-
getCellTypeAssignments
public Set<CellTypeAssignment> getCellTypeAssignments(SingleCellDimension singleCellDimension) throws IOException Description copied from interface:SingleCellDataLoaderLoad single-cell type assignments present in the data.- Specified by:
getCellTypeAssignmentsin interfaceSingleCellDataLoader- Overrides:
getCellTypeAssignmentsin classAbstractDelegatingSingleCellDataLoader- Throws:
IOException
-
getOtherCellLevelCharacteristics
public Set<CellLevelCharacteristics> getOtherCellLevelCharacteristics(SingleCellDimension dimension) throws IOException Description copied from interface:SingleCellDataLoaderLoad cell-level characteristics that are not cell type assignments present in the data.- Specified by:
getOtherCellLevelCharacteristicsin interfaceSingleCellDataLoader- Overrides:
getOtherCellLevelCharacteristicsin classAbstractDelegatingSingleCellDataLoader- Throws:
IOException
-
setInferSamplesFromCellIdsOverlap
public void setInferSamplesFromCellIdsOverlap(boolean inferSamplesFromCellIdsOverlap) -
setUseCellIdsIfSampleNameIsMissing
public void setUseCellIdsIfSampleNameIsMissing(boolean useCellIdsIfSampleNameIsMissing) -
setIgnoreUnmatchedCellIds
public void setIgnoreUnmatchedCellIds(boolean ignoreUnmatchedCellIds)
-