Interface PrincipalComponentAnalysisService
- All Superinterfaces:
BaseImmutableService<PrincipalComponentAnalysis>, BaseReadOnlyService<PrincipalComponentAnalysis>
- All Known Implementing Classes:
PrincipalComponentAnalysisServiceImpl
public interface PrincipalComponentAnalysisService
extends BaseImmutableService<PrincipalComponentAnalysis>
- Author:
- paul
-
Method Summary
Modifier and TypeMethodDescriptioncreate(ExpressionExperiment ee, DoubleMatrix<CompositeSequence, Integer> u, double[] eigenvalues, DoubleMatrix<Integer, BioMaterial> v, BioAssayDimension bad, int numComponentsToStore, int numLoadingsToStore) booleangetTopLoadedProbes(ExpressionExperiment ee, int component, int count) voidreplaceForExperiment(ExpressionExperiment ee, DoubleMatrix<CompositeSequence, Integer> u, double[] eigenvalues, DoubleMatrix<Integer, BioMaterial> v, BioAssayDimension bad, int numComponentsToStore, int numLoadingsToStore) Remove the experiment's PCA and store the given one, in a single transaction.Methods inherited from interface BaseImmutableService
create, create, findOrCreate, remove, removeMethods inherited from interface BaseReadOnlyService
countAll, find, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAll
-
Method Details
-
create
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) PrincipalComponentAnalysis create(ExpressionExperiment ee, DoubleMatrix<CompositeSequence, Integer> u, double[] eigenvalues, DoubleMatrix<Integer, BioMaterial> v, BioAssayDimension bad, int numComponentsToStore, int numLoadingsToStore) -
getTopLoadedProbes
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) List<ProbeLoading> getTopLoadedProbes(ExpressionExperiment ee, int component, int count) -
removeForExperiment
-
replaceForExperiment
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) PrincipalComponentAnalysis replaceForExperiment(ExpressionExperiment ee, DoubleMatrix<CompositeSequence, Integer> u, double[] eigenvalues, DoubleMatrix<Integer, BioMaterial> v, BioAssayDimension bad, int numComponentsToStore, int numLoadingsToStore) Remove the experiment's PCA and store the given one, in a single transaction.🛑 The two halves must not be separate transactions.
SVDServiceImpl.svdisPropagation.NEVER— the decomposition between its read and its write takes long enough that a transaction must not be open across it — so callingremoveForExperiment(ExpressionExperiment)andcreate(ExpressionExperiment, DoubleMatrix, double[], DoubleMatrix, BioAssayDimension, int, int)from there would commit the removal, then fail, and leave the experiment with no PCA at all. Same shape asreplaceProcessedDataVectors. -
loadForExperiment
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) PrincipalComponentAnalysis loadForExperiment(ExpressionExperiment ee) -
existsByExperiment
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) boolean existsByExperiment(ExpressionExperiment ee)
-