Interface SingleCellExpressionExperimentService
- All Known Implementing Classes:
SingleCellExpressionExperimentServiceImpl
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionaddCellLevelCharacteristics(ExpressionExperiment ee, SingleCellDimension scd, CellLevelCharacteristics clc) Add new cell-level characteristics.addCellTypeAssignment(ExpressionExperiment ee, QuantitationType qt, SingleCellDimension dimension, CellTypeAssignment cellTypeAssignment, boolean recreateCellTypeFactorIfNecessary, boolean ignoreCompatibleFactor) intaddSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, Collection<SingleCellExpressionDataVector> vectors, String details, boolean recrateCellTypeFactorIfNecessary, boolean ignoreCompatibleFactor) Add single-cell data vectors.intaddSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, SingleCellDimension scd, Stream<SingleCellExpressionDataVector> vectors, String details, boolean recrateCellTypeFactorIfNecessary, boolean ignoreCompatibleFactor) Add single-cell data vectors, use streaming to load SingleCellExpressionDataVectors (addSingleCellDataVectors(ubic.gemma.model.expression.experiment.ExpressionExperiment, ubic.gemma.model.common.quantitationtype.QuantitationType, java.util.Collection<ubic.gemma.model.expression.bioAssayData.SingleCellExpressionDataVector>, java.lang.String, boolean, boolean)) Streaming variant ofaddSingleCellDataVectors(ubic.gemma.model.expression.experiment.ExpressionExperiment, ubic.gemma.model.common.quantitationtype.QuantitationType, java.util.Collection<ubic.gemma.model.expression.bioAssayData.SingleCellExpressionDataVector>, java.lang.String, boolean, boolean)that avoids materializing all vectors in memory.changePreferredCellTypeAssignment(ExpressionExperiment ee, QuantitationType quantitationType, CellTypeAssignment newPreferredCta, boolean recreateCellTypeFactorIfNecessary, boolean ignoreCompatibleFactor) changePreferredCellTypeAssignment(ExpressionExperiment ee, SingleCellDimension dimension, CellTypeAssignment newPreferredCta, boolean recreateCellTypeFactorIfNecessary, boolean ignoreCompatibleFactor) Change the preferred cell type assignment to the given one.clearPreferredCellTypeAssignment(ExpressionExperiment ee, QuantitationType quantitationType) Clear the preferred cell type assignment.createCellTypeFactor(ExpressionExperiment ee, boolean removeExistingIfNecessary, boolean ignoreCompatibleFactor) Recreate the cell type factor based on the preferred cell type assignment of the preferred single-cell 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 singleCellDimensionInitializationConfig) 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.getSingleCellDimensionByIdWithoutCellIds(ExpressionExperiment expressionExperiment, Long id, SingleCellExpressionExperimentService.SingleCellDimensionInitializationConfig config) Obtain all the single-cell dimensions used by a given dataset.getSingleCellDimensionsWithoutCellIds(ExpressionExperiment ee, SingleCellExpressionExperimentService.SingleCellDimensionInitializationConfig singleCellDimensionInitializationConfig) 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 singleCellDimensionInitializationConfig) 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.getSingleCellQuantitationTypesBySingleCellDimensionWithoutCellIds(ExpressionExperiment ee, SingleCellExpressionExperimentService.SingleCellDimensionInitializationConfig config) Obtain the single-cell quantitation types by single-cell dimension.Load an experiment with its single-cell data vectors initialized.relabelCellTypes(ExpressionExperiment ee, QuantitationType qt, SingleCellDimension dimension, List<String> newCellTypeLabels, Protocol labellingProtocol, String description, boolean recreateCellTypeFactorIfNecessary, boolean ignoreCompatibleFactor) 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.voidvoidremoveCellLevelCharacteristicsById(ExpressionExperiment ee, SingleCellDimension dimension, Long clcId) booleanremoveCellLevelCharacteristicsByName(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 scd, CellTypeAssignment cellTypeAssignment) Remove the given cell type assignment.voidremoveCellTypeAssignmentById(ExpressionExperiment ee, Long ctaId) voidremoveCellTypeAssignmentById(ExpressionExperiment ee, SingleCellDimension dimension, Long ctaId) booleanremoveCellTypeAssignmentByName(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, boolean recreateCellTypeFactorIfNecessary, boolean ignoreCompatibleFactor) 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.
-
Method Details
-
loadWithSingleCellVectors
@Nullable @Secured({"GROUP_USER","AFTER_ACL_READ"}) ExpressionExperiment loadWithSingleCellVectors(Long id) Load an experiment with its single-cell data vectors initialized.The rest of the experiment is also initialized as per
ExpressionExperimentDao.thawLite(ExpressionExperiment). -
getSingleCellQuantitationTypes
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Collection<QuantitationType> getSingleCellQuantitationTypes(ExpressionExperiment ee) -
getPreferredSingleCellQuantitationType
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Optional<QuantitationType> getPreferredSingleCellQuantitationType(ExpressionExperiment ee) Obtain the preferred single-cell quantitation type. -
getSingleCellQuantitationTypesBySingleCellDimensionWithoutCellIds
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Map<SingleCellDimension,Set<QuantitationType>> getSingleCellQuantitationTypesBySingleCellDimensionWithoutCellIds(ExpressionExperiment ee, SingleCellExpressionExperimentService.SingleCellDimensionInitializationConfig config) Obtain the single-cell quantitation types by single-cell dimension. -
getPreferredSingleCellDataVectors
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Optional<Collection<SingleCellExpressionDataVector>> getPreferredSingleCellDataVectors(ExpressionExperiment ee) Obtain preferred single-cell vectors. -
getSingleCellDataVectors
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Collection<SingleCellExpressionDataVector> getSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType) Obtain single-cell vectors for a given quantitation type. -
getSingleCellDataVectors
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Collection<SingleCellExpressionDataVector> getSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, SingleCellExpressionExperimentService.SingleCellVectorInitializationConfig config) -
getSingleCellDataVectors
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Collection<SingleCellExpressionDataVector> getSingleCellDataVectors(ExpressionExperiment ee, List<BioAssay> samples, QuantitationType quantitationType) Obtain single-cell vectors for a particular sample. -
getSingleCellDataVectors
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Collection<SingleCellExpressionDataVector> getSingleCellDataVectors(ExpressionExperiment ee, List<BioAssay> samples, QuantitationType quantitationType, SingleCellExpressionExperimentService.SingleCellVectorInitializationConfig config) -
streamSingleCellDataVectors
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Stream<SingleCellExpressionDataVector> streamSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, int fetchSize, boolean useCursorFetchIfSupported, boolean createNewSession) Obtain a stream over single-cell vectors for a given quantitation type. -
streamSingleCellDataVectors
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Stream<SingleCellExpressionDataVector> streamSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, int fetchSize, boolean useCursorFetchIfSupported, boolean createNewSession, SingleCellExpressionExperimentService.SingleCellVectorInitializationConfig config) -
streamSingleCellDataVectors
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Stream<SingleCellExpressionDataVector> streamSingleCellDataVectors(ExpressionExperiment ee, List<BioAssay> samples, QuantitationType quantitationType, int fetchSize, boolean useCursorFetchIfSupported, boolean createNewSession, SingleCellExpressionExperimentService.SingleCellVectorInitializationConfig config) -
streamSingleCellDataVectors
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Stream<SingleCellExpressionDataVector> streamSingleCellDataVectors(ExpressionExperiment ee, List<BioAssay> samples, QuantitationType quantitationType, int fetchSize, boolean useCursorFetchIfSupported, boolean createNewSession) -
getSingleCellDataVectorWithoutCellIds
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) SingleCellExpressionDataVector getSingleCellDataVectorWithoutCellIds(ExpressionExperiment ee, QuantitationType quantitationType, CompositeSequence designElement) Obtain a single single-cell vector without initializing cell IDs.- See Also:
-
getNumberOfSingleCellDataVectors
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) long getNumberOfSingleCellDataVectors(ExpressionExperiment ee, QuantitationType qt) Obtain the number of single-cell vectors for a given quantitation type. -
getNumberOfNonZeroes
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) long getNumberOfNonZeroes(ExpressionExperiment ee, QuantitationType qt) -
getNumberOfNonZeroesBySample
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Map<BioAssay,Long> getNumberOfNonZeroesBySample(ExpressionExperiment ee, QuantitationType qt, int fetchSize, boolean useCursorFetchIfSupported) -
getSingleCellExpressionDataMatrix
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) SingleCellExpressionDataMatrix<?> getSingleCellExpressionDataMatrix(ExpressionExperiment expressionExperiment, List<BioAssay> samples, QuantitationType quantitationType) Obtain a single-cell expression data matrix for the given quantitation type. -
getSingleCellExpressionDataMatrix
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) SingleCellExpressionDataMatrix<?> getSingleCellExpressionDataMatrix(ExpressionExperiment expressionExperiment, QuantitationType quantitationType) Obtain a single-cell expression data matrix for the given quantitation type. -
addSingleCellDataVectors
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) int addSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, Collection<SingleCellExpressionDataVector> vectors, @Nullable String details, boolean recrateCellTypeFactorIfNecessary, boolean ignoreCompatibleFactor) Add single-cell data vectors.- Parameters:
recrateCellTypeFactorIfNecessary- re-create the cell type factor if necessary (i.e. a new set of preferred single-cell vectors are added)ignoreCompatibleFactor- ignore an existing compatible cell type factor and re-create it anyway- Returns:
- the number of vectors that were added
-
addSingleCellDataVectors
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) int addSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, SingleCellDimension scd, Stream<SingleCellExpressionDataVector> vectors, @Nullable String details, boolean recrateCellTypeFactorIfNecessary, boolean ignoreCompatibleFactor) Add single-cell data vectors, use streaming to load SingleCellExpressionDataVectors (addSingleCellDataVectors(ubic.gemma.model.expression.experiment.ExpressionExperiment, ubic.gemma.model.common.quantitationtype.QuantitationType, java.util.Collection<ubic.gemma.model.expression.bioAssayData.SingleCellExpressionDataVector>, java.lang.String, boolean, boolean)) Streaming variant ofaddSingleCellDataVectors(ubic.gemma.model.expression.experiment.ExpressionExperiment, ubic.gemma.model.common.quantitationtype.QuantitationType, java.util.Collection<ubic.gemma.model.expression.bioAssayData.SingleCellExpressionDataVector>, java.lang.String, boolean, boolean)that avoids materializing all vectors in memory. Thescdmust be supplied explicitly because we cannot peek at the stream to retrieve it.- Parameters:
scd- the single-cell dimension shared by all vectors in the streamvectors- Streamed SingleCellExpressionDataVectors. Each vector must have its QT and design element setrecrateCellTypeFactorIfNecessary- re-create the cell type factor if necessary (i.e. a new set of preferred single-cell vectors are added)ignoreCompatibleFactor- ignore an existing compatible cell type factor and re-create it anyway- Returns:
- the number of vectors that were added
-
replaceSingleCellDataVectors
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) int replaceSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, Collection<SingleCellExpressionDataVector> vectors, @Nullable String details, boolean recreateCellTypeFactorIfNecessary, boolean ignoreCompatibleFactor) Replace existing single-cell data vectors for the given quantitation type.- Parameters:
details- additional details to include in the audit eventrecreateCellTypeFactorIfNecessary- re-create the cell type factor if necessary (i.e. if the preferred single-cell vectors are being replaced)ignoreCompatibleFactor- ignore an existing compatible cell type factor and re-create it anyway- Returns:
- the number of vectors that were replaced
-
updateSparsityMetrics
Update the sparsity metrics.If no preferred single-cell vectors are present, the sparsity metrics will be cleared.
-
removeSingleCellDataVectors
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) int removeSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType) Remove single-cell data vectors for the given quantitation type.- Returns:
- the number of vectors that were removed
-
getSingleCellDimensions
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) List<SingleCellDimension> getSingleCellDimensions(ExpressionExperiment ee) Obtain all the single-cell dimensions used by a given dataset. -
getSingleCellDimensionsWithoutCellIds
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) List<SingleCellDimension> getSingleCellDimensionsWithoutCellIds(ExpressionExperiment ee) -
getSingleCellDimensionsWithoutCellIds
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) List<SingleCellDimension> getSingleCellDimensionsWithoutCellIds(ExpressionExperiment ee, SingleCellExpressionExperimentService.SingleCellDimensionInitializationConfig singleCellDimensionInitializationConfig) -
getSingleCellDimension
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) SingleCellDimension getSingleCellDimension(ExpressionExperiment ee, QuantitationType qt) Obtain a single-cell dimension used for a given dataset and QT. -
getSingleCellDimensionWithCellLevelCharacteristics
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) SingleCellDimension getSingleCellDimensionWithCellLevelCharacteristics(ExpressionExperiment ee, QuantitationType qt) -
getSingleCellDimensionWithAssaysAndCellLevelCharacteristics
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) SingleCellDimension getSingleCellDimensionWithAssaysAndCellLevelCharacteristics(ExpressionExperiment ee, QuantitationType qt) Retrieve a single-cell dimension with its bioassays and cell-level characteristics initialized. -
getSingleCellDimensionWithoutCellIds
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) SingleCellDimension getSingleCellDimensionWithoutCellIds(ExpressionExperiment ee, QuantitationType qt) -
getSingleCellDimensionWithoutCellIds
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) SingleCellDimension getSingleCellDimensionWithoutCellIds(ExpressionExperiment ee, QuantitationType qt, SingleCellExpressionExperimentService.SingleCellDimensionInitializationConfig singleCellDimensionInitializationConfig) -
getSingleCellDimensionByIdWithoutCellIds
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) SingleCellDimension getSingleCellDimensionByIdWithoutCellIds(ExpressionExperiment expressionExperiment, Long id, SingleCellExpressionExperimentService.SingleCellDimensionInitializationConfig config) -
getPreferredSingleCellDimension
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Optional<SingleCellDimension> getPreferredSingleCellDimension(ExpressionExperiment ee) Obtain the preferred single-cell dimension.Cell type assignments and other cell-level characteristics are eagerly initialized.
-
getPreferredSingleCellDimensionWithoutCellIds
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Optional<SingleCellDimension> getPreferredSingleCellDimensionWithoutCellIds(ExpressionExperiment ee) Obtain the preferred single-cell dimension without its cell IDs.The returned object is not persistent since it's a projection.
-
getPreferredSingleCellDimensionWithoutCellIds
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Optional<SingleCellDimension> getPreferredSingleCellDimensionWithoutCellIds(ExpressionExperiment ee, SingleCellExpressionExperimentService.SingleCellDimensionInitializationConfig singleCellDimensionInitializationConfig) -
getPreferredSingleCellDimensionWithCellLevelCharacteristics
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Optional<SingleCellDimension> getPreferredSingleCellDimensionWithCellLevelCharacteristics(ExpressionExperiment ee) Obtain the preferred single-cell dimension.Cell type assignments and other cell-level characteristics are eagerly initialized.
-
streamCellIds
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Optional<Stream<String>> streamCellIds(ExpressionExperiment ee, boolean createNewSession) -
streamCellIds
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Stream<String> streamCellIds(ExpressionExperiment ee, QuantitationType qt, boolean createNewSession) -
streamCellTypes
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Stream<Characteristic> streamCellTypes(ExpressionExperiment ee, CellTypeAssignment cta, boolean createNewSession) -
getCellTypeAt
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Characteristic getCellTypeAt(ExpressionExperiment ee, QuantitationType qt, Long ctaId, int cellIndex) -
getCellTypeAt
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Characteristic[] getCellTypeAt(ExpressionExperiment ee, QuantitationType qt, Long ctaId, int startIndex, int endIndexExclusive) -
getCellTypeAt
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Characteristic getCellTypeAt(ExpressionExperiment ee, QuantitationType qt, String ctaName, int cellIndex) -
getCellTypeAt
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Characteristic[] getCellTypeAt(ExpressionExperiment ee, QuantitationType qt, String ctaName, int startIndex, int endIndexExclusive) -
getCellLevelCharacteristicsCategory
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Category getCellLevelCharacteristicsCategory(ExpressionExperiment ee, CellLevelCharacteristics clc) -
streamCellLevelCharacteristics
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Stream<Characteristic> streamCellLevelCharacteristics(ExpressionExperiment ee, CellLevelCharacteristics clc, boolean createNewSession) -
relabelCellTypes
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) CellTypeAssignment relabelCellTypes(ExpressionExperiment ee, QuantitationType qt, SingleCellDimension dimension, List<String> newCellTypeLabels, @Nullable Protocol labellingProtocol, @Nullable String description, boolean recreateCellTypeFactorIfNecessary, boolean ignoreCompatibleFactor) Relabel the cell types of an existing set of single-cell vectors.- Parameters:
newCellTypeLabels- the new cell types labels, must match the number of cellslabellingProtocol- the protocol used to generate the new labelling, or null if unknownrecreateCellTypeFactorIfNecessary-ignoreCompatibleFactor-- Returns:
- a new, preferred cell type labelling
-
addCellTypeAssignment
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) CellTypeAssignment addCellTypeAssignment(ExpressionExperiment ee, QuantitationType qt, SingleCellDimension dimension, CellTypeAssignment cellTypeAssignment, boolean recreateCellTypeFactorIfNecessary, boolean ignoreCompatibleFactor) -
changePreferredCellTypeAssignment
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) SingleCellExpressionExperimentService.PreferredCellTypeAssignmentChangeOutcome changePreferredCellTypeAssignment(ExpressionExperiment ee, QuantitationType quantitationType, CellTypeAssignment newPreferredCta, boolean recreateCellTypeFactorIfNecessary, boolean ignoreCompatibleFactor) - See Also:
-
changePreferredCellTypeAssignment
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) SingleCellExpressionExperimentService.PreferredCellTypeAssignmentChangeOutcome changePreferredCellTypeAssignment(ExpressionExperiment ee, SingleCellDimension dimension, CellTypeAssignment newPreferredCta, boolean recreateCellTypeFactorIfNecessary, boolean ignoreCompatibleFactor) Change the preferred cell type assignment to the given one.- Parameters:
recreateCellTypeFactorIfNecessary- re-create the cell type factor; this is only done if the preferred cell type assignment applies to the preferred single-cell vectors and the current cell type factor is incompatible.ignoreCompatibleFactor-
-
clearPreferredCellTypeAssignment
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) SingleCellExpressionExperimentService.PreferredCellTypeAssignmentChangeOutcome clearPreferredCellTypeAssignment(ExpressionExperiment ee, QuantitationType quantitationType) - See Also:
-
clearPreferredCellTypeAssignment
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) SingleCellExpressionExperimentService.PreferredCellTypeAssignmentChangeOutcome clearPreferredCellTypeAssignment(ExpressionExperiment ee, SingleCellDimension dimension) Clear the preferred cell type assignment. -
removeCellTypeAssignment
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void removeCellTypeAssignment(ExpressionExperiment ee, SingleCellDimension scd, CellTypeAssignment cellTypeAssignment) Remove the given cell type assignment.If the cell type labelling is preferred and applies to the preferred vectors as per
getPreferredCellTypeAssignment(ExpressionExperiment), the cell type factor will be removed. -
removeCellTypeAssignment
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void removeCellTypeAssignment(ExpressionExperiment ee, QuantitationType qt, CellTypeAssignment cellTypeAssignment) Remove the given cell type assignment by QT.- See Also:
-
removeCellTypeAssignmentById
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void removeCellTypeAssignmentById(ExpressionExperiment ee, Long ctaId) -
removeCellTypeAssignmentById
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void removeCellTypeAssignmentById(ExpressionExperiment ee, SingleCellDimension dimension, Long ctaId) -
removeCellTypeAssignmentByName
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) boolean removeCellTypeAssignmentByName(ExpressionExperiment ee, SingleCellDimension dimension, String name) -
removeAllCellTypeAssignments
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) long removeAllCellTypeAssignments(ExpressionExperiment ee, QuantitationType qt) -
getCellTypeAssignments
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) List<CellTypeAssignment> getCellTypeAssignments(ExpressionExperiment ee) Obtain all the cell type labellings from all single-cell vectors. -
getCellTypeAssignments
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) List<CellTypeAssignment> getCellTypeAssignments(ExpressionExperiment expressionExperiment, QuantitationType qt) -
getCellTypeAssignment
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) CellTypeAssignment getCellTypeAssignment(ExpressionExperiment expressionExperiment, QuantitationType qt, Long ctaId) Obtain a cell type assignment by ID.- Returns:
- that cell type assignmente, or null if none is found
-
getCellTypeAssignment
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) CellTypeAssignment getCellTypeAssignment(ExpressionExperiment expressionExperiment, QuantitationType qt, String ctaName) Obtain a cell type assignment by name.- Returns:
- that cell type assignmente, or null if none is found
-
getCellTypeAssignmentWithoutIndices
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) CellTypeAssignment getCellTypeAssignmentWithoutIndices(ExpressionExperiment ee, QuantitationType qt, Long ctaId) -
getCellTypeAssignmentWithoutIndices
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) CellTypeAssignment getCellTypeAssignmentWithoutIndices(ExpressionExperiment ee, QuantitationType qt, String ctaName) -
getCellTypeAssignmentsWithoutIndices
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Collection<CellTypeAssignment> getCellTypeAssignmentsWithoutIndices(ExpressionExperiment ee, QuantitationType qt) -
getCellTypeAssignmentProtocols
Collection<Protocol> getCellTypeAssignmentProtocols()Obtain a collection of protocols used to assign cell types to single-cell vectors. -
getCellTypeAssignmentByProtocol
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Collection<CellTypeAssignment> getCellTypeAssignmentByProtocol(ExpressionExperiment ee, QuantitationType qt, String protocolName) Obtain a cell type assignment by a protocol identifier. -
getPreferredCellTypeAssignment
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Optional<CellTypeAssignment> getPreferredCellTypeAssignment(ExpressionExperiment ee) Obtain the preferred cell type labelling from the preferred single-cell vectors. -
getPreferredCellTypeAssignment
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Optional<CellTypeAssignment> getPreferredCellTypeAssignment(ExpressionExperiment ee, QuantitationType qt) -
getPreferredCellTypeAssignmentWithoutIndices
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Optional<CellTypeAssignment> getPreferredCellTypeAssignmentWithoutIndices(ExpressionExperiment ee) -
getPreferredCellTypeAssignmentWithoutIndices
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Optional<CellTypeAssignment> getPreferredCellTypeAssignmentWithoutIndices(ExpressionExperiment ee, QuantitationType qt) -
addCellLevelCharacteristics
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) CellLevelCharacteristics addCellLevelCharacteristics(ExpressionExperiment ee, SingleCellDimension scd, CellLevelCharacteristics clc) Add new cell-level characteristics. -
removeCellLevelCharacteristics
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void removeCellLevelCharacteristics(ExpressionExperiment ee, SingleCellDimension scd, CellLevelCharacteristics clc) Remove existing cell-level characteristics. -
removeCellLevelCharacteristics
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void removeCellLevelCharacteristics(ExpressionExperiment ee, QuantitationType qt, CellLevelCharacteristics clc) Remove existing cell-level characteristics by QT. -
removeCellLevelCharacteristicsById
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void removeCellLevelCharacteristicsById(ExpressionExperiment ee, Long clcId) -
removeCellLevelCharacteristicsById
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void removeCellLevelCharacteristicsById(ExpressionExperiment ee, SingleCellDimension dimension, Long clcId) -
removeCellLevelCharacteristicsByName
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) boolean removeCellLevelCharacteristicsByName(ExpressionExperiment ee, SingleCellDimension dimension, String name) -
removeAllCellLevelCharacteristics
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) long removeAllCellLevelCharacteristics(ExpressionExperiment ee, QuantitationType qt) -
getCellLevelCharacteristics
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) List<CellLevelCharacteristics> getCellLevelCharacteristics(ExpressionExperiment ee) - See Also:
-
getCellLevelCharacteristics
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) List<CellLevelCharacteristics> getCellLevelCharacteristics(ExpressionExperiment ee, Category category) Obtain CLC for given category. -
getCellLevelCharacteristics
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) CellLevelCharacteristics getCellLevelCharacteristics(ExpressionExperiment expressionExperiment, QuantitationType qt, Long id) -
getCellLevelCharacteristics
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) CellLevelCharacteristics getCellLevelCharacteristics(ExpressionExperiment ee, QuantitationType qt, String name) Obtain a CLC by name. -
getCellLevelCharacteristics
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) List<CellLevelCharacteristics> getCellLevelCharacteristics(ExpressionExperiment expressionExperiment, QuantitationType qt) -
getCellLevelCharacteristicsWithoutIndices
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) CellLevelCharacteristics getCellLevelCharacteristicsWithoutIndices(ExpressionExperiment ee, QuantitationType qt, Long ctaId) -
getCellLevelCharacteristicsWithoutIndices
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) CellLevelCharacteristics getCellLevelCharacteristicsWithoutIndices(ExpressionExperiment ee, QuantitationType qt, String clcName) -
getCellLevelCharacteristicsWithoutIndices
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Collection<CellLevelCharacteristics> getCellLevelCharacteristicsWithoutIndices(ExpressionExperiment ee, QuantitationType qt) -
getCellLevelMask
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Optional<CellLevelCharacteristics> getCellLevelMask(ExpressionExperiment expressionExperiment, QuantitationType qt) Obtain a mask if one is unambiguously defined for the given experiment and quantitation type. -
getCellTypes
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) List<Characteristic> getCellTypes(ExpressionExperiment ee) Obtain the cell types of a given single-cell dataset.Only the cell types applicable to the preferred single-cell vectors and cell type assignment are returned.
-
getCellTypeFactor
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Optional<ExperimentalFactor> getCellTypeFactor(ExpressionExperiment ee) Obtain the cell type factor.- Returns:
- a cell type factor, or
Optional.empty()if none exist or if there is more than one cell type factor.
-
createCellTypeFactor
@Nullable @Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) ExperimentalFactor createCellTypeFactor(ExpressionExperiment ee, boolean removeExistingIfNecessary, boolean ignoreCompatibleFactor) Recreate the cell type factor based on the preferred cell type assignment 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).Note that the cell type factor will not be deleted if there is more than one such factor present as per
getCellTypeFactor(ExpressionExperiment).- Parameters:
removeExistingIfNecessary- if there is already a cell type factor that is incompatible with the preferred cell type assignment, remove it.ignoreCompatibleFactor- remove an existing cell type factor even if a compatible cell type factor is found, requiresremoveExistingIfNecessaryto be true.- Returns:
- the created cell type factor, or a compatible one if found, or
nullif no factor was created or no compatible one was found - Throws:
IllegalStateException- if the dataset does not have a preferred cell type labelling for its preferred set of single-cell vectors.
-