pheval-exomiser 0.4.3__py3-none-any.whl → 0.4.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pheval_exomiser/post_process/post_process_results_format.py +6 -3
- {pheval_exomiser-0.4.3.dist-info → pheval_exomiser-0.4.5.dist-info}/METADATA +4 -4
- {pheval_exomiser-0.4.3.dist-info → pheval_exomiser-0.4.5.dist-info}/RECORD +5 -5
- {pheval_exomiser-0.4.3.dist-info → pheval_exomiser-0.4.5.dist-info}/WHEEL +0 -0
- {pheval_exomiser-0.4.3.dist-info → pheval_exomiser-0.4.5.dist-info}/entry_points.txt +0 -0
|
@@ -35,11 +35,12 @@ def trim_exomiser_result_filename(exomiser_result_path: Path) -> Path:
|
|
|
35
35
|
def extract_gene_results_from_json(
|
|
36
36
|
exomiser_json_result: pl.DataFrame, score_name: str
|
|
37
37
|
) -> pl.DataFrame:
|
|
38
|
+
score_expr = pl.col(score_name) if score_name in exomiser_json_result.columns else pl.lit(0.0)
|
|
38
39
|
return exomiser_json_result.select(
|
|
39
40
|
[
|
|
40
41
|
pl.col("geneSymbol").alias("gene_symbol"),
|
|
41
42
|
pl.col("geneIdentifier").struct.field("geneId").alias("gene_identifier"),
|
|
42
|
-
|
|
43
|
+
score_expr.fill_null(0.0).round(4).alias("score"),
|
|
43
44
|
]
|
|
44
45
|
).drop_nulls()
|
|
45
46
|
|
|
@@ -228,14 +229,16 @@ def create_standardised_results(
|
|
|
228
229
|
):
|
|
229
230
|
sort_order = SortOrder.ASCENDING if sort_order.lower() == "ascending" else SortOrder.DESCENDING
|
|
230
231
|
use_parquet = True if version.parse(exomiser_version) >= version.parse("15.0.0") else False
|
|
231
|
-
read_result = pl.read_parquet if use_parquet else pl.read_json
|
|
232
232
|
result_files = (
|
|
233
233
|
files_with_suffix(result_dir, ".parquet")
|
|
234
234
|
if use_parquet
|
|
235
235
|
else files_with_suffix(result_dir, ".json")
|
|
236
236
|
)
|
|
237
237
|
for exomiser_result_path in result_files:
|
|
238
|
-
|
|
238
|
+
if use_parquet:
|
|
239
|
+
exomiser_result = pl.read_parquet(exomiser_result_path)
|
|
240
|
+
else:
|
|
241
|
+
exomiser_result = pl.read_json(exomiser_result_path, infer_schema_length=None)
|
|
239
242
|
if gene_analysis:
|
|
240
243
|
gene_results = (
|
|
241
244
|
extract_gene_results_from_parquet(exomiser_result, score_name)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pheval_exomiser
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.5
|
|
4
4
|
Summary:
|
|
5
5
|
Author: Yasemin Bridges
|
|
6
6
|
Author-email: y.bridges@qmul.ac.uk
|
|
@@ -52,9 +52,9 @@ A `config.yaml` should be located in the input directory and formatted like so:
|
|
|
52
52
|
```yaml
|
|
53
53
|
tool: exomiser
|
|
54
54
|
tool_version: 13.2.0
|
|
55
|
-
variant_analysis:
|
|
56
|
-
gene_analysis:
|
|
57
|
-
disease_analysis:
|
|
55
|
+
variant_analysis: true
|
|
56
|
+
gene_analysis: true
|
|
57
|
+
disease_analysis: false
|
|
58
58
|
tool_specific_configuration_options:
|
|
59
59
|
environment: local
|
|
60
60
|
exomiser_software_directory: exomiser-cli-13.2.0
|
|
@@ -3,7 +3,7 @@ pheval_exomiser/cli.py,sha256=0SR1-L2sREEkFRfUPwYwkbSaBsz_L_Sxq1S4c9LQLJg,350
|
|
|
3
3
|
pheval_exomiser/constants.py,sha256=o_pLWF8kX74BqyTsAZa7twwSKzedLnpupCI90k_bMqY,517
|
|
4
4
|
pheval_exomiser/post_process/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
pheval_exomiser/post_process/post_process.py,sha256=bGNLO0LlsG26oKtvL3mtlcBTDY5gynKh1BwNjmUaIgI,972
|
|
6
|
-
pheval_exomiser/post_process/post_process_results_format.py,sha256=
|
|
6
|
+
pheval_exomiser/post_process/post_process_results_format.py,sha256=D-5Lh_prEUR-Mc_8_aBZJWBOhj8zyjdt723BHT0a9wY,12450
|
|
7
7
|
pheval_exomiser/prepare/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
pheval_exomiser/prepare/create_batch_commands.py,sha256=G-2pRboJalW8MeXDwSHR1ZAuhNdQJdHjJPxOo0KBgPM,18930
|
|
9
9
|
pheval_exomiser/prepare/tool_specific_configuration_options.py,sha256=pFzieoZogiPhSquN2p7THcXuCBrzqANwqbWO0e6BPu4,2943
|
|
@@ -11,7 +11,7 @@ pheval_exomiser/prepare/write_application_properties.py,sha256=KmG7GvkQo8AhnhRyq
|
|
|
11
11
|
pheval_exomiser/run/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
12
|
pheval_exomiser/run/run.py,sha256=n9cDv9E4d-NELCIY_v2UCrXqbWOo27TM2_9lPn-YOwI,8030
|
|
13
13
|
pheval_exomiser/runner.py,sha256=RqVobVJlOwcPzbO5gLjDtkGaygWdFT9VrlIvOmyBQPw,2706
|
|
14
|
-
pheval_exomiser-0.4.
|
|
15
|
-
pheval_exomiser-0.4.
|
|
16
|
-
pheval_exomiser-0.4.
|
|
17
|
-
pheval_exomiser-0.4.
|
|
14
|
+
pheval_exomiser-0.4.5.dist-info/METADATA,sha256=u8-_K3F7Zxk8Aqxd0rHfRorymeX1VZkOT4ud1N2Iojo,7294
|
|
15
|
+
pheval_exomiser-0.4.5.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
16
|
+
pheval_exomiser-0.4.5.dist-info/entry_points.txt,sha256=lbZMu-x7ns8UrFveWSqEQ1UB5l33TbRMomqBUyGYIwI,131
|
|
17
|
+
pheval_exomiser-0.4.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|