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);
}
}
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;
}
Aggregations