Skip to content

Commit

Permalink
lib: the variant annotation calculator search SNP ids only if the col…
Browse files Browse the repository at this point in the history
…lection snp exists, #TASK-5821, #TASK-5789
  • Loading branch information
jtarraga committed Mar 13, 2024
1 parent 7670702 commit f206fe5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ private List<VariantAnnotation> runAnnotationProcess(List<Variant> normalizedVar

FutureSnpAnnotator futureSnpAnnotator = null;
Future<List<CellBaseDataResult<Snp>>> snpFuture = null;
if (annotatorSet.contains("xrefs")) {
if (annotatorSet.contains("xrefs") && dataRelease.getCollections().containsKey(EtlCommons.SNP_COLLECTION_NAME)) {
futureSnpAnnotator = new FutureSnpAnnotator(normalizedVariantList, dataRelease.getRelease(), variantManager, logger);
snpFuture = CACHED_THREAD_POOL.submit(futureSnpAnnotator);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,9 @@ public Response getAllConsequenceTypes() {
}
}

//-------------------------------------------------------------------------
// S N P
//-------------------------------------------------------------------------
@GET
@Path("/snp/search")
@ApiOperation(httpMethod = "GET", value = "Get SNPs", response = Snp.class, responseContainer = "QueryResponse")
Expand Down

0 comments on commit f206fe5

Please sign in to comment.