Search in sources :

Example 1 with FilterConfig

use of ubic.gemma.core.analysis.preprocess.filter.FilterConfig in project Gemma by PavlidisLab.

the class ExpressionDataFileServiceImpl method getDataMatrix.

private ExpressionDataDoubleMatrix getDataMatrix(ExpressionExperiment ee, boolean filtered) {
    ee = expressionExperimentService.thawLite(ee);
    ExpressionDataDoubleMatrix matrix;
    if (filtered) {
        FilterConfig filterConfig = new FilterConfig();
        filterConfig.setIgnoreMinimumSampleThreshold(true);
        filterConfig.setIgnoreMinimumRowsThreshold(true);
        matrix = expressionDataMatrixService.getFilteredMatrix(ee, filterConfig);
    } else {
        matrix = expressionDataMatrixService.getProcessedExpressionDataMatrix(ee);
    }
    return matrix;
}
Also used : ExpressionDataDoubleMatrix(ubic.gemma.core.datastructure.matrix.ExpressionDataDoubleMatrix) FilterConfig(ubic.gemma.core.analysis.preprocess.filter.FilterConfig)

Example 2 with FilterConfig

use of ubic.gemma.core.analysis.preprocess.filter.FilterConfig in project Gemma by PavlidisLab.

the class SampleCoexpressionMatrixServiceImpl method loadFilteredMatrix.

private ExpressionDataDoubleMatrix loadFilteredMatrix(ExpressionExperiment ee, Collection<ProcessedExpressionDataVector> vectors, boolean requireSequences) {
    FilterConfig fConfig = new FilterConfig();
    fConfig.setIgnoreMinimumRowsThreshold(true);
    fConfig.setIgnoreMinimumSampleThreshold(true);
    fConfig.setRequireSequences(// not sure if this is the best thing to do. Some tests will fail.
    requireSequences);
    // Loads using new array designs will fail. So we allow special case where there are no sequences.
    return expressionDataMatrixService.getFilteredMatrix(ee, fConfig, vectors);
}
Also used : FilterConfig(ubic.gemma.core.analysis.preprocess.filter.FilterConfig)

Example 3 with FilterConfig

use of ubic.gemma.core.analysis.preprocess.filter.FilterConfig in project Gemma by PavlidisLab.

the class LinkAnalysisController method run.

public String run(Long id) {
    /* this 'run' method is exported in the spring-beans.xml */
    ExpressionExperiment ee = expressionExperimentService.load(id);
    if (ee == null) {
        throw new IllegalArgumentException("Cannot access experiment with id=" + id);
    }
    experimentReportService.evictFromCache(id);
    LinkAnalysisConfig lac = new LinkAnalysisConfig();
    FilterConfig fc = new FilterConfig();
    LinkAnalysisTaskCommand cmd = new LinkAnalysisTaskCommand(ee, lac, fc);
    return taskRunningService.submitRemoteTask(cmd);
}
Also used : LinkAnalysisTaskCommand(ubic.gemma.core.tasks.analysis.coexp.LinkAnalysisTaskCommand) FilterConfig(ubic.gemma.core.analysis.preprocess.filter.FilterConfig) ExpressionExperiment(ubic.gemma.model.expression.experiment.ExpressionExperiment) LinkAnalysisConfig(ubic.gemma.core.analysis.expression.coexpression.links.LinkAnalysisConfig)

Aggregations

FilterConfig (ubic.gemma.core.analysis.preprocess.filter.FilterConfig)3 LinkAnalysisConfig (ubic.gemma.core.analysis.expression.coexpression.links.LinkAnalysisConfig)1 ExpressionDataDoubleMatrix (ubic.gemma.core.datastructure.matrix.ExpressionDataDoubleMatrix)1 LinkAnalysisTaskCommand (ubic.gemma.core.tasks.analysis.coexp.LinkAnalysisTaskCommand)1 ExpressionExperiment (ubic.gemma.model.expression.experiment.ExpressionExperiment)1