Class PrincipalComponentAnalysisServiceImpl
java.lang.Object
ubic.gemma.persistence.service.AbstractService<PrincipalComponentAnalysis>
ubic.gemma.persistence.service.analysis.expression.pca.PrincipalComponentAnalysisServiceImpl
- All Implemented Interfaces:
PrincipalComponentAnalysisService, BaseImmutableService<PrincipalComponentAnalysis>, BaseReadOnlyService<PrincipalComponentAnalysis>, BaseService<PrincipalComponentAnalysis>
@Service
public class PrincipalComponentAnalysisServiceImpl
extends AbstractService<PrincipalComponentAnalysis>
implements PrincipalComponentAnalysisService
- Author:
- paul
-
Field Summary
Fields inherited from class AbstractService
log -
Constructor Summary
ConstructorsConstructorDescriptionPrincipalComponentAnalysisServiceImpl(PrincipalComponentAnalysisDao principalComponentAnalysisDao) -
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 class AbstractService
countAll, create, create, ensureInSession, ensureInSession, find, findOrCreate, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, remove, remove, save, save, streamAll, streamAll, update, updateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
Constructor Details
-
PrincipalComponentAnalysisServiceImpl
@Autowired public PrincipalComponentAnalysisServiceImpl(PrincipalComponentAnalysisDao principalComponentAnalysisDao)
-
-
Method Details
-
create
@Transactional public PrincipalComponentAnalysis create(ExpressionExperiment ee, DoubleMatrix<CompositeSequence, Integer> u, double[] eigenvalues, DoubleMatrix<Integer, BioMaterial> v, BioAssayDimension bad, int numComponentsToStore, int numLoadingsToStore) - Specified by:
createin interfacePrincipalComponentAnalysisService
-
getTopLoadedProbes
- Specified by:
getTopLoadedProbesin interfacePrincipalComponentAnalysisService
-
loadForExperiment
- Specified by:
loadForExperimentin interfacePrincipalComponentAnalysisService
-
existsByExperiment
- Specified by:
existsByExperimentin interfacePrincipalComponentAnalysisService
-
replaceForExperiment
@Transactional public PrincipalComponentAnalysis replaceForExperiment(ExpressionExperiment ee, DoubleMatrix<CompositeSequence, Integer> u, double[] eigenvalues, DoubleMatrix<Integer, BioMaterial> v, BioAssayDimension bad, int numComponentsToStore, int numLoadingsToStore) Description copied from interface:PrincipalComponentAnalysisServiceRemove 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 callingPrincipalComponentAnalysisService.removeForExperiment(ExpressionExperiment)andPrincipalComponentAnalysisService.create(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.- Specified by:
replaceForExperimentin interfacePrincipalComponentAnalysisService
-
removeForExperiment
- Specified by:
removeForExperimentin interfacePrincipalComponentAnalysisService
-