use of ubic.gemma.core.loader.protein.StringProteinInteractionLoader in project Gemma by PavlidisLab.
the class StringProteinLoadCli method loadProteinProteinInteractions.
/**
* Method to wrap call to loader. Ensures that all spring beans are configured.
*
* @throws IOException IO problems
*/
// Possible external use
@SuppressWarnings({ "unused", "WeakerAccess" })
public void loadProteinProteinInteractions() throws IOException {
StringProteinInteractionLoader loader = new StringProteinInteractionLoader();
GeneService geneService = this.getBean(GeneService.class);
ExternalDatabaseService externalDatabaseService = this.getBean(ExternalDatabaseService.class);
// set all the loaders
if (this.getPersisterHelper() == null || geneService == null || externalDatabaseService == null) {
throw new RuntimeException("Spring configuration problem");
}
loader.setPersisterHelper(this.getPersisterHelper());
loader.setGeneService(geneService);
loader.setExternalDatabaseService(externalDatabaseService);
Collection<Taxon> taxa = this.getValidTaxon();
// some of these parameters can be null
loader.load(stringProteinProteinFileNameLocal, stringProteinProteinFileNameRemote, biomartFileName, taxa);
}
Aggregations