Skip to content

Commit

Permalink
adding chromosomes X and Y
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed Oct 18, 2024
1 parent ac31fd3 commit 96fc32b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion beacon/connections/mongo/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,12 @@ def apply_alphanumeric_filter(self, query: dict, filter: AlphanumericFilter, col
elif filter.value == 'NCBI36':
dict_regex['$regex']="9:"
elif filter.value in list_chromosomes:
dict_regex['$regex']='^NC_0000'+filter.value
if filter.value == 'X':
dict_regex['$regex']='^NC_0000'+'23'
elif filter.value == 'Y':
dict_regex['$regex']='^NC_0000'+'24'
else:
dict_regex['$regex']='^NC_0000'+filter.value
elif '>' in filter.value:# pragma: no cover
dict_regex=filter.value
elif '.' in filter.value:# pragma: no cover
Expand Down

0 comments on commit 96fc32b

Please sign in to comment.