@Override public void run(String token, SearchDomainsParams inputData, String jobId, String outRef) throws Exception { DomainSearchTask dst = new DomainSearchTask(tempDir, storage); DomainAnnotation res = dst.runDomainSearch(token, inputData.getDmsRef(), inputData.getGenome()); saveResult(inputData.getOutWorkspace(), inputData.getOutResultId(), token, res, inputData); }
private void saveResult( String ws, String id, String token, DomainAnnotation annRes, SearchDomainsParams inputData) throws Exception { saveAnnotation( storage, token, ws, id, annRes, inputData.getGenome(), inputData, "search_domains"); }