From 8cf3d048bba0a8f27c80bf29b9106dc5bcb123ec Mon Sep 17 00:00:00 2001 From: costero-e Date: Tue, 19 Nov 2024 11:24:51 +0100 Subject: [PATCH] applying filters to individuals of variants --- beacon/connections/mongo/g_variants.py | 2 +- docker-compose.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/beacon/connections/mongo/g_variants.py b/beacon/connections/mongo/g_variants.py index 4b1873b..c6fdb11 100644 --- a/beacon/connections/mongo/g_variants.py +++ b/beacon/connections/mongo/g_variants.py @@ -220,7 +220,7 @@ def get_individuals_of_variant(self, entry_id: Optional[str], qparams: RequestPa query_parameters={}# pragma: no cover else: query=query_parameters - query = apply_filters(self, query, qparams.query.filters, collection,query_parameters, dataset) + collection='individuals' HGVSIds = client.beacon.genomicVariations \ .find(query, {"identifiers.genomicHGVSId": 1, "datasetId": 1, "_id": 0}) HGVSIds=list(HGVSIds) diff --git a/docker-compose.yml b/docker-compose.yml index 42926c9..cb9270a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -78,6 +78,7 @@ services: MONGO_INITDB_DATABASE: beacon volumes: - ./beacon/connections/mongo/mongo-init/:/docker-entrypoint-initdb.d/:ro + - ./beacon/connections/mongo/data/:/data networks: - pub #command: --verbose