public void processResults(Future<List<QueryResult<Cytoband>>> cytobandFuture, List<QueryResult<VariantAnnotation>> variantAnnotationResults) throws InterruptedException, ExecutionException { while (!cytobandFuture.isDone()) { Thread.sleep(1); } List<QueryResult<Cytoband>> queryResultList = cytobandFuture.get(); if (queryResultList != null) { if (queryResultList.isEmpty()) { StringBuilder stringbuilder = new StringBuilder(variantList.get(0).toString()); for (int i = 1; i < variantList.size(); i++) { stringbuilder.append(",").append(variantList.get(i).toString()); } logger.warn("NO cytoband was found for any of these variants: {}", stringbuilder.toString()); } else { // Cytoband lists are returned in the same order in which variants are queried for (int i = 0; i < variantAnnotationResults.size(); i++) { QueryResult queryResult = queryResultList.get(i); if (queryResult.getResult() != null && queryResult.getResult().size() > 0) { variantAnnotationResults.get(i).getResult().get(0).setCytoband(queryResult.getResult()); } } } } } }
public void processResults(Future<List<QueryResult<Cytoband>>> cytobandFuture, List<QueryResult<VariantAnnotation>> variantAnnotationResults) throws InterruptedException, ExecutionException { while (!cytobandFuture.isDone()) { Thread.sleep(1); } List<QueryResult<Cytoband>> queryResultList = cytobandFuture.get(); if (queryResultList != null) { if (queryResultList.isEmpty()) { StringBuilder stringbuilder = new StringBuilder(variantList.get(0).toString()); for (int i = 1; i < variantList.size(); i++) { stringbuilder.append(",").append(variantList.get(i).toString()); } logger.warn("NO cytoband was found for any of these variants: {}", stringbuilder.toString()); } else { // Cytoband lists are returned in the same order in which variants are queried for (int i = 0; i < variantAnnotationResults.size(); i++) { QueryResult queryResult = queryResultList.get(i); if (queryResult.getResult() != null && queryResult.getResult().size() > 0) { variantAnnotationResults.get(i).getResult().get(0).setCytoband(queryResult.getResult()); } } } } } }
variantAnnotation.setCytoband(new ArrayList<>()); variantAnnotation.setRepeat(new ArrayList<>()); for (String other : variantSearchModel.getOther()) {
getDefault(c, CYTOBAND_END_FIELD, 0) )); va.setCytoband(cytobands);