Class ProcessedExpressionDataVectorDaoImpl
java.lang.Object
ubic.gemma.persistence.service.AbstractDao<ProcessedExpressionDataVector>
ubic.gemma.persistence.service.expression.bioAssayData.AbstractDesignElementDataVectorDao<ProcessedExpressionDataVector>
ubic.gemma.persistence.service.expression.bioAssayData.ProcessedExpressionDataVectorDaoImpl
- All Implemented Interfaces:
BaseDao<ProcessedExpressionDataVector>, DesignElementDataVectorDao<ProcessedExpressionDataVector>, ProcessedExpressionDataVectorDao
@Repository
public class ProcessedExpressionDataVectorDaoImpl
extends AbstractDesignElementDataVectorDao<ProcessedExpressionDataVector>
implements ProcessedExpressionDataVectorDao
- Author:
- Paul
-
Nested Class Summary
Nested classes/interfaces inherited from interface ProcessedExpressionDataVectorDao
ProcessedExpressionDataVectorDao.RankMethod -
Field Summary
Fields inherited from class AbstractDao
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfind(Collection<CompositeSequence> designElements, QuantitationType quantitationType) Retrieve the processed vectors for a set of design elements within a given quantitation type.getGenes(Collection<ProcessedExpressionDataVector> vectors) Obtain the genes associated to each vector.getProcessedVectors(ExpressionExperiment ee, BioAssayDimension dimension, int offset, int limit) Retrieve a slice of processed vectors.getProcessedVectorsAndGenes(Collection<ExpressionExperiment> ees, Map<Long, Collection<Long>> cs2gene) Obtain processed expression vectors with their associated genes.getProcessedVectorsDesignElements(ExpressionExperiment ee, BioAssayDimension dimension, int offset, int limit) Only retrieve the design elements for a slice of vectors.getRandomProcessedVectors(ExpressionExperiment ee, int limit) Obtain a random sample of processed vectors for the given experiment.getRanks(Collection<ExpressionExperiment> expressionExperiments, Collection<Gene> genes, ProcessedExpressionDataVectorDao.RankMethod method) Map<Gene, Collection<Double>> getRanks(ExpressionExperiment expressionExperiment, Collection<Gene> genes, ProcessedExpressionDataVectorDao.RankMethod method) Methods inherited from class AbstractDesignElementDataVectorDao
find, find, find, findByExpressionExperiment, thaw, thawMethods inherited from class AbstractDao
countAll, create, create, find, findByProperty, findByPropertyIn, findIdByProperty, findOneByProperty, findOrCreate, getBatchSize, getElementClass, getEntityName, getIdentifierPropertyName, getSessionFactory, load, load, loadAll, loadReference, loadReference, reload, reload, remove, remove, save, save, streamAll, streamAll, streamQuery, update, updateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BaseDao
countAll, create, create, find, findOrCreate, getElementClass, load, load, loadAll, loadReference, loadReference, reload, reload, remove, remove, save, save, streamAll, streamAll, update, updateMethods inherited from interface DesignElementDataVectorDao
find, find, find, findByExpressionExperiment, thaw, thaw
-
Constructor Details
-
ProcessedExpressionDataVectorDaoImpl
-
-
Method Details
-
getProcessedVectors
- Specified by:
getProcessedVectorsin interfaceProcessedExpressionDataVectorDao- Parameters:
ee- ee- Returns:
- Processed data for the given experiment. NOTE the vectors are thawed before returning.
-
getProcessedVectors
public List<ProcessedExpressionDataVector> getProcessedVectors(ExpressionExperiment ee, BioAssayDimension dimension, int offset, int limit) Description copied from interface:ProcessedExpressionDataVectorDaoRetrieve a slice of processed vectors.- Specified by:
getProcessedVectorsin interfaceProcessedExpressionDataVectorDao
-
find
public Collection<ProcessedExpressionDataVector> find(Collection<CompositeSequence> designElements, QuantitationType quantitationType) Description copied from interface:ProcessedExpressionDataVectorDaoRetrieve the processed vectors for a set of design elements within a given quantitation type. Symmetric withRawExpressionDataVectorDao.find(Collection, QuantitationType). Returns the stored entities, whose data has NOT had read-time outlier masking applied — used to recover un-masked values for a previously selected set of probes.- Specified by:
findin interfaceProcessedExpressionDataVectorDao- Parameters:
designElements- probes to retrieve; empty collection yields an empty result.quantitationType- the (processed) quantitation type; scopes the result to a single experiment.- Returns:
- the matching processed vectors, thawed for the bioAssayDimension / quantitationType / designElement.
-
getProcessedVectorsAndGenes
public Map<ProcessedExpressionDataVector, Collection<Long>> getProcessedVectorsAndGenes(@Nullable Collection<ExpressionExperiment> ees, Map<Long, Collection<Long>> cs2gene) Description copied from interface:ProcessedExpressionDataVectorDaoObtain processed expression vectors with their associated genes.- Specified by:
getProcessedVectorsAndGenesin interfaceProcessedExpressionDataVectorDao- Parameters:
ees- eescs2gene- Map of probe to genes.- Returns:
- map of vectors to genes.
-
getRandomProcessedVectors
public Collection<ProcessedExpressionDataVector> getRandomProcessedVectors(ExpressionExperiment ee, int limit) Obtain a random sample of processed vectors for the given experiment.- Specified by:
getRandomProcessedVectorsin interfaceProcessedExpressionDataVectorDao- Parameters:
ee- eelimit- if>0, you will get a "random" set of vectors for the experiment- Returns:
- processed data vectors
-
getProcessedVectorsDesignElements
public List<CompositeSequence> getProcessedVectorsDesignElements(ExpressionExperiment ee, BioAssayDimension dimension, int offset, int limit) Description copied from interface:ProcessedExpressionDataVectorDaoOnly retrieve the design elements for a slice of vectors.- Specified by:
getProcessedVectorsDesignElementsin interfaceProcessedExpressionDataVectorDao
-
getRanks
public Map<ExpressionExperiment, Map<Gene, Collection<Double>>> getRanks(Collection<ExpressionExperiment> expressionExperiments, Collection<Gene> genes, ProcessedExpressionDataVectorDao.RankMethod method) - Specified by:
getRanksin interfaceProcessedExpressionDataVectorDao
-
getRanks
public Map<Gene, Collection<Double>> getRanks(ExpressionExperiment expressionExperiment, Collection<Gene> genes, ProcessedExpressionDataVectorDao.RankMethod method) - Specified by:
getRanksin interfaceProcessedExpressionDataVectorDao
-
getGenes
public Map<ProcessedExpressionDataVector, Collection<Long>> getGenes(Collection<ProcessedExpressionDataVector> vectors) Description copied from interface:ProcessedExpressionDataVectorDaoObtain the genes associated to each vector.- Specified by:
getGenesin interfaceProcessedExpressionDataVectorDao
-