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 bae7585
Show file tree
Hide file tree
Showing 4 changed files with 10 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: 2 additions & 0 deletions genmod/score_variants/compound_scorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ def run(self):
new_compound = "{0}>{1}".format(compound_id, compound_score)
scored_compound_list.append(new_compound)

# Sort compound variants lexicographically
scored_compound_list.sort()
new_compound_string = "{0}:{1}".format(
compound_family_id, '|'.join(scored_compound_list))

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ configobj == 5.0.8
intervaltree == 3.1.0
extract_vcf == 0.5
vcftoolbox == 1.5.1
six == 1.16.0
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
'configobj >= 5.0.8',
'intervaltree >= 3.1.0',
'extract_vcf >= 0.5',
'vcftoolbox >= 1.5.1'
'vcftoolbox >= 1.5.1',
'six >= 1.16.0',
],
packages=find_packages(
exclude=('tests*', 'docs', 'examples', 'configs')
Expand Down

0 comments on commit bae7585

Please sign in to comment.