pheval 0.6.0__py3-none-any.whl → 0.6.2__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.

Potentially problematic release.


This version of pheval might be problematic. Click here for more details.

@@ -225,7 +225,9 @@ class PhenopacketTruthSet:
225
225
  pl.lit(0).cast(pl.Int64).alias("rank"),
226
226
  pl.lit(True).alias("true_positive"),
227
227
  pl.col("disease_identifier")
228
- .map_elements(lambda x: map_disease_id(x, mondo_mapping_table))
228
+ .map_elements(
229
+ lambda x: map_disease_id(x, mondo_mapping_table), return_dtype=pl.Utf8
230
+ )
229
231
  .alias("mondo_identifier"),
230
232
  ]
231
233
  )
@@ -150,7 +150,10 @@ def _get_result_type(
150
150
  case ResultType.VARIANT:
151
151
  return phenopacket_truth_set.classified_variant, _write_variant_result
152
152
  case ResultType.DISEASE:
153
- return phenopacket_truth_set.classified_disease, _write_disease_result
153
+ return (
154
+ lambda id_: phenopacket_truth_set.classified_disease(id_, mondo_mapping_table),
155
+ _write_disease_result,
156
+ )
154
157
 
155
158
 
156
159
  def create_empty_pheval_result(
@@ -178,7 +181,7 @@ def create_empty_pheval_result(
178
181
  f"phenopackets to {output_dir}"
179
182
  )
180
183
  executed_results.add(result_type)
181
- phenopacket_truth_set = PhenopacketTruthSet(phenopacket_dir, mondo_mapping_table)
184
+ phenopacket_truth_set = PhenopacketTruthSet(phenopacket_dir)
182
185
  classify_method, write_method = _get_result_type(result_type, phenopacket_truth_set)
183
186
  for file in all_files(phenopacket_dir):
184
187
  classified_results = classify_method(file.stem)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pheval
3
- Version: 0.6.0
3
+ Version: 0.6.2
4
4
  Summary:
5
5
  Author: Yasemin Bridges
6
6
  Author-email: y.bridges@qmul.ac.uk
@@ -19,8 +19,8 @@ pheval/infra/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  pheval/infra/exomiserdb.py,sha256=pM9-TfjrgurtH4OtM1Enk5oVhIxGQN3rKRlrxHuObTM,5080
20
20
  pheval/post_processing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  pheval/post_processing/mondo_mapping.py,sha256=Vetk0acOtR__FXnx9wy2pcDDWFz1mQkc88alKUn0muI,937
22
- pheval/post_processing/phenopacket_truth_set.py,sha256=oD2072hrv0xdiJdPv8X6bSHPCp771ApgJB9q0ZODqAg,10241
23
- pheval/post_processing/post_processing.py,sha256=qxQVq-vPWy8wr1Tqh6KK8J7M_97mYqpsSzKHGrQr5aY,10100
22
+ pheval/post_processing/phenopacket_truth_set.py,sha256=xSP9uu6Qxuog4HFXJiRJdBdQXn6GLSKBgSDpH4TtgD4,10301
23
+ pheval/post_processing/post_processing.py,sha256=g99MBjGzl5qPi8CK6CLKH0XAFdkt1uSye25VbzqV1Kg,10166
24
24
  pheval/post_processing/validate_result_format.py,sha256=w7zbpbS-fxwQuUwkqJPsD2nQV4SZxxVk3e7-MZEBV8I,2891
25
25
  pheval/prepare/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
26
  pheval/prepare/create_noisy_phenopackets.py,sha256=kYFwQjBJN6gla2I51X3zfucVmnRB7kwH2uqi1ElWzkg,12291
@@ -50,8 +50,8 @@ pheval/utils/logger.py,sha256=5DZl5uMltUDQorhkvg_B7_ZhFwApAmEkWneFIOKfRGQ,1566
50
50
  pheval/utils/phenopacket_utils.py,sha256=XGnFLarvXezFR0W5frzyGTwEbhcA3zuGJPg1r5YBscg,27326
51
51
  pheval/utils/semsim_utils.py,sha256=s7ZCR2VfPYnOh7ApX6rv66eGoVSm9QJaVYOWBEhlXpo,6151
52
52
  pheval/utils/utils.py,sha256=23bQPL-HmzHnMRJSe4doJdj6rtmFyfO77FOH3wyFZZI,4518
53
- pheval-0.6.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
54
- pheval-0.6.0.dist-info/METADATA,sha256=VGQMH-jfJKhkZgcfxP9FfhA9TcV3ykRa_CLnzlQX0Us,6494
55
- pheval-0.6.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
56
- pheval-0.6.0.dist-info/entry_points.txt,sha256=o9gSwDkvT4-lqKy4mlsftd1nzP9WUOXQCfnbqycURd0,81
57
- pheval-0.6.0.dist-info/RECORD,,
53
+ pheval-0.6.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
54
+ pheval-0.6.2.dist-info/METADATA,sha256=JoaNkCAumkYxaLgAjBL8_dStiIaRxM18wsBER0TQIeA,6494
55
+ pheval-0.6.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
56
+ pheval-0.6.2.dist-info/entry_points.txt,sha256=o9gSwDkvT4-lqKy4mlsftd1nzP9WUOXQCfnbqycURd0,81
57
+ pheval-0.6.2.dist-info/RECORD,,
File without changes