Skip to content

Commit

Permalink
Fix unstable variants in models output
Browse files Browse the repository at this point in the history
  • Loading branch information
fellen31 committed Sep 23, 2024
1 parent d8090a2 commit 0ebdbd8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Please add a new candidate release at the top after changing the latest one. Fee

Try to use the following format:

## [3.8.3]

- Fixed unstable compounds order in models output ([#133](https://github.com/Clinical-Genomics/genmod/issues/133))

## [3.8.0]
- Rank score normalisation

Expand All @@ -22,4 +26,4 @@ Try to use the following format:
- Adds support for escaped characters in FORMAT description header strings

### Fixed
- Documentation about cli options `strict` and `phased`
- Documentation about cli options `strict` and `phased`
2 changes: 1 addition & 1 deletion genmod/score_variants/compound_scorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def run(self):
scored_compound_list.append(new_compound)

new_compound_string = "{0}:{1}".format(
compound_family_id, '|'.join(scored_compound_list))
compound_family_id, '|'.join(scored_compound_list.sort()))

current_rank_score = float(current_rank_score) # Export rank score as float type
new_rank_score_string = "{0}:{1}".format(compound_family_id, current_rank_score)
Expand Down

0 comments on commit 0ebdbd8

Please sign in to comment.