From 0149442cd6cba0785ef5d683ded5e5104ee7e550 Mon Sep 17 00:00:00 2001 From: costero-e Date: Thu, 31 Oct 2024 10:08:51 +0100 Subject: [PATCH] adding biosamples in join queries --- beacon/connections/mongo/filters.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beacon/connections/mongo/filters.py b/beacon/connections/mongo/filters.py index 4d7f9a4..6976c8f 100644 --- a/beacon/connections/mongo/filters.py +++ b/beacon/connections/mongo/filters.py @@ -77,7 +77,7 @@ def cross_query(self, query: dict, scope: str, collection: str, request_paramete listHGVS.append(justid) queryHGVS["$in"]=listHGVS query["identifiers.genomicHGVSId"]=queryHGVS - elif scope == 'individual' and collection in ['runs','biosamples', 'analyses']: + elif scope == 'individual' and collection in ['runs','biosamples','analyses']: mongo_collection=client.beacon.individuals original_id="id" join_ids=list(join_query(self, mongo_collection, query, original_id)) @@ -672,6 +672,7 @@ def apply_ontology_filter(self, query: dict, filter: OntologyFilter, collection: dict_regex['$regex']=label except Exception:# pragma: no cover dict_regex['$regex']='' + LOG.debug(dict_regex) dict_id={} dict_id['id']=dict_regex dict_scope={}