@@ -15,10 +15,10 @@ class AssessVariantPrioritisation(AssessPrioritisationBase):
15
15
"""Class for assessing variant prioritisation based on thresholds and scoring orders."""
16
16
17
17
def assess_variant_prioritisation (
18
- self ,
19
- standardised_variant_result_path : Path ,
20
- phenopacket_path : Path ,
21
- binary_classification_stats : BinaryClassificationStats ,
18
+ self ,
19
+ standardised_variant_result_path : Path ,
20
+ phenopacket_path : Path ,
21
+ binary_classification_stats : BinaryClassificationStats ,
22
22
) -> None :
23
23
"""
24
24
Assess variant prioritisation.
@@ -73,18 +73,22 @@ def assess_variant_prioritisation(
73
73
elif len (result ) == 0 :
74
74
relevant_ranks .append (0 )
75
75
binary_classification_stats .add_classification (
76
- self .db_connection .parse_table_into_dataclass (
77
- str (standardised_variant_result_path ), RankedPhEvalVariantResult
78
- ) if standardised_variant_result_path .exists () else [],
76
+ (
77
+ self .db_connection .parse_table_into_dataclass (
78
+ str (standardised_variant_result_path ), RankedPhEvalVariantResult
79
+ )
80
+ if standardised_variant_result_path .exists ()
81
+ else []
82
+ ),
79
83
relevant_ranks ,
80
84
)
81
85
82
86
83
87
def assess_phenopacket_variant_prioritisation (
84
- phenopacket_path : Path ,
85
- run : RunConfig ,
86
- variant_binary_classification_stats : BinaryClassificationStats ,
87
- variant_benchmarker : AssessVariantPrioritisation ,
88
+ phenopacket_path : Path ,
89
+ run : RunConfig ,
90
+ variant_binary_classification_stats : BinaryClassificationStats ,
91
+ variant_benchmarker : AssessVariantPrioritisation ,
88
92
) -> None :
89
93
"""
90
94
Assess variant prioritisation for a Phenopacket by comparing PhEval standardised variant results
@@ -107,10 +111,10 @@ def assess_phenopacket_variant_prioritisation(
107
111
108
112
109
113
def benchmark_variant_prioritisation (
110
- benchmark_name : str ,
111
- run : RunConfig ,
112
- score_order : str ,
113
- threshold : float ,
114
+ benchmark_name : str ,
115
+ run : RunConfig ,
116
+ score_order : str ,
117
+ threshold : float ,
114
118
):
115
119
"""
116
120
Benchmark a directory based on variant prioritisation results.
0 commit comments