Search in sources :

Example 1 with ExperimentalFactorOntologyService

use of ubic.basecode.ontology.providers.ExperimentalFactorOntologyService in project Gemma by PavlidisLab.

the class ExperimentalDesignImportCli method doWork.

@Override
protected Exception doWork(String[] args) {
    Exception e = this.processCommandLine(args);
    if (e != null)
        return e;
    ExperimentalFactorOntologyService mos = this.getBean(OntologyService.class).getExperimentalFactorOntologyService();
    mos.startInitializationThread(true);
    while (!mos.isOntologyLoaded()) {
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e1) {
        // 
        }
        AbstractCLI.log.info("Waiting for EFO to load");
    }
    ExperimentalDesignImporter edImp = this.getBean(ExperimentalDesignImporter.class);
    ExpressionExperimentService ees = this.getBean(ExpressionExperimentService.class);
    expressionExperiment = ees.thawBioAssays(expressionExperiment);
    try {
        edImp.importDesign(expressionExperiment, inputStream);
    } catch (IOException e1) {
        return e1;
    }
    return null;
}
Also used : ExperimentalFactorOntologyService(ubic.basecode.ontology.providers.ExperimentalFactorOntologyService) OntologyService(ubic.gemma.core.ontology.OntologyService) ExperimentalFactorOntologyService(ubic.basecode.ontology.providers.ExperimentalFactorOntologyService) ExpressionExperimentService(ubic.gemma.persistence.service.expression.experiment.ExpressionExperimentService) ExperimentalDesignImporter(ubic.gemma.core.loader.expression.simple.ExperimentalDesignImporter)

Aggregations

ExperimentalFactorOntologyService (ubic.basecode.ontology.providers.ExperimentalFactorOntologyService)1 ExperimentalDesignImporter (ubic.gemma.core.loader.expression.simple.ExperimentalDesignImporter)1 OntologyService (ubic.gemma.core.ontology.OntologyService)1 ExpressionExperimentService (ubic.gemma.persistence.service.expression.experiment.ExpressionExperimentService)1