use of ubic.gemma.persistence.service.expression.bioAssayData.RawExpressionDataVectorService in project Gemma by PavlidisLab.
the class DesignElementDataVectorServiceTest method testFindByQt.
@Test
public void testFindByQt() throws Exception {
try {
geoService.setGeoDomainObjectGenerator(new GeoDomainObjectGeneratorLocal(this.getTestFileBasePath("gse432Short")));
Collection<?> results = geoService.fetchAndLoad("GSE432", false, true, false);
newee = (ExpressionExperiment) results.iterator().next();
} catch (AlreadyExistsInSystemException e) {
newee = (ExpressionExperiment) e.getData();
}
newee.setShortName(RandomStringUtils.randomAlphabetic(12));
expressionExperimentService.update(newee);
newee = this.expressionExperimentService.thawLite(newee);
RawExpressionDataVectorService rawService = this.getBean(RawExpressionDataVectorService.class);
QuantitationType qt = null;
for (QuantitationType q : newee.getQuantitationTypes()) {
if (q.getIsPreferred()) {
qt = q;
break;
}
}
assertNotNull("QT is null", qt);
Collection<? extends DesignElementDataVector> preferredVectors = rawService.findRawAndProcessed(qt);
assertNotNull(preferredVectors);
assertEquals(40, preferredVectors.size());
}
Aggregations