Interface ExpressionDataMatrixService
- All Known Implementing Classes:
ExpressionDataMatrixServiceImpl
public interface ExpressionDataMatrixService
Tools for easily getting data matrices for analysis in a consistent way.
- Author:
- Paul
-
Method Summary
Modifier and TypeMethodDescriptiongetFilteredMatrix(Collection<ProcessedExpressionDataVector> dataVectors, ArrayDesign arrayDesign, ExpressionExperimentFilterConfig filterConfig, boolean logTransform) getFilteredMatrix(ExpressionExperiment ee, Collection<ProcessedExpressionDataVector> dataVectors, ExpressionExperimentFilterConfig filterConfig, boolean logTransform) Provide a filtered expression data matrix.getFilteredMatrix(ExpressionExperiment ee, Collection<ProcessedExpressionDataVector> dataVectors, ExpressionExperimentFilterConfig filterConfig, boolean logTransform, ExpressionExperimentFilterResult result) Provide a filtered expression data matrix, reporting the per-stage attrition into a caller-supplied result.getFilteredMatrix(ExpressionExperiment ee, ExpressionExperimentFilterConfig filterConfig) Provide a filtered expression data matrix.Obtain the processed expression data matrix for a given experiment.getProcessedExpressionDataMatrix(ExpressionExperiment ee, boolean thawAssays) getProcessedExpressionDataMatrix(ExpressionExperiment ee, List<BioAssay> samples) getRankMatrix(Collection<Gene> genes, Collection<ExpressionExperiment> ees, ProcessedExpressionDataVectorDao.RankMethod method) getRawExpressionDataMatrix(ExpressionExperiment ee, List<BioAssay> samples, QuantitationType quantitationType) getRawExpressionDataMatrix(ExpressionExperiment ee, QuantitationType quantitationType) Obtain a raw expression data matrix for a given quantitation type
-
Method Details
-
getFilteredMatrix
ExpressionDataDoubleMatrix getFilteredMatrix(ExpressionExperiment ee, ExpressionExperimentFilterConfig filterConfig) throws FilteringException Provide a filtered expression data matrix.- Parameters:
ee- the expression experiment.filterConfig- the configuration.- Returns:
- data matrix
- Throws:
IllegalStateException- if there are no processed vectorsFilteringException
-
getFilteredMatrix
ExpressionDataDoubleMatrix getFilteredMatrix(ExpressionExperiment ee, Collection<ProcessedExpressionDataVector> dataVectors, ExpressionExperimentFilterConfig filterConfig, boolean logTransform) throws FilteringException Provide a filtered expression data matrix.- Parameters:
ee- the expression experiment.dataVectors- data vectorsfilterConfig- the configuration.logTransform- perform a log transformation on the data, this is ignored if the data is already on a log scale, the default is to return the data as is.- Returns:
- data matrix
- Throws:
FilteringException
-
getFilteredMatrix
ExpressionDataDoubleMatrix getFilteredMatrix(ExpressionExperiment ee, Collection<ProcessedExpressionDataVector> dataVectors, ExpressionExperimentFilterConfig filterConfig, boolean logTransform, ExpressionExperimentFilterResult result) throws FilteringException Provide a filtered expression data matrix, reporting the per-stage attrition into a caller-supplied result.The other overloads discard that result. Use this one when the attrition is wanted as well as the matrix -- the sample-correlation run records it on the audit event so a curator can see how many design elements each filter removed.
- Parameters:
result- populated in place as each filter runs; untouched if filtering throws- Throws:
FilteringException- See Also:
-
getFilteredMatrix
ExpressionDataDoubleMatrix getFilteredMatrix(Collection<ProcessedExpressionDataVector> dataVectors, ArrayDesign arrayDesign, ExpressionExperimentFilterConfig filterConfig, boolean logTransform) throws FilteringException - Throws:
FilteringException
-
getProcessedExpressionDataMatrix
Obtain the processed expression data matrix for a given experiment. -
getProcessedExpressionDataMatrix
ExpressionDataDoubleMatrix getProcessedExpressionDataMatrix(ExpressionExperiment ee, boolean thawAssays) - Parameters:
ee- the expression experiment.thawAssays- whether to thaw the assays or not usingThaws.thawBioAssayDimension(BioAssayDimension)- Returns:
- matrix of preferred data, with all missing values masked
-
getProcessedExpressionDataMatrix
ExpressionDataDoubleMatrix getProcessedExpressionDataMatrix(ExpressionExperiment ee, List<BioAssay> samples) -
getRawExpressionDataMatrix
ExpressionDataDoubleMatrix getRawExpressionDataMatrix(ExpressionExperiment ee, QuantitationType quantitationType) Obtain a raw expression data matrix for a given quantitation type- Throws:
IllegalStateException- if there are no raw vectors for the given quantitation type
-
getRawExpressionDataMatrix
ExpressionDataDoubleMatrix getRawExpressionDataMatrix(ExpressionExperiment ee, List<BioAssay> samples, QuantitationType quantitationType) -
getRankMatrix
DoubleMatrix<Gene, ExpressionExperiment> getRankMatrix(Collection<Gene> genes, Collection<ExpressionExperiment> ees, ProcessedExpressionDataVectorDao.RankMethod method)
-