pythonflex 0.2.4__tar.gz → 0.3.1__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.
Files changed (32) hide show
  1. {pythonflex-0.2.4 → pythonflex-0.3.1}/PKG-INFO +1 -1
  2. {pythonflex-0.2.4 → pythonflex-0.3.1}/pyproject.toml +7 -1
  3. {pythonflex-0.2.4 → pythonflex-0.3.1}/src/pythonflex/__init__.py +20 -18
  4. {pythonflex-0.2.4 → pythonflex-0.3.1}/src/pythonflex/analysis.py +607 -146
  5. pythonflex-0.3.1/src/pythonflex/data/__init__.py +0 -0
  6. pythonflex-0.3.1/src/pythonflex/data/dataset/__init__.py +0 -0
  7. pythonflex-0.3.1/src/pythonflex/data/gold_standard/__init__.py +0 -0
  8. {pythonflex-0.2.4 → pythonflex-0.3.1}/src/pythonflex/examples/basic_usage.py +2 -13
  9. pythonflex-0.3.1/src/pythonflex/examples/comparison.py +78 -0
  10. {pythonflex-0.2.4 → pythonflex-0.3.1}/src/pythonflex/examples/dataset_filtering.py +11 -0
  11. pythonflex-0.3.1/src/pythonflex/examples/diag.py +106 -0
  12. pythonflex-0.3.1/src/pythonflex/examples/test2.py +11 -0
  13. pythonflex-0.3.1/src/pythonflex/plotting.py +1692 -0
  14. {pythonflex-0.2.4 → pythonflex-0.3.1}/src/pythonflex/preprocessing.py +85 -25
  15. pythonflex-0.3.1/todo.txt +1 -0
  16. pythonflex-0.2.4/src/pythonflex/plotting.py +0 -672
  17. {pythonflex-0.2.4 → pythonflex-0.3.1}/.gitignore +0 -0
  18. {pythonflex-0.2.4 → pythonflex-0.3.1}/.python-version +0 -0
  19. {pythonflex-0.2.4 → pythonflex-0.3.1}/README.md +0 -0
  20. {pythonflex-0.2.4 → pythonflex-0.3.1}/src/pythonflex/data/dataset/liver_cell_lines_500_genes.csv +0 -0
  21. {pythonflex-0.2.4 → pythonflex-0.3.1}/src/pythonflex/data/dataset/melanoma_cell_lines_500_genes.csv +0 -0
  22. {pythonflex-0.2.4 → pythonflex-0.3.1}/src/pythonflex/data/dataset/neuroblastoma_cell_lines_500_genes.csv +0 -0
  23. {pythonflex-0.2.4 → pythonflex-0.3.1}/src/pythonflex/data/gold_standard/CORUM.parquet +0 -0
  24. {pythonflex-0.2.4 → pythonflex-0.3.1}/src/pythonflex/data/gold_standard/GOBP.parquet +0 -0
  25. {pythonflex-0.2.4 → pythonflex-0.3.1}/src/pythonflex/data/gold_standard/PATHWAY.parquet +0 -0
  26. {pythonflex-0.2.4 → pythonflex-0.3.1}/src/pythonflex/data/gold_standard/corum.csv +0 -0
  27. {pythonflex-0.2.4 → pythonflex-0.3.1}/src/pythonflex/data/gold_standard/gobp.csv +0 -0
  28. {pythonflex-0.2.4 → pythonflex-0.3.1}/src/pythonflex/data/gold_standard/pathway.csv +0 -0
  29. {pythonflex-0.2.4 → pythonflex-0.3.1}/src/pythonflex/examples/test.py +0 -0
  30. {pythonflex-0.2.4 → pythonflex-0.3.1}/src/pythonflex/logging_config.py +0 -0
  31. {pythonflex-0.2.4 → pythonflex-0.3.1}/src/pythonflex/utils.py +0 -0
  32. {pythonflex-0.2.4 → pythonflex-0.3.1}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pythonflex
3
- Version: 0.2.4
3
+ Version: 0.3.1
4
4
  Summary: pythonFLEX is a benchmarking toolkit for evaluating CRISPR screen results against biological gold standards. The toolkit computes gene-level and complex-level performance metrics, helping researchers systematically assess the biological relevance and resolution of their CRISPR screening data.
5
5
  Author-email: Yasir Demirtaş <tyasird@hotmail.com>
6
6
  Requires-Python: >=3.9
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pythonflex"
3
- version = "0.2.4"
3
+ version = "0.3.1"
4
4
  description = "pythonFLEX is a benchmarking toolkit for evaluating CRISPR screen results against biological gold standards. The toolkit computes gene-level and complex-level performance metrics, helping researchers systematically assess the biological relevance and resolution of their CRISPR screening data."
5
5
  readme = "README.md"
6
6
  authors = [
@@ -45,6 +45,12 @@ build-backend = "hatchling.build"
45
45
  [tool.ruff]
46
46
  ignore = ["F541"]
47
47
 
48
+ [tool.setuptools]
49
+ include-package-data = true
50
+
51
+ [tool.setuptools.packages.find]
52
+ include = ["pythonflex*"]
53
+
48
54
  [tool.setuptools.package-data]
49
55
  pythonflex = ["data/**/*.parquet", "data/**/*.csv", "data/**/*.tsv", "data/**/*.json", "data/**/*.txt", "data/**/*.xlsx", "data/**/*.xls", "data/**/*.h5", "data/**/*.hdf5"]
50
56
 
@@ -1,18 +1,20 @@
1
-
2
- from .logging_config import log
3
- from .utils import dsave, dload
4
- from .preprocessing import get_example_data_path, load_datasets, get_common_genes, filter_matrix_by_genes, load_gold_standard, filter_duplicate_terms
5
- from .analysis import initialize, pra, pra_percomplex, fast_corr, perform_corr, is_symmetric, binary, has_mirror_of_first_pair, convert_full_to_half_matrix, drop_mirror_pairs, quick_sort, complex_contributions, save_results_to_csv, update_matploblib_config
6
- from .plotting import (
7
- adjust_text_positions, plot_precision_recall_curve, plot_percomplex_scatter,
8
- plot_percomplex_scatter_bysize, plot_complex_contributions, plot_significant_complexes, plot_auc_scores
9
- )
10
-
11
- __all__ = [ "log", "get_example_data_path", "fast_corr",
12
- "initialize", "dsave", "dload", "load_datasets", "get_common_genes",
13
- "filter_matrix_by_genes", "load_gold_standard", "filter_duplicate_terms", "pra", "pra_percomplex",
14
- "perform_corr", "is_symmetric", "binary", "has_mirror_of_first_pair", "convert_full_to_half_matrix",
15
- "drop_mirror_pairs", "quick_sort", "complex_contributions", "adjust_text_positions", "plot_precision_recall_curve",
16
- "plot_percomplex_scatter", "plot_percomplex_scatter_bysize", "plot_complex_contributions",
17
- "plot_significant_complexes", "plot_auc_scores", "save_results_to_csv", "update_matploblib_config"
18
- ]
1
+ from .logging_config import log
2
+ from .utils import dsave, dload
3
+ from .preprocessing import get_example_data_path, load_datasets, get_common_genes, filter_matrix_by_genes, load_gold_standard, filter_duplicate_terms
4
+ from .analysis import initialize, pra, pra_percomplex, fast_corr, perform_corr, is_symmetric, binary, has_mirror_of_first_pair, convert_full_to_half_matrix, drop_mirror_pairs, quick_sort, complex_contributions, save_results_to_csv, update_matploblib_config, mpr_prepare
5
+ from .plotting import (
6
+ adjust_text_positions, plot_precision_recall_curve, plot_percomplex_scatter,
7
+ plot_percomplex_scatter_bysize, plot_complex_contributions, plot_significant_complexes, plot_auc_scores,
8
+ plot_mpr_tp, plot_mpr_complexes, plot_mpr_tp_multi, plot_mpr_complexes_multi
9
+ )
10
+
11
+ __all__ = [ "log", "get_example_data_path", "fast_corr",
12
+ "initialize", "dsave", "dload", "load_datasets", "get_common_genes",
13
+ "filter_matrix_by_genes", "load_gold_standard", "filter_duplicate_terms", "pra", "pra_percomplex",
14
+ "perform_corr", "is_symmetric", "binary", "has_mirror_of_first_pair", "convert_full_to_half_matrix",
15
+ "drop_mirror_pairs", "quick_sort", "complex_contributions", "adjust_text_positions", "plot_precision_recall_curve",
16
+ "plot_percomplex_scatter", "plot_percomplex_scatter_bysize", "plot_complex_contributions",
17
+ "plot_significant_complexes", "plot_auc_scores", "save_results_to_csv", "update_matploblib_config",
18
+ "mpr_prepare", "plot_mpr_tp", "plot_mpr_complexes",
19
+ "plot_mpr_tp_multi", "plot_mpr_complexes_multi"
20
+ ]