pheval 0.4.0__tar.gz → 0.4.2__tar.gz

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.

Files changed (56) hide show
  1. {pheval-0.4.0 → pheval-0.4.2}/PKG-INFO +2 -1
  2. {pheval-0.4.0 → pheval-0.4.2}/pyproject.toml +1 -1
  3. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/analyse/generate_summary_outputs.py +1 -1
  4. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/prepare/prepare_corpus.py +5 -0
  5. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/utils/phenopacket_utils.py +13 -0
  6. {pheval-0.4.0 → pheval-0.4.2}/LICENSE +0 -0
  7. {pheval-0.4.0 → pheval-0.4.2}/README.md +0 -0
  8. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/__init__.py +0 -0
  9. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/analyse/__init__.py +0 -0
  10. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/analyse/analysis.py +0 -0
  11. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/analyse/assess_prioritisation_base.py +0 -0
  12. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/analyse/benchmark_db_manager.py +0 -0
  13. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/analyse/benchmark_generator.py +0 -0
  14. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/analyse/benchmarking_data.py +0 -0
  15. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/analyse/binary_classification_stats.py +0 -0
  16. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/analyse/disease_prioritisation_analysis.py +0 -0
  17. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/analyse/gene_prioritisation_analysis.py +0 -0
  18. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/analyse/generate_plots.py +0 -0
  19. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/analyse/parse_benchmark_summary.py +0 -0
  20. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/analyse/parse_corpus.py +0 -0
  21. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/analyse/prioritisation_result_types.py +0 -0
  22. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/analyse/rank_stats.py +0 -0
  23. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/analyse/run_data_parser.py +0 -0
  24. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/analyse/variant_prioritisation_analysis.py +0 -0
  25. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/cli.py +0 -0
  26. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/cli_pheval.py +0 -0
  27. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/cli_pheval_utils.py +0 -0
  28. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/config_parser.py +0 -0
  29. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/implementations/__init__.py +0 -0
  30. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/infra/__init__.py +0 -0
  31. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/infra/exomiserdb.py +0 -0
  32. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/post_processing/__init__.py +0 -0
  33. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/post_processing/post_processing.py +0 -0
  34. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/prepare/__init__.py +0 -0
  35. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/prepare/create_noisy_phenopackets.py +0 -0
  36. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/prepare/create_spiked_vcf.py +0 -0
  37. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/prepare/custom_exceptions.py +0 -0
  38. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/prepare/update_phenopacket.py +0 -0
  39. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/resources/alternate_ouputs/CADA_results.txt +0 -0
  40. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/resources/alternate_ouputs/DeepPVP_results.txt +0 -0
  41. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/resources/alternate_ouputs/OVA_results.txt +0 -0
  42. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/resources/alternate_ouputs/Phen2Gene_results.json +0 -0
  43. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/resources/alternate_ouputs/Phenolyzer_results.txt +0 -0
  44. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/resources/alternate_ouputs/lirical_results.tsv +0 -0
  45. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/resources/alternate_ouputs/svanna_results.tsv +0 -0
  46. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/resources/hgnc_complete_set.txt +0 -0
  47. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/run_metadata.py +0 -0
  48. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/runners/__init__.py +0 -0
  49. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/runners/runner.py +0 -0
  50. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/utils/__init__.py +0 -0
  51. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/utils/docs_gen.py +0 -0
  52. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/utils/docs_gen.sh +0 -0
  53. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/utils/exomiser.py +0 -0
  54. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/utils/file_utils.py +0 -0
  55. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/utils/semsim_utils.py +0 -0
  56. {pheval-0.4.0 → pheval-0.4.2}/src/pheval/utils/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pheval
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary:
5
5
  Author: Yasemin Bridges
6
6
  Author-email: y.bridges@qmul.ac.uk
@@ -10,6 +10,7 @@ Classifier: Programming Language :: Python :: 3.9
10
10
  Classifier: Programming Language :: Python :: 3.10
11
11
  Classifier: Programming Language :: Python :: 3.11
12
12
  Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
13
14
  Requires-Dist: class-resolver (>=0.4.2)
14
15
  Requires-Dist: click (>=8.1.3)
15
16
  Requires-Dist: deprecation (>=2.1.0)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pheval"
3
- version = "0.4.0"
3
+ version = "0.4.2"
4
4
  description = ""
5
5
  authors = ["Yasemin Bridges <y.bridges@qmul.ac.uk>",
6
6
  "Julius Jacobsen <j.jacobsen@qmul.ac.uk>",
@@ -39,7 +39,7 @@ def create_comparison_table(
39
39
  table_name (str): Name of the table to extract ranks from
40
40
  """
41
41
  connector.drop_table(comparison_table_name)
42
- excluded_columns = (", ".join(drop_columns), "identifier") if drop_columns else ("identifier",)
42
+ excluded_columns = tuple(drop_columns + ["identifier"]) if drop_columns else ("identifier",)
43
43
  connector.conn.execute(
44
44
  f'CREATE TABLE "{comparison_table_name}" AS SELECT * '
45
45
  f"EXCLUDE {excluded_columns} FROM {table_name}"
@@ -57,6 +57,11 @@ def prepare_corpus(
57
57
  f"Removed {phenopacket_path.name} from the corpus due to missing variant fields."
58
58
  )
59
59
  continue
60
+ elif phenopacket_util.check_variant_alleles():
61
+ info_log.warning(
62
+ f"Removed {phenopacket_path.name} from the corpus due to identical "
63
+ "reference and alternate allele fields."
64
+ )
60
65
  if gene_analysis:
61
66
  if phenopacket_util.check_incomplete_gene_record():
62
67
  info_log.warning(
@@ -503,6 +503,19 @@ class PhenopacketUtil:
503
503
  return True
504
504
  return False
505
505
 
506
+ def check_variant_alleles(self) -> bool:
507
+ """
508
+ Check if any variant record in the phenopacket has identical reference and alternate alleles.
509
+
510
+ Returns:
511
+ bool: True if the reference and alternate alleles are identical, False otherwise.
512
+ """
513
+ variants = self.diagnosed_variants()
514
+ for variant in variants:
515
+ if variant.ref == variant.alt:
516
+ return True
517
+ return False
518
+
506
519
  def check_incomplete_gene_record(self) -> bool:
507
520
  """
508
521
  Check if any gene record in the phenopacket has incomplete information.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes