Search in sources :

Example 11 with CoexpressionAnalysis

use of ubic.gemma.model.analysis.expression.coexpression.CoexpressionAnalysis in project Gemma by PavlidisLab.

the class PersistentDummyObjectHelper method addTestAnalyses.

public void addTestAnalyses(ExpressionExperiment ee) {
    /*
         * Add analyses
         */
    CoexpressionAnalysis pca = CoexpressionAnalysis.Factory.newInstance();
    pca.setName(RandomStringUtils.randomNumeric(PersistentDummyObjectHelper.RANDOM_STRING_LENGTH));
    pca.setExperimentAnalyzed(ee);
    persisterHelper.persist(pca);
    /*
         * Diff
         */
    DifferentialExpressionAnalysis expressionAnalysis = DifferentialExpressionAnalysis.Factory.newInstance();
    Protocol protocol = Protocol.Factory.newInstance();
    protocol.setName("Differential expression analysis settings");
    protocol.setDescription("qvalue: " + true);
    expressionAnalysis.setProtocol(protocol);
    expressionAnalysis.setExperimentAnalyzed(ee);
    persisterHelper.persist(expressionAnalysis);
}
Also used : CoexpressionAnalysis(ubic.gemma.model.analysis.expression.coexpression.CoexpressionAnalysis) DifferentialExpressionAnalysis(ubic.gemma.model.analysis.expression.diff.DifferentialExpressionAnalysis) Protocol(ubic.gemma.model.common.protocol.Protocol)

Aggregations

CoexpressionAnalysis (ubic.gemma.model.analysis.expression.coexpression.CoexpressionAnalysis)11 Transactional (org.springframework.transaction.annotation.Transactional)2 DifferentialExpressionAnalysis (ubic.gemma.model.analysis.expression.diff.DifferentialExpressionAnalysis)2 Protocol (ubic.gemma.model.common.protocol.Protocol)2 CompositeSequence (ubic.gemma.model.expression.designElement.CompositeSequence)2 ObjectArrayList (cern.colt.list.ObjectArrayList)1 Collection (java.util.Collection)1 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 StopWatch (org.apache.commons.lang3.time.StopWatch)1 Test (org.junit.Test)1 Link (ubic.basecode.dataStructure.Link)1 BaseSpringContextTest (ubic.gemma.core.testing.BaseSpringContextTest)1 Investigation (ubic.gemma.model.analysis.Investigation)1 RawExpressionDataVector (ubic.gemma.model.expression.bioAssayData.RawExpressionDataVector)1 BioAssaySet (ubic.gemma.model.expression.experiment.BioAssaySet)1 ExpressionExperiment (ubic.gemma.model.expression.experiment.ExpressionExperiment)1 Gene (ubic.gemma.model.genome.Gene)1 LinkCreator (ubic.gemma.persistence.service.association.coexpression.LinkCreator)1 NonPersistentNonOrderedCoexpLink (ubic.gemma.persistence.service.association.coexpression.NonPersistentNonOrderedCoexpLink)1