pflex 1.4.1__tar.gz → 1.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.
- {pflex-1.4.1 → pflex-1.4.2}/.python-version +1 -1
- {pflex-1.4.1 → pflex-1.4.2}/PKG-INFO +1 -1
- {pflex-1.4.1 → pflex-1.4.2}/pyproject.toml +1 -1
- {pflex-1.4.1 → pflex-1.4.2}/src/pflex/analysis.py +3 -1
- {pflex-1.4.1 → pflex-1.4.2}/src/pflex/logging_config.py +2 -2
- {pflex-1.4.1 → pflex-1.4.2}/src/pflex/plotting.py +1739 -1739
- {pflex-1.4.1 → pflex-1.4.2}/uv.lock +1 -1
- {pflex-1.4.1 → pflex-1.4.2}/.gitignore +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/LICENSE +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/README.md +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/docs/getting-started.md +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/docs/index.md +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/docs/installation.md +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/docs/user-guide.md +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/mkdocs.yml +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/src/pflex/__init__.py +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/src/pflex/data/__init__.py +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/src/pflex/data/example_input/__init__.py +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/src/pflex/data/example_input/skin_cell_lines_corum_genes.parquet +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/src/pflex/data/example_input/soft_tissue_cell_lines_corum_genes.parquet +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/src/pflex/data/functional_standard/CORUM.parquet +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/src/pflex/data/functional_standard/GOBP.parquet +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/src/pflex/data/functional_standard/PATHWAY.parquet +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/src/pflex/data/functional_standard/__init__.py +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/src/pflex/data/functional_standard/corum.csv +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/src/pflex/data/functional_standard/gobp.csv +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/src/pflex/data/functional_standard/pathway.csv +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/src/pflex/examples/basic_usage.py +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/src/pflex/preprocessing.py +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/src/pflex/style.py +0 -0
- {pflex-1.4.1 → pflex-1.4.2}/src/pflex/utils.py +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
3.12
|
|
1
|
+
3.12
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: pflex
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.2
|
|
4
4
|
Summary: pflex is a benchmarking toolkit for evaluating CRISPR screen results against biological functional standards. The toolkit computes gene-level and module-level performance metrics, helping researchers systematically assess the biological relevance and resolution of their CRISPR screening data.
|
|
5
5
|
Author-email: Yasir Demirtas <tyasird@hotmail.com>
|
|
6
6
|
License-File: LICENSE
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pflex"
|
|
3
|
-
version = "1.4.
|
|
3
|
+
version = "1.4.2"
|
|
4
4
|
description = "pflex is a benchmarking toolkit for evaluating CRISPR screen results against biological functional standards. The toolkit computes gene-level and module-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 = [
|
|
@@ -998,7 +998,9 @@ def binary(corr):
|
|
|
998
998
|
if is_symmetric(corr):
|
|
999
999
|
corr = convert_full_to_half_matrix(corr)
|
|
1000
1000
|
|
|
1001
|
-
|
|
1001
|
+
# dropna(): pandas >= 3 stack() keeps NaN cells (the masked lower triangle and
|
|
1002
|
+
# diagonal); pandas 2 dropped them. Without it every pair is counted twice.
|
|
1003
|
+
stack = corr.stack().dropna().rename_axis(index=['gene1', 'gene2']).\
|
|
1002
1004
|
reset_index().rename(columns={0: 'score'})
|
|
1003
1005
|
if stack.empty:
|
|
1004
1006
|
log.done("Pair-wise conversion.")
|
|
@@ -3,7 +3,7 @@ import emoji
|
|
|
3
3
|
from loguru import logger as global_logger
|
|
4
4
|
from typing import TYPE_CHECKING
|
|
5
5
|
|
|
6
|
-
pkg_logger = global_logger.bind(name="pflex")
|
|
6
|
+
pkg_logger = global_logger.bind(name="pflex")
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class CustomLogger:
|
|
@@ -53,4 +53,4 @@ class CustomLogger:
|
|
|
53
53
|
if TYPE_CHECKING:
|
|
54
54
|
log: CustomLogger
|
|
55
55
|
else:
|
|
56
|
-
log = CustomLogger(pkg_logger)
|
|
56
|
+
log = CustomLogger(pkg_logger)
|