Skip to content

Commit

Permalink
variant annotation ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
jodyphelan committed Aug 29, 2024
1 parent 1c7e1be commit cc30408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tbprofiler/reformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def clean_up_duplicate_annotations(variants: Variant) -> None:
"""
confidence_levels = ['Assoc w R','Assoc w R - Interim','Uncertain significance','Not assoc w R - Interim','Not assoc w R']
for var in variants:
keys = set([(ann['type'],ann['drug']) for ann in var.annotation])
keys = sorted(list(set([(ann['type'],ann['drug']) for ann in var.annotation])))
new_annotations = []
for key in keys:
confidence_anns = []
Expand Down

0 comments on commit cc30408

Please sign in to comment.