Class SingleCellExpressionExperimentServiceImpl
- java.lang.Object
-
- ubic.gemma.persistence.service.expression.experiment.SingleCellExpressionExperimentServiceImpl
-
- All Implemented Interfaces:
SingleCellExpressionExperimentService
@Service public class SingleCellExpressionExperimentServiceImpl extends Object implements SingleCellExpressionExperimentService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ubic.gemma.persistence.service.expression.experiment.SingleCellExpressionExperimentService
SingleCellExpressionExperimentService.SingleCellDimensionInitializationConfig, SingleCellExpressionExperimentService.SingleCellVectorInitializationConfig
-
-
Constructor Summary
Constructors Constructor Description SingleCellExpressionExperimentServiceImpl()
-
Method Summary
-
-
-
Method Detail
-
loadWithSingleCellVectors
@Transactional(readOnly=true) public ExpressionExperiment loadWithSingleCellVectors(Long id)
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.
-
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 interfaceSingleCellExpressionExperimentServicedetails- additional details to include in the audit event- Returns:
- the number of vectors that were replaced
-
updateSparsityMetrics
@Transactional public void updateSparsityMetrics(ExpressionExperiment ee)
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- Returns:
-
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 interfaceSingleCellExpressionExperimentServicenewCellTypeLabels- 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.
-
removeCellTypeAssignmentByName
@Transactional public void removeCellTypeAssignmentByName(ExpressionExperiment ee, SingleCellDimension dimension, String name)
- Specified by:
removeCellTypeAssignmentByNamein 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
-
getCellTypeAssignmentProtocols
@Transactional(readOnly=true) public Collection<Protocol> 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
-
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
-
getCellLevelCharacteristics
@Transactional(readOnly=true) public List<CellLevelCharacteristics> getCellLevelCharacteristics(ExpressionExperiment ee)
- Specified by:
getCellLevelCharacteristicsin interfaceSingleCellExpressionExperimentService- See Also:
ExpressionExperimentDao.getCellLevelCharacteristics(ExpressionExperiment)
-
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
@Nullable @Transactional(readOnly=true) public CellLevelCharacteristics getCellLevelCharacteristics(ExpressionExperiment expressionExperiment, QuantitationType qt, Long id)
- Specified by:
getCellLevelCharacteristicsin interfaceSingleCellExpressionExperimentService
-
getCellLevelCharacteristics
@Nullable @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
-
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
@Transactional(readOnly=true) public List<Characteristic> getCellTypes(ExpressionExperiment ee)
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
public Optional<ExperimentalFactor> getCellTypeFactor(ExpressionExperiment ee)
Description copied from interface:SingleCellExpressionExperimentServiceObtain the cell type factor.- Specified by:
getCellTypeFactorin interfaceSingleCellExpressionExperimentService- Returns:
- a cell type factor, or null of none exist
-
recreateCellTypeFactor
@Transactional public ExperimentalFactor recreateCellTypeFactor(ExpressionExperiment ee)
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
-
-