napistu 0.1.0__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 (83) hide show
  1. napistu-0.1.0/LICENSE +21 -0
  2. napistu-0.1.0/PKG-INFO +56 -0
  3. napistu-0.1.0/README.md +11 -0
  4. napistu-0.1.0/pyproject.toml +3 -0
  5. napistu-0.1.0/setup.cfg +66 -0
  6. napistu-0.1.0/setup.py +4 -0
  7. napistu-0.1.0/src/napistu/__init__.py +12 -0
  8. napistu-0.1.0/src/napistu/__main__.py +867 -0
  9. napistu-0.1.0/src/napistu/consensus.py +1557 -0
  10. napistu-0.1.0/src/napistu/constants.py +500 -0
  11. napistu-0.1.0/src/napistu/gcs/__init__.py +10 -0
  12. napistu-0.1.0/src/napistu/gcs/constants.py +69 -0
  13. napistu-0.1.0/src/napistu/gcs/downloads.py +180 -0
  14. napistu-0.1.0/src/napistu/identifiers.py +805 -0
  15. napistu-0.1.0/src/napistu/indices.py +227 -0
  16. napistu-0.1.0/src/napistu/ingestion/__init__.py +10 -0
  17. napistu-0.1.0/src/napistu/ingestion/bigg.py +146 -0
  18. napistu-0.1.0/src/napistu/ingestion/constants.py +296 -0
  19. napistu-0.1.0/src/napistu/ingestion/cpr_edgelist.py +106 -0
  20. napistu-0.1.0/src/napistu/ingestion/identifiers_etl.py +148 -0
  21. napistu-0.1.0/src/napistu/ingestion/obo.py +268 -0
  22. napistu-0.1.0/src/napistu/ingestion/psi_mi.py +276 -0
  23. napistu-0.1.0/src/napistu/ingestion/reactome.py +218 -0
  24. napistu-0.1.0/src/napistu/ingestion/sbml.py +621 -0
  25. napistu-0.1.0/src/napistu/ingestion/string.py +356 -0
  26. napistu-0.1.0/src/napistu/ingestion/trrust.py +285 -0
  27. napistu-0.1.0/src/napistu/ingestion/yeast.py +147 -0
  28. napistu-0.1.0/src/napistu/mechanism_matching.py +597 -0
  29. napistu-0.1.0/src/napistu/modify/__init__.py +10 -0
  30. napistu-0.1.0/src/napistu/modify/constants.py +86 -0
  31. napistu-0.1.0/src/napistu/modify/curation.py +628 -0
  32. napistu-0.1.0/src/napistu/modify/gaps.py +635 -0
  33. napistu-0.1.0/src/napistu/modify/pathwayannot.py +1381 -0
  34. napistu-0.1.0/src/napistu/modify/uncompartmentalize.py +264 -0
  35. napistu-0.1.0/src/napistu/network/__init__.py +10 -0
  36. napistu-0.1.0/src/napistu/network/constants.py +117 -0
  37. napistu-0.1.0/src/napistu/network/neighborhoods.py +1594 -0
  38. napistu-0.1.0/src/napistu/network/net_create.py +1647 -0
  39. napistu-0.1.0/src/napistu/network/net_utils.py +652 -0
  40. napistu-0.1.0/src/napistu/network/paths.py +500 -0
  41. napistu-0.1.0/src/napistu/network/precompute.py +221 -0
  42. napistu-0.1.0/src/napistu/rpy2/__init__.py +127 -0
  43. napistu-0.1.0/src/napistu/rpy2/callr.py +168 -0
  44. napistu-0.1.0/src/napistu/rpy2/constants.py +101 -0
  45. napistu-0.1.0/src/napistu/rpy2/netcontextr.py +464 -0
  46. napistu-0.1.0/src/napistu/rpy2/rids.py +697 -0
  47. napistu-0.1.0/src/napistu/sbml_dfs_core.py +2216 -0
  48. napistu-0.1.0/src/napistu/sbml_dfs_utils.py +304 -0
  49. napistu-0.1.0/src/napistu/source.py +394 -0
  50. napistu-0.1.0/src/napistu/utils.py +943 -0
  51. napistu-0.1.0/src/napistu.egg-info/PKG-INFO +56 -0
  52. napistu-0.1.0/src/napistu.egg-info/SOURCES.txt +82 -0
  53. napistu-0.1.0/src/napistu.egg-info/dependency_links.txt +1 -0
  54. napistu-0.1.0/src/napistu.egg-info/entry_points.txt +2 -0
  55. napistu-0.1.0/src/napistu.egg-info/requires.txt +30 -0
  56. napistu-0.1.0/src/napistu.egg-info/top_level.txt +2 -0
  57. napistu-0.1.0/src/tests/__init__.py +0 -0
  58. napistu-0.1.0/src/tests/conftest.py +83 -0
  59. napistu-0.1.0/src/tests/test_consensus.py +255 -0
  60. napistu-0.1.0/src/tests/test_constants.py +20 -0
  61. napistu-0.1.0/src/tests/test_curation.py +134 -0
  62. napistu-0.1.0/src/tests/test_data/__init__.py +0 -0
  63. napistu-0.1.0/src/tests/test_edgelist.py +20 -0
  64. napistu-0.1.0/src/tests/test_gcs.py +23 -0
  65. napistu-0.1.0/src/tests/test_identifiers.py +151 -0
  66. napistu-0.1.0/src/tests/test_igraph.py +353 -0
  67. napistu-0.1.0/src/tests/test_indices.py +88 -0
  68. napistu-0.1.0/src/tests/test_mechanism_matching.py +126 -0
  69. napistu-0.1.0/src/tests/test_net_utils.py +66 -0
  70. napistu-0.1.0/src/tests/test_netcontextr.py +105 -0
  71. napistu-0.1.0/src/tests/test_obo.py +34 -0
  72. napistu-0.1.0/src/tests/test_pathwayannot.py +95 -0
  73. napistu-0.1.0/src/tests/test_precomputed_distances.py +222 -0
  74. napistu-0.1.0/src/tests/test_rpy2.py +61 -0
  75. napistu-0.1.0/src/tests/test_sbml.py +46 -0
  76. napistu-0.1.0/src/tests/test_sbml_dfs_create.py +307 -0
  77. napistu-0.1.0/src/tests/test_sbml_dfs_utils.py +22 -0
  78. napistu-0.1.0/src/tests/test_sbo.py +11 -0
  79. napistu-0.1.0/src/tests/test_set_coverage.py +50 -0
  80. napistu-0.1.0/src/tests/test_source.py +67 -0
  81. napistu-0.1.0/src/tests/test_uncompartmentalize.py +40 -0
  82. napistu-0.1.0/src/tests/test_utils.py +487 -0
  83. napistu-0.1.0/src/tests/utils.py +30 -0
napistu-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Calico
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
napistu-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,56 @@
1
+ Metadata-Version: 2.4
2
+ Name: napistu
3
+ Version: 0.1.0
4
+ Summary: Connecting high-dimensional data to curated pathways
5
+ Home-page: https://github.com/napistu/napistu-py
6
+ Author: Sean Hackett
7
+ Author-email: seanmchackett@gmail.com
8
+ Project-URL: Bug Tracker, https://github.com/napistu/napistu-py/issues
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3 :: Only
13
+ Requires-Python: >=3.11
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Requires-Dist: Jinja2
17
+ Requires-Dist: PyYAML==6.*
18
+ Requires-Dist: click==8.*
19
+ Requires-Dist: click-logging
20
+ Requires-Dist: fs==2.4.*
21
+ Requires-Dist: fs-gcsfs==1.5.*
22
+ Requires-Dist: igraph
23
+ Requires-Dist: matplotlib==3.*
24
+ Requires-Dist: numpy==1.26.*
25
+ Requires-Dist: pandas==1.5.*
26
+ Requires-Dist: pydantic==2.*
27
+ Requires-Dist: python-libsbml
28
+ Requires-Dist: requests>=2
29
+ Requires-Dist: scipy==1.14.*
30
+ Requires-Dist: tqdm
31
+ Requires-Dist: zeep==3.*
32
+ Provides-Extra: dev
33
+ Requires-Dist: black==25.*; extra == "dev"
34
+ Requires-Dist: ipykernel; extra == "dev"
35
+ Requires-Dist: pre-commit==3.3.*; extra == "dev"
36
+ Requires-Dist: pytest==7.*; extra == "dev"
37
+ Requires-Dist: pytest-cov; extra == "dev"
38
+ Requires-Dist: ruff; extra == "dev"
39
+ Requires-Dist: testcontainers; extra == "dev"
40
+ Provides-Extra: rpy2
41
+ Requires-Dist: pyarrow==18.0.0; extra == "rpy2"
42
+ Requires-Dist: rpy2==3.5.*; extra == "rpy2"
43
+ Requires-Dist: rpy2-arrow==0.1.1; extra == "rpy2"
44
+ Dynamic: license-file
45
+
46
+ # Napistu Python Library
47
+
48
+ This Python package hosts the majority of the algorithmic code for the [Napistu project](https://github.com/napistu/napistu).
49
+
50
+ ## Setup
51
+
52
+ Currently the only way to use this repository is to clone the repo and perform a local install. e.g., from this directory:
53
+
54
+ ```bash
55
+ pip install .
56
+ ```
@@ -0,0 +1,11 @@
1
+ # Napistu Python Library
2
+
3
+ This Python package hosts the majority of the algorithmic code for the [Napistu project](https://github.com/napistu/napistu).
4
+
5
+ ## Setup
6
+
7
+ Currently the only way to use this repository is to clone the repo and perform a local install. e.g., from this directory:
8
+
9
+ ```bash
10
+ pip install .
11
+ ```
@@ -0,0 +1,3 @@
1
+ [build-system]
2
+ requires = ["setuptools >= 77.0.3"]
3
+ build-backend = "setuptools.build_meta"
@@ -0,0 +1,66 @@
1
+ [metadata]
2
+ name = napistu
3
+ version = 0.1.0
4
+ description = Connecting high-dimensional data to curated pathways
5
+ long_description = file: README.md
6
+ long_description_content_type = text/markdown
7
+ url = https://github.com/napistu/napistu-py
8
+ author = Sean Hackett
9
+ author_email = seanmchackett@gmail.com
10
+ license_files = LICENSE
11
+ classifiers =
12
+ License :: OSI Approved :: MIT License
13
+ Operating System :: OS Independent
14
+ Programming Language :: Python :: 3
15
+ Programming Language :: Python :: 3 :: Only
16
+ project_urls =
17
+ Bug Tracker = https://github.com/napistu/napistu-py/issues
18
+
19
+ [options]
20
+ packages = find:
21
+ install_requires =
22
+ Jinja2
23
+ PyYAML==6.*
24
+ click==8.*
25
+ click-logging
26
+ fs==2.4.*
27
+ fs-gcsfs==1.5.*
28
+ igraph
29
+ matplotlib==3.*
30
+ numpy==1.26.*
31
+ pandas==1.5.*
32
+ pydantic==2.*
33
+ python-libsbml
34
+ requests>=2
35
+ scipy==1.14.*
36
+ tqdm
37
+ zeep==3.*
38
+ python_requires = >=3.11
39
+ package_dir =
40
+ = src
41
+
42
+ [options.packages.find]
43
+ where = src
44
+
45
+ [options.entry_points]
46
+ console_scripts =
47
+ cpr = cpr.__main__:cli
48
+
49
+ [options.extras_require]
50
+ dev =
51
+ black==25.*
52
+ ipykernel
53
+ pre-commit==3.3.*
54
+ pytest==7.*
55
+ pytest-cov
56
+ ruff
57
+ testcontainers
58
+ rpy2 =
59
+ pyarrow==18.0.0
60
+ rpy2==3.5.*
61
+ rpy2-arrow==0.1.1
62
+
63
+ [egg_info]
64
+ tag_build =
65
+ tag_date = 0
66
+
napistu-0.1.0/setup.py ADDED
@@ -0,0 +1,4 @@
1
+ from setuptools import setup
2
+
3
+ if __name__ == "__main__":
4
+ setup()
@@ -0,0 +1,12 @@
1
+ from __future__ import annotations
2
+
3
+ from importlib.metadata import PackageNotFoundError
4
+ from importlib.metadata import version
5
+
6
+ __version__ = "0.2.0"
7
+
8
+ try:
9
+ __version__ = version("calicolabs-cpr")
10
+ except PackageNotFoundError:
11
+ # package is not installed
12
+ pass