napistu 0.1.0__tar.gz → 0.2.4.dev3__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 (108) hide show
  1. napistu-0.2.4.dev3/PKG-INFO +84 -0
  2. napistu-0.2.4.dev3/README.md +28 -0
  3. {napistu-0.1.0 → napistu-0.2.4.dev3}/setup.cfg +34 -19
  4. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/__init__.py +1 -1
  5. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/consensus.py +1010 -513
  6. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/constants.py +24 -0
  7. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/gcs/constants.py +2 -2
  8. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/gcs/downloads.py +57 -25
  9. napistu-0.2.4.dev3/src/napistu/gcs/utils.py +21 -0
  10. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/identifiers.py +105 -6
  11. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/ingestion/constants.py +0 -1
  12. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/ingestion/obo.py +24 -8
  13. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/ingestion/psi_mi.py +20 -5
  14. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/ingestion/reactome.py +8 -32
  15. napistu-0.2.4.dev3/src/napistu/mcp/__init__.py +69 -0
  16. napistu-0.2.4.dev3/src/napistu/mcp/__main__.py +180 -0
  17. napistu-0.2.4.dev3/src/napistu/mcp/codebase.py +182 -0
  18. napistu-0.2.4.dev3/src/napistu/mcp/codebase_utils.py +298 -0
  19. napistu-0.2.4.dev3/src/napistu/mcp/constants.py +72 -0
  20. napistu-0.2.4.dev3/src/napistu/mcp/documentation.py +166 -0
  21. napistu-0.2.4.dev3/src/napistu/mcp/documentation_utils.py +235 -0
  22. napistu-0.2.4.dev3/src/napistu/mcp/execution.py +382 -0
  23. napistu-0.2.4.dev3/src/napistu/mcp/profiles.py +73 -0
  24. napistu-0.2.4.dev3/src/napistu/mcp/server.py +86 -0
  25. napistu-0.2.4.dev3/src/napistu/mcp/tutorials.py +124 -0
  26. napistu-0.2.4.dev3/src/napistu/mcp/tutorials_utils.py +230 -0
  27. napistu-0.2.4.dev3/src/napistu/mcp/utils.py +47 -0
  28. napistu-0.2.4.dev3/src/napistu/mechanism_matching.py +1353 -0
  29. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/modify/constants.py +41 -0
  30. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/modify/curation.py +4 -1
  31. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/modify/gaps.py +243 -156
  32. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/modify/pathwayannot.py +26 -8
  33. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/network/neighborhoods.py +16 -7
  34. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/network/net_create.py +209 -54
  35. napistu-0.2.4.dev3/src/napistu/network/net_propagation.py +118 -0
  36. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/network/net_utils.py +1 -32
  37. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/rpy2/netcontextr.py +10 -7
  38. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/rpy2/rids.py +7 -5
  39. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/sbml_dfs_core.py +46 -29
  40. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/sbml_dfs_utils.py +37 -1
  41. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/source.py +8 -2
  42. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/utils.py +67 -8
  43. napistu-0.2.4.dev3/src/napistu.egg-info/PKG-INFO +84 -0
  44. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu.egg-info/SOURCES.txt +19 -1
  45. napistu-0.2.4.dev3/src/napistu.egg-info/requires.txt +40 -0
  46. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/conftest.py +11 -5
  47. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/test_consensus.py +4 -1
  48. napistu-0.2.4.dev3/src/tests/test_gaps.py +127 -0
  49. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/test_gcs.py +3 -2
  50. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/test_igraph.py +14 -0
  51. napistu-0.2.4.dev3/src/tests/test_mcp_documentation_utils.py +13 -0
  52. napistu-0.2.4.dev3/src/tests/test_mechanism_matching.py +784 -0
  53. napistu-0.2.4.dev3/src/tests/test_net_propagation.py +89 -0
  54. napistu-0.2.4.dev3/src/tests/test_net_utils.py +149 -0
  55. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/test_sbml.py +2 -0
  56. napistu-0.1.0/src/tests/test_sbml_dfs_create.py → napistu-0.2.4.dev3/src/tests/test_sbml_dfs_core.py +68 -4
  57. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/test_utils.py +81 -0
  58. napistu-0.1.0/PKG-INFO +0 -56
  59. napistu-0.1.0/README.md +0 -11
  60. napistu-0.1.0/src/napistu/mechanism_matching.py +0 -597
  61. napistu-0.1.0/src/napistu.egg-info/PKG-INFO +0 -56
  62. napistu-0.1.0/src/napistu.egg-info/requires.txt +0 -30
  63. napistu-0.1.0/src/tests/test_mechanism_matching.py +0 -126
  64. napistu-0.1.0/src/tests/test_net_utils.py +0 -66
  65. {napistu-0.1.0 → napistu-0.2.4.dev3}/LICENSE +0 -0
  66. {napistu-0.1.0 → napistu-0.2.4.dev3}/pyproject.toml +0 -0
  67. {napistu-0.1.0 → napistu-0.2.4.dev3}/setup.py +0 -0
  68. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/__main__.py +0 -0
  69. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/gcs/__init__.py +0 -0
  70. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/indices.py +0 -0
  71. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/ingestion/__init__.py +0 -0
  72. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/ingestion/bigg.py +0 -0
  73. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/ingestion/cpr_edgelist.py +0 -0
  74. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/ingestion/identifiers_etl.py +0 -0
  75. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/ingestion/sbml.py +0 -0
  76. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/ingestion/string.py +0 -0
  77. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/ingestion/trrust.py +0 -0
  78. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/ingestion/yeast.py +0 -0
  79. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/modify/__init__.py +0 -0
  80. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/modify/uncompartmentalize.py +0 -0
  81. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/network/__init__.py +0 -0
  82. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/network/constants.py +0 -0
  83. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/network/paths.py +0 -0
  84. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/network/precompute.py +0 -0
  85. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/rpy2/__init__.py +0 -0
  86. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/rpy2/callr.py +0 -0
  87. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu/rpy2/constants.py +0 -0
  88. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu.egg-info/dependency_links.txt +0 -0
  89. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu.egg-info/entry_points.txt +0 -0
  90. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/napistu.egg-info/top_level.txt +0 -0
  91. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/__init__.py +0 -0
  92. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/test_constants.py +0 -0
  93. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/test_curation.py +0 -0
  94. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/test_data/__init__.py +0 -0
  95. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/test_edgelist.py +0 -0
  96. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/test_identifiers.py +0 -0
  97. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/test_indices.py +0 -0
  98. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/test_netcontextr.py +0 -0
  99. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/test_obo.py +0 -0
  100. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/test_pathwayannot.py +0 -0
  101. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/test_precomputed_distances.py +0 -0
  102. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/test_rpy2.py +0 -0
  103. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/test_sbml_dfs_utils.py +0 -0
  104. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/test_sbo.py +0 -0
  105. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/test_set_coverage.py +0 -0
  106. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/test_source.py +0 -0
  107. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/test_uncompartmentalize.py +0 -0
  108. {napistu-0.1.0 → napistu-0.2.4.dev3}/src/tests/utils.py +0 -0
@@ -0,0 +1,84 @@
1
+ Metadata-Version: 2.4
2
+ Name: napistu
3
+ Version: 0.2.4.dev3
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: Documentation, https://napistu.readthedocs.io
9
+ Project-URL: Source, https://github.com/napistu/napistu-py
10
+ Project-URL: Tracker, https://github.com/napistu/napistu-py/issues
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3 :: Only
15
+ Requires-Python: >=3.11
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
+ Requires-Dist: Jinja2
19
+ Requires-Dist: PyYAML<7.0.0,>=6.0.0
20
+ Requires-Dist: click<9.0.0,>=8.0.0
21
+ Requires-Dist: click-logging
22
+ Requires-Dist: fs<3.0.0,>=2.4.0
23
+ Requires-Dist: fs-gcsfs<2.0.0,>=1.5.0
24
+ Requires-Dist: igraph
25
+ Requires-Dist: matplotlib<4.0.0,>=3.5.0
26
+ Requires-Dist: numpy<3.0.0,>=1.24.0
27
+ Requires-Dist: pandas<3.0.0,>=1.5.0
28
+ Requires-Dist: pydantic<3.0.0,>=2.0.0
29
+ Requires-Dist: python-libsbml
30
+ Requires-Dist: requests>=2.25.0
31
+ Requires-Dist: scipy<2.0.0,>=1.10.0
32
+ Requires-Dist: tqdm
33
+ Requires-Dist: zeep<4.0.0,>=3.0.0
34
+ Provides-Extra: dev
35
+ Requires-Dist: black>=24.0.0; extra == "dev"
36
+ Requires-Dist: ipykernel; extra == "dev"
37
+ Requires-Dist: pre-commit<4.0.0,>=3.0.0; extra == "dev"
38
+ Requires-Dist: pytest<8.0.0,>=7.0.0; extra == "dev"
39
+ Requires-Dist: pytest-asyncio; extra == "dev"
40
+ Requires-Dist: pytest-cov; extra == "dev"
41
+ Requires-Dist: ruff; extra == "dev"
42
+ Requires-Dist: testcontainers; extra == "dev"
43
+ Provides-Extra: mcp
44
+ Requires-Dist: fastmcp<3.0.0,>=2.0.0; extra == "mcp"
45
+ Requires-Dist: mcp<2.0.0,>=1.0.0; extra == "mcp"
46
+ Requires-Dist: httpx>=0.24.0; extra == "mcp"
47
+ Requires-Dist: beautifulsoup4<5.0.0,>=4.11.0; extra == "mcp"
48
+ Requires-Dist: markdown>=3.4.0; extra == "mcp"
49
+ Requires-Dist: jupyter-client>=7.0.0; extra == "mcp"
50
+ Requires-Dist: nbformat>=5.0.0; extra == "mcp"
51
+ Provides-Extra: rpy2
52
+ Requires-Dist: pyarrow<19.0.0,>=15.0.0; extra == "rpy2"
53
+ Requires-Dist: rpy2<4.0.0,>=3.5.0; extra == "rpy2"
54
+ Requires-Dist: rpy2-arrow<1.0.0,>=0.1.0; extra == "rpy2"
55
+ Dynamic: license-file
56
+
57
+ # Napistu Python Library
58
+
59
+ [![Documentation Status](https://readthedocs.org/projects/napistu/badge/?version=latest)](https://napistu.readthedocs.io/en/latest/?badge=latest)
60
+
61
+ This Python package hosts the majority of the algorithmic code for the [Napistu project](https://github.com/napistu/napistu).
62
+
63
+ ## Setup
64
+
65
+ Napistu is available on [PyPI](https://pypi.org/project/napistu) so the recommended way to use it is just to pip install with:
66
+
67
+ ```bash
68
+ pip install napistu
69
+ ```
70
+
71
+ Alternatively, you can clone this repository and perform a local install. e.g., from this directory:
72
+
73
+ ```bash
74
+ pip install .
75
+ ```
76
+
77
+ ## Documentation
78
+ 📘 **Full Documentation**: [https://napistu.readthedocs.io](https://napistu.readthedocs.io)
79
+ ** Wiki **: [napistu/wiki](https://github.com/napistu/napistu/wiki)
80
+
81
+ ### Quick Links
82
+ - [Installation Guide](https://napistu.readthedocs.io/en/latest/installation.html)
83
+ - [API Reference](https://napistu.readthedocs.io/en/latest/api.html)
84
+ - [Usage Examples](https://napistu.readthedocs.io/en/latest/usage.html)
@@ -0,0 +1,28 @@
1
+ # Napistu Python Library
2
+
3
+ [![Documentation Status](https://readthedocs.org/projects/napistu/badge/?version=latest)](https://napistu.readthedocs.io/en/latest/?badge=latest)
4
+
5
+ This Python package hosts the majority of the algorithmic code for the [Napistu project](https://github.com/napistu/napistu).
6
+
7
+ ## Setup
8
+
9
+ Napistu is available on [PyPI](https://pypi.org/project/napistu) so the recommended way to use it is just to pip install with:
10
+
11
+ ```bash
12
+ pip install napistu
13
+ ```
14
+
15
+ Alternatively, you can clone this repository and perform a local install. e.g., from this directory:
16
+
17
+ ```bash
18
+ pip install .
19
+ ```
20
+
21
+ ## Documentation
22
+ 📘 **Full Documentation**: [https://napistu.readthedocs.io](https://napistu.readthedocs.io)
23
+ ** Wiki **: [napistu/wiki](https://github.com/napistu/napistu/wiki)
24
+
25
+ ### Quick Links
26
+ - [Installation Guide](https://napistu.readthedocs.io/en/latest/installation.html)
27
+ - [API Reference](https://napistu.readthedocs.io/en/latest/api.html)
28
+ - [Usage Examples](https://napistu.readthedocs.io/en/latest/usage.html)
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = napistu
3
- version = 0.1.0
3
+ version = 0.2.4.dev3
4
4
  description = Connecting high-dimensional data to curated pathways
5
5
  long_description = file: README.md
6
6
  long_description_content_type = text/markdown
@@ -14,27 +14,29 @@ classifiers =
14
14
  Programming Language :: Python :: 3
15
15
  Programming Language :: Python :: 3 :: Only
16
16
  project_urls =
17
- Bug Tracker = https://github.com/napistu/napistu-py/issues
17
+ Documentation = https://napistu.readthedocs.io
18
+ Source = https://github.com/napistu/napistu-py
19
+ Tracker = https://github.com/napistu/napistu-py/issues
18
20
 
19
21
  [options]
20
22
  packages = find:
21
23
  install_requires =
22
24
  Jinja2
23
- PyYAML==6.*
24
- click==8.*
25
+ PyYAML>=6.0.0,<7.0.0
26
+ click>=8.0.0,<9.0.0
25
27
  click-logging
26
- fs==2.4.*
27
- fs-gcsfs==1.5.*
28
+ fs>=2.4.0,<3.0.0
29
+ fs-gcsfs>=1.5.0,<2.0.0
28
30
  igraph
29
- matplotlib==3.*
30
- numpy==1.26.*
31
- pandas==1.5.*
32
- pydantic==2.*
31
+ matplotlib>=3.5.0,<4.0.0
32
+ numpy>=1.24.0,<3.0.0
33
+ pandas>=1.5.0,<3.0.0
34
+ pydantic>=2.0.0,<3.0.0
33
35
  python-libsbml
34
- requests>=2
35
- scipy==1.14.*
36
+ requests>=2.25.0
37
+ scipy>=1.10.0,<2.0.0
36
38
  tqdm
37
- zeep==3.*
39
+ zeep>=3.0.0,<4.0.0
38
40
  python_requires = >=3.11
39
41
  package_dir =
40
42
  = src
@@ -48,17 +50,30 @@ console_scripts =
48
50
 
49
51
  [options.extras_require]
50
52
  dev =
51
- black==25.*
53
+ black>=24.0.0
52
54
  ipykernel
53
- pre-commit==3.3.*
54
- pytest==7.*
55
+ pre-commit>=3.0.0,<4.0.0
56
+ pytest>=7.0.0,<8.0.0
57
+ pytest-asyncio
55
58
  pytest-cov
56
59
  ruff
57
60
  testcontainers
61
+ mcp =
62
+ fastmcp>=2.0.0,<3.0.0
63
+ mcp>=1.0.0,<2.0.0
64
+ httpx>=0.24.0
65
+ beautifulsoup4>=4.11.0,<5.0.0
66
+ markdown>=3.4.0
67
+ jupyter-client>=7.0.0
68
+ nbformat>=5.0.0
58
69
  rpy2 =
59
- pyarrow==18.0.0
60
- rpy2==3.5.*
61
- rpy2-arrow==0.1.1
70
+ pyarrow>=15.0.0,<19.0.0
71
+ rpy2>=3.5.0,<4.0.0
72
+ rpy2-arrow>=0.1.0,<1.0.0
73
+
74
+ [tool:pytest]
75
+ filterwarnings =
76
+ ignore::DeprecationWarning
62
77
 
63
78
  [egg_info]
64
79
  tag_build =
@@ -3,7 +3,7 @@ from __future__ import annotations
3
3
  from importlib.metadata import PackageNotFoundError
4
4
  from importlib.metadata import version
5
5
 
6
- __version__ = "0.2.0"
6
+ __version__ = "0.2.2"
7
7
 
8
8
  try:
9
9
  __version__ = version("calicolabs-cpr")