Search in sources :

Example 6 with TechnologyType

use of ubic.gemma.model.expression.arrayDesign.TechnologyType in project Gemma by PavlidisLab.

the class PreprocessorServiceImpl method processForMissingValues.

private void processForMissingValues(ExpressionExperiment ee) {
    Collection<ArrayDesign> arrayDesignsUsed = expressionExperimentService.getArrayDesignsUsed(ee);
    if (arrayDesignsUsed.size() > 1) {
        throw new UnsupportedOperationException("Skipping postprocessing because experiment uses " + "multiple platform types. Please check valid entry and run postprocessing separately.");
    }
    ArrayDesign arrayDesignUsed = arrayDesignsUsed.iterator().next();
    TechnologyType tt = arrayDesignUsed.getTechnologyType();
    if (tt == TechnologyType.TWOCOLOR || tt == TechnologyType.DUALMODE) {
        PreprocessorServiceImpl.log.info(ee + " uses a two-color array design, processing for missing values ...");
        ee = expressionExperimentService.thawLite(ee);
        twoChannelMissingValueService.computeMissingValues(ee);
    }
}
Also used : TechnologyType(ubic.gemma.model.expression.arrayDesign.TechnologyType) ArrayDesign(ubic.gemma.model.expression.arrayDesign.ArrayDesign)

Example 7 with TechnologyType

use of ubic.gemma.model.expression.arrayDesign.TechnologyType in project Gemma by PavlidisLab.

the class ExpressionExperimentController method setMultipleTechTypes.

/**
 * Checks and sets multiple technology types
 *
 * @param ee          ee
 * @param finalResult result
 * @return ee details vo
 */
private ExpressionExperimentDetailsValueObject setMultipleTechTypes(ExpressionExperimentDetailsValueObject finalResult, ExpressionExperiment ee) {
    Collection<TechnologyType> techTypes = new HashSet<>();
    for (ArrayDesign ad : expressionExperimentService.getArrayDesignsUsed(ee)) {
        techTypes.add(ad.getTechnologyType());
    }
    finalResult.setHasMultipleTechnologyTypes(techTypes.size() > 1);
    return finalResult;
}
Also used : TechnologyType(ubic.gemma.model.expression.arrayDesign.TechnologyType) ArrayDesign(ubic.gemma.model.expression.arrayDesign.ArrayDesign)

Aggregations

TechnologyType (ubic.gemma.model.expression.arrayDesign.TechnologyType)7 ArrayDesign (ubic.gemma.model.expression.arrayDesign.ArrayDesign)6 HashSet (java.util.HashSet)1 QuantitationType (ubic.gemma.model.common.quantitationtype.QuantitationType)1 StandardQuantitationType (ubic.gemma.model.common.quantitationtype.StandardQuantitationType)1 DesignElementDataVector (ubic.gemma.model.expression.bioAssayData.DesignElementDataVector)1 CompositeSequence (ubic.gemma.model.expression.designElement.CompositeSequence)1