Class SingleCellExpressionExperimentServiceImpl
- All Implemented Interfaces:
SingleCellExpressionExperimentService
-
Nested Class Summary
Nested classes/interfaces inherited from interface ubic.gemma.persistence.service.expression.experiment.SingleCellExpressionExperimentService
SingleCellExpressionExperimentService.SingleCellDimensionInitializationConfig, SingleCellExpressionExperimentService.SingleCellVectorInitializationConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCellLevelCharacteristics(ExpressionExperiment ee, SingleCellDimension scd, CellLevelCharacteristics clc) Add new cell-level characteristics.addCellTypeAssignment(ExpressionExperiment ee, QuantitationType qt, SingleCellDimension dimension, CellTypeAssignment cta) intaddSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, Collection<SingleCellExpressionDataVector> vectors, String details) Add single-cell data vectors.getCellLevelCharacteristics(ExpressionExperiment ee, Category category) Obtain CLC for given category.getCellLevelCharacteristics(ExpressionExperiment expressionExperiment, QuantitationType qt) getCellLevelCharacteristics(ExpressionExperiment expressionExperiment, QuantitationType qt, Long id) Obtain a CLC by name.getCellLevelCharacteristicsWithoutIndices(ExpressionExperiment ee, QuantitationType qt, String clcName) getCellLevelMask(ExpressionExperiment expressionExperiment, QuantitationType qt) Obtain a mask if one is unambiguously defined for the given experiment and quantitation type.getCellTypeAssignment(ExpressionExperiment expressionExperiment, QuantitationType qt, Long ctaId) Obtain a cell type assignment by ID.getCellTypeAssignment(ExpressionExperiment expressionExperiment, QuantitationType qt, String ctaName) Obtain a cell type assignment by name.getCellTypeAssignmentByProtocol(ExpressionExperiment ee, QuantitationType qt, String protocolName) Obtain a cell type assignment by a protocol identifier.Obtain a collection of protocols used to assign cell types to single-cell vectors.Obtain all the cell type labellings from all single-cell vectors.getCellTypeAssignments(ExpressionExperiment expressionExperiment, QuantitationType qt) getCellTypeAssignmentWithoutIndices(ExpressionExperiment ee, QuantitationType qt, String ctaName) getCellTypeAt(ExpressionExperiment ee, QuantitationType qt, Long ctaId, int cellIndex) getCellTypeAt(ExpressionExperiment ee, QuantitationType qt, Long ctaId, int startIndex, int endIndexExclusive) getCellTypeAt(ExpressionExperiment ee, QuantitationType qt, String ctaName, int cellIndex) getCellTypeAt(ExpressionExperiment ee, QuantitationType qt, String ctaName, int startIndex, int endIndexExclusive) Obtain the cell type factor.Obtain the cell types of a given single-cell dataset.longgetNumberOfNonZeroesBySample(ExpressionExperiment ee, QuantitationType qt, int fetchSize, boolean useCursorFetchIfSupported) longObtain the number of single-cell vectors for a given quantitation type.Obtain the preferred cell type labelling from the preferred single-cell vectors.Obtain preferred single-cell vectors.Obtain the preferred single-cell dimension.Obtain the preferred single-cell dimension.Obtain the preferred single-cell dimension without its cell IDs.getPreferredSingleCellDimensionWithoutCellIds(ExpressionExperiment ee, SingleCellExpressionExperimentService.SingleCellDimensionInitializationConfig config) Obtain the preferred single-cell quantitation type.getSingleCellDataVectors(ExpressionExperiment ee, List<BioAssay> samples, QuantitationType quantitationType) Obtain single-cell vectors for a particular sample.getSingleCellDataVectors(ExpressionExperiment ee, List<BioAssay> samples, QuantitationType quantitationType, SingleCellExpressionExperimentService.SingleCellVectorInitializationConfig config) getSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType) Obtain single-cell vectors for a given quantitation type.getSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, SingleCellExpressionExperimentService.SingleCellVectorInitializationConfig config) getSingleCellDataVectorWithoutCellIds(ExpressionExperiment ee, QuantitationType quantitationType, CompositeSequence designElement) Obtain a single single-cell vector without initializing cell IDs.Obtain a single-cell dimension used for a given dataset and QT.Obtain all the single-cell dimensions used by a given dataset.getSingleCellDimensionsWithoutCellIds(ExpressionExperiment ee, SingleCellExpressionExperimentService.SingleCellDimensionInitializationConfig config) getSingleCellDimensionWithAssaysAndCellLevelCharacteristics(ExpressionExperiment ee, QuantitationType qt) Retrieve a single-cell dimension with its bioassays and cell-level characteristics initialized.getSingleCellDimensionWithoutCellIds(ExpressionExperiment ee, QuantitationType qt, SingleCellExpressionExperimentService.SingleCellDimensionInitializationConfig config) getSingleCellExpressionDataMatrix(ExpressionExperiment expressionExperiment, List<BioAssay> samples, QuantitationType quantitationType) Obtain a single-cell expression data matrix for the given quantitation type.getSingleCellExpressionDataMatrix(ExpressionExperiment expressionExperiment, QuantitationType quantitationType) Obtain a single-cell expression data matrix for the given quantitation type.Load an experiment with its single-cell data vectors initialized.Recreate the cell type factor based on the preferred labelling of the preferred single-cell vectors.relabelCellTypes(ExpressionExperiment ee, QuantitationType qt, SingleCellDimension dimension, List<String> newCellTypeLabels, Protocol protocol, String description) Relabel the cell types of an existing set of single-cell vectors.longlongvoidremoveCellLevelCharacteristics(ExpressionExperiment ee, QuantitationType qt, CellLevelCharacteristics clc) Remove existing cell-level characteristics by QT.voidremoveCellLevelCharacteristics(ExpressionExperiment ee, SingleCellDimension scd, CellLevelCharacteristics clc) Remove existing cell-level characteristics.voidremoveCellLevelCharacteristicsByName(ExpressionExperiment ee, SingleCellDimension dimension, String name) voidremoveCellTypeAssignment(ExpressionExperiment ee, QuantitationType qt, CellTypeAssignment cellTypeAssignment) Remove the given cell type assignment by QT.voidremoveCellTypeAssignment(ExpressionExperiment ee, SingleCellDimension dimension, CellTypeAssignment cellTypeAssignment) Remove the given cell type assignment.voidremoveCellTypeAssignmentByName(ExpressionExperiment ee, SingleCellDimension dimension, String name) intremoveSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType) Remove single-cell data vectors for the given quantitation type.intreplaceSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, Collection<SingleCellExpressionDataVector> vectors, String details) Replace existing single-cell data vectors for the given quantitation type.streamCellIds(ExpressionExperiment ee, boolean createNewSession) streamCellIds(ExpressionExperiment ee, QuantitationType qt, boolean createNewSession) streamCellLevelCharacteristics(ExpressionExperiment ee, CellLevelCharacteristics clc, boolean createNewSession) streamCellTypes(ExpressionExperiment ee, CellTypeAssignment cta, boolean createNewSession) streamSingleCellDataVectors(ExpressionExperiment ee, List<BioAssay> samples, QuantitationType quantitationType, int fetchSize, boolean useCursorFetchIfSupported, boolean createNewSession) streamSingleCellDataVectors(ExpressionExperiment ee, List<BioAssay> samples, QuantitationType quantitationType, int fetchSize, boolean useCursorFetchIfSupported, boolean createNewSession, SingleCellExpressionExperimentService.SingleCellVectorInitializationConfig config) streamSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, int fetchSize, boolean useCursorFetchIfSupported, boolean createNewSession) Obtain a stream over single-cell vectors for a given quantitation type.streamSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, int fetchSize, boolean useCursorFetchIfSupported, boolean createNewSession, SingleCellExpressionExperimentService.SingleCellVectorInitializationConfig config) voidUpdate the sparsity metrics.
-
Constructor Details
-
SingleCellExpressionExperimentServiceImpl
public SingleCellExpressionExperimentServiceImpl()
-
-
Method Details
-
loadWithSingleCellVectors
Description copied from interface:SingleCellExpressionExperimentServiceLoad an experiment with its single-cell data vectors initialized.The rest of the experiment is also initialized as per
ExpressionExperimentDao.thawLite(ExpressionExperiment).- Specified by:
loadWithSingleCellVectorsin interfaceSingleCellExpressionExperimentService
-
getSingleCellDataVectors
@Transactional(readOnly=true) public List<SingleCellExpressionDataVector> getSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType) Description copied from interface:SingleCellExpressionExperimentServiceObtain single-cell vectors for a given quantitation type.- Specified by:
getSingleCellDataVectorsin interfaceSingleCellExpressionExperimentService
-
getSingleCellDataVectors
@Transactional(readOnly=true) public Collection<SingleCellExpressionDataVector> getSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, SingleCellExpressionExperimentService.SingleCellVectorInitializationConfig config) - Specified by:
getSingleCellDataVectorsin interfaceSingleCellExpressionExperimentService
-
getSingleCellDataVectors
@Transactional(readOnly=true) public Collection<SingleCellExpressionDataVector> getSingleCellDataVectors(ExpressionExperiment ee, List<BioAssay> samples, QuantitationType quantitationType) Description copied from interface:SingleCellExpressionExperimentServiceObtain single-cell vectors for a particular sample.- Specified by:
getSingleCellDataVectorsin interfaceSingleCellExpressionExperimentService
-
getSingleCellDataVectors
@Transactional(readOnly=true) public Collection<SingleCellExpressionDataVector> getSingleCellDataVectors(ExpressionExperiment ee, List<BioAssay> samples, QuantitationType quantitationType, SingleCellExpressionExperimentService.SingleCellVectorInitializationConfig config) - Specified by:
getSingleCellDataVectorsin interfaceSingleCellExpressionExperimentService
-
streamSingleCellDataVectors
@Transactional(readOnly=true) public Stream<SingleCellExpressionDataVector> streamSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, int fetchSize, boolean useCursorFetchIfSupported, boolean createNewSession) Description copied from interface:SingleCellExpressionExperimentServiceObtain a stream over single-cell vectors for a given quantitation type.- Specified by:
streamSingleCellDataVectorsin interfaceSingleCellExpressionExperimentService
-
streamSingleCellDataVectors
@Transactional(readOnly=true) public Stream<SingleCellExpressionDataVector> streamSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, int fetchSize, boolean useCursorFetchIfSupported, boolean createNewSession, SingleCellExpressionExperimentService.SingleCellVectorInitializationConfig config) - Specified by:
streamSingleCellDataVectorsin interfaceSingleCellExpressionExperimentService
-
streamSingleCellDataVectors
@Transactional(readOnly=true) public Stream<SingleCellExpressionDataVector> streamSingleCellDataVectors(ExpressionExperiment ee, List<BioAssay> samples, QuantitationType quantitationType, int fetchSize, boolean useCursorFetchIfSupported, boolean createNewSession, SingleCellExpressionExperimentService.SingleCellVectorInitializationConfig config) - Specified by:
streamSingleCellDataVectorsin interfaceSingleCellExpressionExperimentService
-
streamSingleCellDataVectors
@Transactional(readOnly=true) public Stream<SingleCellExpressionDataVector> streamSingleCellDataVectors(ExpressionExperiment ee, List<BioAssay> samples, QuantitationType quantitationType, int fetchSize, boolean useCursorFetchIfSupported, boolean createNewSession) - Specified by:
streamSingleCellDataVectorsin interfaceSingleCellExpressionExperimentService
-
getSingleCellDataVectorWithoutCellIds
@Transactional(readOnly=true) public SingleCellExpressionDataVector getSingleCellDataVectorWithoutCellIds(ExpressionExperiment ee, QuantitationType quantitationType, CompositeSequence designElement) Description copied from interface:SingleCellExpressionExperimentServiceObtain a single single-cell vector without initializing cell IDs.- Specified by:
getSingleCellDataVectorWithoutCellIdsin interfaceSingleCellExpressionExperimentService- See Also:
-
getNumberOfSingleCellDataVectors
@Transactional(readOnly=true) public long getNumberOfSingleCellDataVectors(ExpressionExperiment ee, QuantitationType qt) Description copied from interface:SingleCellExpressionExperimentServiceObtain the number of single-cell vectors for a given quantitation type.- Specified by:
getNumberOfSingleCellDataVectorsin interfaceSingleCellExpressionExperimentService
-
getNumberOfNonZeroes
@Transactional(readOnly=true) public long getNumberOfNonZeroes(ExpressionExperiment ee, QuantitationType qt) - Specified by:
getNumberOfNonZeroesin interfaceSingleCellExpressionExperimentService
-
getNumberOfNonZeroesBySample
@Transactional(readOnly=true) public Map<BioAssay,Long> getNumberOfNonZeroesBySample(ExpressionExperiment ee, QuantitationType qt, int fetchSize, boolean useCursorFetchIfSupported) - Specified by:
getNumberOfNonZeroesBySamplein interfaceSingleCellExpressionExperimentService
-
getPreferredSingleCellDataVectors
@Transactional(readOnly=true) public Optional<Collection<SingleCellExpressionDataVector>> getPreferredSingleCellDataVectors(ExpressionExperiment ee) Description copied from interface:SingleCellExpressionExperimentServiceObtain preferred single-cell vectors.- Specified by:
getPreferredSingleCellDataVectorsin interfaceSingleCellExpressionExperimentService
-
getSingleCellQuantitationTypes
@Transactional(readOnly=true) public Collection<QuantitationType> getSingleCellQuantitationTypes(ExpressionExperiment ee) - Specified by:
getSingleCellQuantitationTypesin interfaceSingleCellExpressionExperimentService
-
getPreferredSingleCellQuantitationType
@Transactional(readOnly=true) public Optional<QuantitationType> getPreferredSingleCellQuantitationType(ExpressionExperiment ee) Description copied from interface:SingleCellExpressionExperimentServiceObtain the preferred single-cell quantitation type.- Specified by:
getPreferredSingleCellQuantitationTypein interfaceSingleCellExpressionExperimentService
-
getSingleCellExpressionDataMatrix
@Transactional(readOnly=true) public SingleCellExpressionDataMatrix<?> getSingleCellExpressionDataMatrix(ExpressionExperiment expressionExperiment, List<BioAssay> samples, QuantitationType quantitationType) Description copied from interface:SingleCellExpressionExperimentServiceObtain a single-cell expression data matrix for the given quantitation type.- Specified by:
getSingleCellExpressionDataMatrixin interfaceSingleCellExpressionExperimentService
-
getSingleCellExpressionDataMatrix
@Transactional(readOnly=true) public SingleCellExpressionDataMatrix<?> getSingleCellExpressionDataMatrix(ExpressionExperiment expressionExperiment, QuantitationType quantitationType) Description copied from interface:SingleCellExpressionExperimentServiceObtain a single-cell expression data matrix for the given quantitation type.- Specified by:
getSingleCellExpressionDataMatrixin interfaceSingleCellExpressionExperimentService
-
addSingleCellDataVectors
@Transactional public int addSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, Collection<SingleCellExpressionDataVector> vectors, @Nullable String details) Description copied from interface:SingleCellExpressionExperimentServiceAdd single-cell data vectors.- Specified by:
addSingleCellDataVectorsin interfaceSingleCellExpressionExperimentService- Returns:
- the number of vectors that were added
-
replaceSingleCellDataVectors
@Transactional public int replaceSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, Collection<SingleCellExpressionDataVector> vectors, @Nullable String details) Description copied from interface:SingleCellExpressionExperimentServiceReplace existing single-cell data vectors for the given quantitation type.- Specified by:
replaceSingleCellDataVectorsin interfaceSingleCellExpressionExperimentService- Parameters:
details- additional details to include in the audit event- Returns:
- the number of vectors that were replaced
-
updateSparsityMetrics
Description copied from interface:SingleCellExpressionExperimentServiceUpdate the sparsity metrics.If no preferred single-cell vectors are present, the sparsity metrics will be cleared.
- Specified by:
updateSparsityMetricsin interfaceSingleCellExpressionExperimentService
-
removeSingleCellDataVectors
@Transactional public int removeSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType) Description copied from interface:SingleCellExpressionExperimentServiceRemove single-cell data vectors for the given quantitation type.- Specified by:
removeSingleCellDataVectorsin interfaceSingleCellExpressionExperimentService- Returns:
- the number of vectors that were removed
-
getSingleCellDimensionWithCellLevelCharacteristics
@Transactional(readOnly=true) public SingleCellDimension getSingleCellDimensionWithCellLevelCharacteristics(ExpressionExperiment ee, QuantitationType qt) - Specified by:
getSingleCellDimensionWithCellLevelCharacteristicsin interfaceSingleCellExpressionExperimentService
-
getSingleCellDimensionWithAssaysAndCellLevelCharacteristics
@Transactional(readOnly=true) public SingleCellDimension getSingleCellDimensionWithAssaysAndCellLevelCharacteristics(ExpressionExperiment ee, QuantitationType qt) Description copied from interface:SingleCellExpressionExperimentServiceRetrieve a single-cell dimension with its bioassays and cell-level characteristics initialized.- Specified by:
getSingleCellDimensionWithAssaysAndCellLevelCharacteristicsin interfaceSingleCellExpressionExperimentService
-
getSingleCellDimensionWithoutCellIds
@Transactional(readOnly=true) public SingleCellDimension getSingleCellDimensionWithoutCellIds(ExpressionExperiment ee, QuantitationType qt, SingleCellExpressionExperimentService.SingleCellDimensionInitializationConfig config) - Specified by:
getSingleCellDimensionWithoutCellIdsin interfaceSingleCellExpressionExperimentService
-
getSingleCellDimensions
@Transactional(readOnly=true) public List<SingleCellDimension> getSingleCellDimensions(ExpressionExperiment ee) Description copied from interface:SingleCellExpressionExperimentServiceObtain all the single-cell dimensions used by a given dataset.- Specified by:
getSingleCellDimensionsin interfaceSingleCellExpressionExperimentService
-
getSingleCellDimensionsWithoutCellIds
@Transactional(readOnly=true) public List<SingleCellDimension> getSingleCellDimensionsWithoutCellIds(ExpressionExperiment ee) - Specified by:
getSingleCellDimensionsWithoutCellIdsin interfaceSingleCellExpressionExperimentService
-
getSingleCellDimensionsWithoutCellIds
@Transactional(readOnly=true) public List<SingleCellDimension> getSingleCellDimensionsWithoutCellIds(ExpressionExperiment ee, SingleCellExpressionExperimentService.SingleCellDimensionInitializationConfig config) - Specified by:
getSingleCellDimensionsWithoutCellIdsin interfaceSingleCellExpressionExperimentService
-
getSingleCellDimension
@Transactional(readOnly=true) public SingleCellDimension getSingleCellDimension(ExpressionExperiment ee, QuantitationType qt) Description copied from interface:SingleCellExpressionExperimentServiceObtain a single-cell dimension used for a given dataset and QT.- Specified by:
getSingleCellDimensionin interfaceSingleCellExpressionExperimentService
-
getSingleCellDimensionWithoutCellIds
@Transactional(readOnly=true) public SingleCellDimension getSingleCellDimensionWithoutCellIds(ExpressionExperiment ee, QuantitationType qt) - Specified by:
getSingleCellDimensionWithoutCellIdsin interfaceSingleCellExpressionExperimentService
-
getPreferredSingleCellDimension
@Transactional(readOnly=true) public Optional<SingleCellDimension> getPreferredSingleCellDimension(ExpressionExperiment ee) Description copied from interface:SingleCellExpressionExperimentServiceObtain the preferred single-cell dimension.Cell type assignments and other cell-level characteristics are eagerly initialized.
- Specified by:
getPreferredSingleCellDimensionin interfaceSingleCellExpressionExperimentService
-
getPreferredSingleCellDimensionWithoutCellIds
@Transactional(readOnly=true) public Optional<SingleCellDimension> getPreferredSingleCellDimensionWithoutCellIds(ExpressionExperiment ee) Description copied from interface:SingleCellExpressionExperimentServiceObtain the preferred single-cell dimension without its cell IDs.The returned object is not persistent since it's a projection.
- Specified by:
getPreferredSingleCellDimensionWithoutCellIdsin interfaceSingleCellExpressionExperimentService
-
getPreferredSingleCellDimensionWithoutCellIds
@Transactional(readOnly=true) public Optional<SingleCellDimension> getPreferredSingleCellDimensionWithoutCellIds(ExpressionExperiment ee, SingleCellExpressionExperimentService.SingleCellDimensionInitializationConfig config) - Specified by:
getPreferredSingleCellDimensionWithoutCellIdsin interfaceSingleCellExpressionExperimentService
-
getPreferredSingleCellDimensionWithCellLevelCharacteristics
@Transactional(readOnly=true) public Optional<SingleCellDimension> getPreferredSingleCellDimensionWithCellLevelCharacteristics(ExpressionExperiment ee) Description copied from interface:SingleCellExpressionExperimentServiceObtain the preferred single-cell dimension.Cell type assignments and other cell-level characteristics are eagerly initialized.
- Specified by:
getPreferredSingleCellDimensionWithCellLevelCharacteristicsin interfaceSingleCellExpressionExperimentService
-
streamCellIds
@Transactional(readOnly=true) public Optional<Stream<String>> streamCellIds(ExpressionExperiment ee, boolean createNewSession) - Specified by:
streamCellIdsin interfaceSingleCellExpressionExperimentService
-
streamCellIds
@Transactional(readOnly=true) public Stream<String> streamCellIds(ExpressionExperiment ee, QuantitationType qt, boolean createNewSession) - Specified by:
streamCellIdsin interfaceSingleCellExpressionExperimentService
-
streamCellTypes
@Transactional(readOnly=true) public Stream<Characteristic> streamCellTypes(ExpressionExperiment ee, CellTypeAssignment cta, boolean createNewSession) - Specified by:
streamCellTypesin interfaceSingleCellExpressionExperimentService
-
getCellTypeAt
@Transactional(readOnly=true) public Characteristic getCellTypeAt(ExpressionExperiment ee, QuantitationType qt, Long ctaId, int cellIndex) - Specified by:
getCellTypeAtin interfaceSingleCellExpressionExperimentService
-
getCellTypeAt
@Transactional(readOnly=true) public Characteristic[] getCellTypeAt(ExpressionExperiment ee, QuantitationType qt, Long ctaId, int startIndex, int endIndexExclusive) - Specified by:
getCellTypeAtin interfaceSingleCellExpressionExperimentService
-
getCellTypeAt
@Transactional(readOnly=true) public Characteristic getCellTypeAt(ExpressionExperiment ee, QuantitationType qt, String ctaName, int cellIndex) - Specified by:
getCellTypeAtin interfaceSingleCellExpressionExperimentService
-
getCellTypeAt
@Transactional(readOnly=true) public Characteristic[] getCellTypeAt(ExpressionExperiment ee, QuantitationType qt, String ctaName, int startIndex, int endIndexExclusive) - Specified by:
getCellTypeAtin interfaceSingleCellExpressionExperimentService
-
getCellLevelCharacteristicsCategory
@Transactional(readOnly=true) public Category getCellLevelCharacteristicsCategory(ExpressionExperiment ee, CellLevelCharacteristics clc) - Specified by:
getCellLevelCharacteristicsCategoryin interfaceSingleCellExpressionExperimentService
-
streamCellLevelCharacteristics
@Transactional(readOnly=true) public Stream<Characteristic> streamCellLevelCharacteristics(ExpressionExperiment ee, CellLevelCharacteristics clc, boolean createNewSession) - Specified by:
streamCellLevelCharacteristicsin interfaceSingleCellExpressionExperimentService
-
relabelCellTypes
@Transactional public CellTypeAssignment relabelCellTypes(ExpressionExperiment ee, QuantitationType qt, SingleCellDimension dimension, List<String> newCellTypeLabels, @Nullable Protocol protocol, @Nullable String description) Description copied from interface:SingleCellExpressionExperimentServiceRelabel the cell types of an existing set of single-cell vectors.- Specified by:
relabelCellTypesin interfaceSingleCellExpressionExperimentService- Parameters:
newCellTypeLabels- the new cell types labels, must match the number of cellsprotocol- the protocol used to generate the new labelling, or null if unknown- Returns:
- a new, preferred cell type labelling
-
addCellTypeAssignment
@Transactional public CellTypeAssignment addCellTypeAssignment(ExpressionExperiment ee, QuantitationType qt, SingleCellDimension dimension, CellTypeAssignment cta) - Specified by:
addCellTypeAssignmentin interfaceSingleCellExpressionExperimentService
-
removeCellTypeAssignment
@Transactional public void removeCellTypeAssignment(ExpressionExperiment ee, SingleCellDimension dimension, CellTypeAssignment cellTypeAssignment) Description copied from interface:SingleCellExpressionExperimentServiceRemove the given cell type assignment.If the cell type labelling is preferred and applies to the preferred vectors as per
SingleCellExpressionExperimentService.getPreferredCellTypeAssignment(ExpressionExperiment), the cell type factor will be removed.- Specified by:
removeCellTypeAssignmentin interfaceSingleCellExpressionExperimentService
-
removeCellTypeAssignment
@Transactional public void removeCellTypeAssignment(ExpressionExperiment ee, QuantitationType qt, CellTypeAssignment cellTypeAssignment) Description copied from interface:SingleCellExpressionExperimentServiceRemove the given cell type assignment by QT.- Specified by:
removeCellTypeAssignmentin interfaceSingleCellExpressionExperimentService- See Also:
-
removeCellTypeAssignmentByName
@Transactional public void removeCellTypeAssignmentByName(ExpressionExperiment ee, SingleCellDimension dimension, String name) - Specified by:
removeCellTypeAssignmentByNamein interfaceSingleCellExpressionExperimentService
-
removeAllCellTypeAssignments
@Transactional public long removeAllCellTypeAssignments(ExpressionExperiment ee, QuantitationType qt) - Specified by:
removeAllCellTypeAssignmentsin interfaceSingleCellExpressionExperimentService
-
getCellTypeAssignments
@Transactional(readOnly=true) public List<CellTypeAssignment> getCellTypeAssignments(ExpressionExperiment ee) Description copied from interface:SingleCellExpressionExperimentServiceObtain all the cell type labellings from all single-cell vectors.- Specified by:
getCellTypeAssignmentsin interfaceSingleCellExpressionExperimentService
-
getCellTypeAssignments
@Transactional(readOnly=true) public List<CellTypeAssignment> getCellTypeAssignments(ExpressionExperiment expressionExperiment, QuantitationType qt) - Specified by:
getCellTypeAssignmentsin interfaceSingleCellExpressionExperimentService
-
getCellTypeAssignment
@Transactional(readOnly=true) public CellTypeAssignment getCellTypeAssignment(ExpressionExperiment expressionExperiment, QuantitationType qt, Long ctaId) Description copied from interface:SingleCellExpressionExperimentServiceObtain a cell type assignment by ID.- Specified by:
getCellTypeAssignmentin interfaceSingleCellExpressionExperimentService- Returns:
- that cell type assignmente, or null if none is found
-
getCellTypeAssignment
@Transactional(readOnly=true) public CellTypeAssignment getCellTypeAssignment(ExpressionExperiment expressionExperiment, QuantitationType qt, String ctaName) Description copied from interface:SingleCellExpressionExperimentServiceObtain a cell type assignment by name.- Specified by:
getCellTypeAssignmentin interfaceSingleCellExpressionExperimentService- Returns:
- that cell type assignmente, or null if none is found
-
getCellTypeAssignmentWithoutIndices
@Transactional(readOnly=true) public CellTypeAssignment getCellTypeAssignmentWithoutIndices(ExpressionExperiment ee, QuantitationType qt, Long ctaId) - Specified by:
getCellTypeAssignmentWithoutIndicesin interfaceSingleCellExpressionExperimentService
-
getCellTypeAssignmentWithoutIndices
@Transactional(readOnly=true) public CellTypeAssignment getCellTypeAssignmentWithoutIndices(ExpressionExperiment ee, QuantitationType qt, String ctaName) - Specified by:
getCellTypeAssignmentWithoutIndicesin interfaceSingleCellExpressionExperimentService
-
getCellTypeAssignmentsWithoutIndices
@Transactional(readOnly=true) public Collection<CellTypeAssignment> getCellTypeAssignmentsWithoutIndices(ExpressionExperiment ee, QuantitationType qt) - Specified by:
getCellTypeAssignmentsWithoutIndicesin interfaceSingleCellExpressionExperimentService
-
getCellTypeAssignmentProtocols
Description copied from interface:SingleCellExpressionExperimentServiceObtain a collection of protocols used to assign cell types to single-cell vectors.- Specified by:
getCellTypeAssignmentProtocolsin interfaceSingleCellExpressionExperimentService
-
getCellTypeAssignmentByProtocol
@Transactional(readOnly=true) public Collection<CellTypeAssignment> getCellTypeAssignmentByProtocol(ExpressionExperiment ee, QuantitationType qt, String protocolName) Description copied from interface:SingleCellExpressionExperimentServiceObtain a cell type assignment by a protocol identifier.- Specified by:
getCellTypeAssignmentByProtocolin interfaceSingleCellExpressionExperimentService
-
getPreferredCellTypeAssignment
@Transactional(readOnly=true) public Optional<CellTypeAssignment> getPreferredCellTypeAssignment(ExpressionExperiment ee) Description copied from interface:SingleCellExpressionExperimentServiceObtain the preferred cell type labelling from the preferred single-cell vectors.- Specified by:
getPreferredCellTypeAssignmentin interfaceSingleCellExpressionExperimentService
-
getPreferredCellTypeAssignment
@Transactional(readOnly=true) public Optional<CellTypeAssignment> getPreferredCellTypeAssignment(ExpressionExperiment ee, QuantitationType qt) - Specified by:
getPreferredCellTypeAssignmentin interfaceSingleCellExpressionExperimentService
-
getPreferredCellTypeAssignmentWithoutIndices
@Transactional(readOnly=true) public Optional<CellTypeAssignment> getPreferredCellTypeAssignmentWithoutIndices(ExpressionExperiment ee, QuantitationType qt) - Specified by:
getPreferredCellTypeAssignmentWithoutIndicesin interfaceSingleCellExpressionExperimentService
-
addCellLevelCharacteristics
@Transactional public CellLevelCharacteristics addCellLevelCharacteristics(ExpressionExperiment ee, SingleCellDimension scd, CellLevelCharacteristics clc) Description copied from interface:SingleCellExpressionExperimentServiceAdd new cell-level characteristics.- Specified by:
addCellLevelCharacteristicsin interfaceSingleCellExpressionExperimentService
-
removeCellLevelCharacteristics
@Transactional public void removeCellLevelCharacteristics(ExpressionExperiment ee, SingleCellDimension scd, CellLevelCharacteristics clc) Description copied from interface:SingleCellExpressionExperimentServiceRemove existing cell-level characteristics.- Specified by:
removeCellLevelCharacteristicsin interfaceSingleCellExpressionExperimentService
-
removeCellLevelCharacteristics
@Transactional public void removeCellLevelCharacteristics(ExpressionExperiment ee, QuantitationType qt, CellLevelCharacteristics clc) Description copied from interface:SingleCellExpressionExperimentServiceRemove existing cell-level characteristics by QT.- Specified by:
removeCellLevelCharacteristicsin interfaceSingleCellExpressionExperimentService
-
removeCellLevelCharacteristicsByName
@Transactional public void removeCellLevelCharacteristicsByName(ExpressionExperiment ee, SingleCellDimension dimension, String name) - Specified by:
removeCellLevelCharacteristicsByNamein interfaceSingleCellExpressionExperimentService
-
removeAllCellLevelCharacteristics
@Transactional public long removeAllCellLevelCharacteristics(ExpressionExperiment ee, QuantitationType qt) - Specified by:
removeAllCellLevelCharacteristicsin interfaceSingleCellExpressionExperimentService
-
getCellLevelCharacteristics
@Transactional(readOnly=true) public List<CellLevelCharacteristics> getCellLevelCharacteristics(ExpressionExperiment ee) - Specified by:
getCellLevelCharacteristicsin interfaceSingleCellExpressionExperimentService- See Also:
-
getCellLevelCharacteristics
@Transactional(readOnly=true) public List<CellLevelCharacteristics> getCellLevelCharacteristics(ExpressionExperiment ee, Category category) Description copied from interface:SingleCellExpressionExperimentServiceObtain CLC for given category.- Specified by:
getCellLevelCharacteristicsin interfaceSingleCellExpressionExperimentService
-
getCellLevelCharacteristics
@Transactional(readOnly=true) public CellLevelCharacteristics getCellLevelCharacteristics(ExpressionExperiment expressionExperiment, QuantitationType qt, Long id) - Specified by:
getCellLevelCharacteristicsin interfaceSingleCellExpressionExperimentService
-
getCellLevelCharacteristics
@Transactional(readOnly=true) public CellLevelCharacteristics getCellLevelCharacteristics(ExpressionExperiment ee, QuantitationType qt, String name) Description copied from interface:SingleCellExpressionExperimentServiceObtain a CLC by name.- Specified by:
getCellLevelCharacteristicsin interfaceSingleCellExpressionExperimentService
-
getCellLevelCharacteristics
@Transactional(readOnly=true) public List<CellLevelCharacteristics> getCellLevelCharacteristics(ExpressionExperiment expressionExperiment, QuantitationType qt) - Specified by:
getCellLevelCharacteristicsin interfaceSingleCellExpressionExperimentService
-
getCellLevelCharacteristicsWithoutIndices
@Transactional(readOnly=true) public CellLevelCharacteristics getCellLevelCharacteristicsWithoutIndices(ExpressionExperiment ee, QuantitationType qt, Long clcId) - Specified by:
getCellLevelCharacteristicsWithoutIndicesin interfaceSingleCellExpressionExperimentService
-
getCellLevelCharacteristicsWithoutIndices
@Transactional(readOnly=true) public CellLevelCharacteristics getCellLevelCharacteristicsWithoutIndices(ExpressionExperiment ee, QuantitationType qt, String clcName) - Specified by:
getCellLevelCharacteristicsWithoutIndicesin interfaceSingleCellExpressionExperimentService
-
getCellLevelCharacteristicsWithoutIndices
@Transactional(readOnly=true) public Collection<CellLevelCharacteristics> getCellLevelCharacteristicsWithoutIndices(ExpressionExperiment ee, QuantitationType qt) - Specified by:
getCellLevelCharacteristicsWithoutIndicesin interfaceSingleCellExpressionExperimentService
-
getCellLevelMask
@Transactional(readOnly=true) public Optional<CellLevelCharacteristics> getCellLevelMask(ExpressionExperiment expressionExperiment, QuantitationType qt) Description copied from interface:SingleCellExpressionExperimentServiceObtain a mask if one is unambiguously defined for the given experiment and quantitation type.- Specified by:
getCellLevelMaskin interfaceSingleCellExpressionExperimentService
-
getCellTypes
Description copied from interface:SingleCellExpressionExperimentServiceObtain the cell types of a given single-cell dataset.Only the cell types applicable to the preferred single-cell vectors and labelling are returned.
- Specified by:
getCellTypesin interfaceSingleCellExpressionExperimentService
-
getCellTypeFactor
Description copied from interface:SingleCellExpressionExperimentServiceObtain the cell type factor.- Specified by:
getCellTypeFactorin interfaceSingleCellExpressionExperimentService- Returns:
- a cell type factor, or null of none exist
-
recreateCellTypeFactor
Description copied from interface:SingleCellExpressionExperimentServiceRecreate the cell type factor based on the preferred labelling of the preferred single-cell vectors.Analyses involving the factor are removed and samples mentioning the factor values are updated as per
ExperimentalFactorService.remove(ExperimentalFactor).- Specified by:
recreateCellTypeFactorin interfaceSingleCellExpressionExperimentService- Returns:
- the created cell type factor
-