Skip to content

Commit

Permalink
adding chr X and Y to list
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed Oct 18, 2024
1 parent 96fc32b commit afca6b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon/connections/mongo/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ def apply_alphanumeric_filter(self, query: dict, filter: AlphanumericFilter, col
formatted_operator = format_operator(self, filter.operator)
if collection == 'g_variants' and scope != 'individual' and scope != 'run':
if filter.id == "identifiers.genomicHGVSId":
list_chromosomes = ['1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22']
list_chromosomes = ['1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','X','Y']
dict_regex={}
if filter.value == 'GRCh38':
dict_regex['$regex']="11:"
Expand Down

0 comments on commit afca6b3

Please sign in to comment.