Skip to content

Commit 369fa83

Browse files
committed
storage: Add assembly as QueryParam for CellBaseRestVariantAnnotator
1 parent 020a375 commit 369fa83

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

opencga-storage/opencga-storage-core/src/main/java/org/opencb/opencga/storage/core/variant/annotation/annotators/CellBaseRestVariantAnnotator.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ public CellBaseRestVariantAnnotator(StorageConfiguration storageConfiguration, O
4040
cellBaseClient = new CellBaseClient(species, clientConfiguration);
4141
this.cellBaseClient = cellBaseClient;
4242

43+
// Add assembly as QueryOption!
44+
// TODO: In newer cellbase version, this parameter is given in the CellBaseClient constructor
45+
queryOptions.putIfNotEmpty("assembly", assembly);
46+
4347
logger.info("Annotating with Cellbase REST. host '{}', version '{}', species '{}', assembly '{}'",
4448
cellbaseRest, cellbaseVersion, species, assembly);
4549
}

0 commit comments

Comments
 (0)