Class AbstractDelegatingSingleCellDataLoader
java.lang.Object
ubic.gemma.core.loader.expression.AbstractDelegatingDataLoader
ubic.gemma.core.loader.expression.sequencing.AbstractDelegatingSequencingDataLoader
ubic.gemma.core.loader.expression.singleCell.AbstractDelegatingSingleCellDataLoader
- All Implemented Interfaces:
Closeable,AutoCloseable,DataLoader,SequencingDataLoader,SingleCellDataLoader
- Direct Known Subclasses:
GenericMetadataSingleCellDataLoader,SequencingMetadataFileSingleCellDataLoader
public abstract class AbstractDelegatingSingleCellDataLoader
extends AbstractDelegatingSequencingDataLoader
implements SingleCellDataLoader
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptiongetCellTypeAssignments(SingleCellDimension dimension) Load single-cell type assignments present in the data.Load cell-level characteristics that are not cell type assignments present in the data.getSequencingMetadata(SingleCellDimension dimension) getSingleCellDimension(Collection<BioAssay> bioAssays) Load the single-cell dimension present in the data.loadVectors(Collection<CompositeSequence> designElements, SingleCellDimension dimension, QuantitationType quantitationType) Produces a stream of single-cell expression data vectors for the givenQuantitationType.Methods 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, setBioAssayToSampleNameMapper, setDesignElementToGeneMapper, setIgnoreUnmatchedDesignElements, setIgnoreUnmatchedSamplesMethods 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, setBioAssayToSampleNameMapper, setDesignElementToGeneMapper, setIgnoreUnmatchedDesignElements, setIgnoreUnmatchedSamplesMethods inherited from interface ubic.gemma.core.loader.expression.sequencing.SequencingDataLoader
getSequencingMetadata
-
Constructor Details
-
AbstractDelegatingSingleCellDataLoader
-
-
Method Details
-
getSingleCellDimension
public SingleCellDimension getSingleCellDimension(Collection<BioAssay> bioAssays) throws IOException, IllegalArgumentException Description copied from interface:SingleCellDataLoaderLoad the single-cell dimension present in the data.Not all samples might be present and thus the returned
SingleCellDimensionwill have a expression data for a subset of the data.- Specified by:
getSingleCellDimensionin interfaceSingleCellDataLoader- Parameters:
bioAssays- a set of bioassays to use when populating the dimension, not all bioassays may be used- Throws:
IllegalArgumentException- if a sample present in the data cannot be matched to one of the suppliedBioAssay, ignored ifDataLoader.setIgnoreUnmatchedSamples(boolean)is set to true.IOException
-
getCellTypeAssignments
public Set<CellTypeAssignment> getCellTypeAssignments(SingleCellDimension dimension) throws IOException Description copied from interface:SingleCellDataLoaderLoad single-cell type assignments present in the data.- Specified by:
getCellTypeAssignmentsin interfaceSingleCellDataLoader- 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- Throws:
IOException
-
getSequencingMetadata
public Map<BioAssay,SequencingMetadata> getSequencingMetadata(SingleCellDimension dimension) throws IOException - Specified by:
getSequencingMetadatain interfaceSingleCellDataLoader- Throws:
IOException
-
loadVectors
public Stream<SingleCellExpressionDataVector> loadVectors(Collection<CompositeSequence> designElements, SingleCellDimension dimension, QuantitationType quantitationType) throws IOException, IllegalArgumentException Description copied from interface:SingleCellDataLoaderProduces a stream of single-cell expression data vectors for the givenQuantitationType.- Specified by:
loadVectorsin interfaceSingleCellDataLoader- Parameters:
designElements- a collection of design elements for mapping of element names used in the dataset toCompositeSequencedimension- a dimension to use for creating vectors, may be loaded from the single-cell data withSingleCellDataLoader.getSingleCellDimension(Collection)quantitationType- a quantitation type to extract from the data for, may be loaded from the single-cell data withDataLoader.getQuantitationTypes()- Returns:
- a stream of single-cell expression data vectors that must be closed when done, preferably using a try-with-resource block.
- Throws:
IllegalArgumentException- if a design element present in the data cannot be matched to one of the supplied elements, requires settingDataLoader.setIgnoreUnmatchedDesignElements(boolean)to falseIOException
-