Skip to content

Commit

Permalink
adding biosamples in join queries
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed Oct 31, 2024
1 parent 7e6d166 commit 0149442
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion beacon/connections/mongo/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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={}
Expand Down

0 comments on commit 0149442

Please sign in to comment.