risk-network 0.0.15b0__tar.gz → 0.0.16b1__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 (53) hide show
  1. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/PKG-INFO +19 -26
  2. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/README.md +16 -23
  3. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/pyproject.toml +2 -2
  4. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/__init__.py +1 -1
  5. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_annotation/_annotation.py +9 -15
  6. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk_network.egg-info/PKG-INFO +19 -26
  7. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/LICENSE +0 -0
  8. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/setup.cfg +0 -0
  9. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_annotation/__init__.py +0 -0
  10. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_annotation/_io.py +0 -0
  11. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_annotation/_nltk_setup.py +0 -0
  12. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_log/__init__.py +0 -0
  13. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_log/_console.py +0 -0
  14. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_log/_parameters.py +0 -0
  15. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_neighborhoods/__init__.py +0 -0
  16. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_neighborhoods/_api.py +0 -0
  17. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_neighborhoods/_community.py +0 -0
  18. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_neighborhoods/_domains.py +0 -0
  19. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_neighborhoods/_neighborhoods.py +0 -0
  20. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_neighborhoods/_stats/__init__.py +0 -0
  21. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_neighborhoods/_stats/_permutation/__init__.py +0 -0
  22. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_neighborhoods/_stats/_permutation/_permutation.py +0 -0
  23. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_neighborhoods/_stats/_permutation/_test_functions.py +0 -0
  24. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_neighborhoods/_stats/_tests.py +0 -0
  25. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_network/__init__.py +0 -0
  26. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_network/_graph/__init__.py +0 -0
  27. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_network/_graph/_api.py +0 -0
  28. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_network/_graph/_graph.py +0 -0
  29. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_network/_graph/_stats.py +0 -0
  30. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_network/_graph/_summary.py +0 -0
  31. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_network/_io.py +0 -0
  32. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_network/_plotter/__init__.py +0 -0
  33. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_network/_plotter/_api.py +0 -0
  34. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_network/_plotter/_canvas.py +0 -0
  35. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_network/_plotter/_contour.py +0 -0
  36. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_network/_plotter/_labels.py +0 -0
  37. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_network/_plotter/_network.py +0 -0
  38. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_network/_plotter/_plotter.py +0 -0
  39. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_network/_plotter/_utils/__init__.py +0 -0
  40. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_network/_plotter/_utils/_colors.py +0 -0
  41. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_network/_plotter/_utils/_layout.py +0 -0
  42. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk/_risk.py +0 -0
  43. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk_network.egg-info/SOURCES.txt +0 -0
  44. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk_network.egg-info/dependency_links.txt +0 -0
  45. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk_network.egg-info/requires.txt +0 -0
  46. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/src/risk_network.egg-info/top_level.txt +0 -0
  47. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/tests/test_load_annotation.py +0 -0
  48. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/tests/test_load_graph.py +0 -0
  49. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/tests/test_load_io_combinations.py +0 -0
  50. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/tests/test_load_neighborhoods.py +0 -0
  51. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/tests/test_load_network.py +0 -0
  52. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/tests/test_load_plotter.py +0 -0
  53. {risk_network-0.0.15b0 → risk_network-0.0.16b1}/tests/test_log.py +0 -0
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: risk-network
3
- Version: 0.0.15b0
3
+ Version: 0.0.16b1
4
4
  Summary: A Python package for scalable network analysis and high-quality visualization.
5
5
  Author-email: Ira Horecka <ira89@icloud.com>
6
6
  License: GPL-3.0-or-later
7
- Project-URL: Homepage, https://github.com/riskportal/network
8
- Project-URL: Issues, https://github.com/riskportal/network/issues
7
+ Project-URL: Homepage, https://github.com/riskportal/risk
8
+ Project-URL: Issues, https://github.com/riskportal/risk/issues
9
9
  Classifier: Development Status :: 4 - Beta
10
10
  Classifier: Intended Audience :: Developers
11
11
  Classifier: Intended Audience :: Science/Research
@@ -39,20 +39,13 @@ Requires-Dist: threadpoolctl
39
39
  Requires-Dist: tqdm
40
40
  Dynamic: license-file
41
41
 
42
- # RISK Network
43
-
44
- <p align="center">
45
- <img src="https://i.imgur.com/8TleEJs.png" width="50%" />
46
- </p>
47
-
48
- <br>
42
+ # RISK
49
43
 
50
44
  ![Python](https://img.shields.io/badge/python-3.8%2B-yellow)
51
45
  [![pypiv](https://img.shields.io/pypi/v/risk-network.svg)](https://pypi.python.org/pypi/risk-network)
52
46
  ![License](https://img.shields.io/badge/license-GPLv3-purple)
53
- [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.xxxxxxx.svg)](https://doi.org/10.5281/zenodo.xxxxxxx)
54
- ![Downloads](https://img.shields.io/pypi/dm/risk-network)
55
- ![Tests](https://github.com/riskportal/network/actions/workflows/ci.yml/badge.svg)
47
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.17257418.svg)](https://doi.org/10.5281/zenodo.17257418)
48
+ ![Tests](https://github.com/riskportal/risk/actions/workflows/ci.yml/badge.svg)
56
49
 
57
50
  **RISK** (Regional Inference of Significant Kinships) is a next-generation tool for biological network annotation and visualization. It integrates community detection algorithms, rigorous overrepresentation analysis, and a modular framework for diverse network types. RISK identifies biologically coherent relationships within networks and generates publication-ready visualizations, making it a useful tool for biological and interdisciplinary network analysis.
58
51
 
@@ -60,14 +53,14 @@ For a full description of RISK and its applications, see:
60
53
  <br>
61
54
  **Horecka and Röst (2025)**, _"RISK: a next-generation tool for biological network annotation and visualization"_.
62
55
  <br>
63
- DOI: [10.5281/zenodo.xxxxxxx](https://doi.org/10.5281/zenodo.xxxxxxx)
56
+ DOI: [10.5281/zenodo.17257418](https://doi.org/10.5281/zenodo.17257418)
64
57
 
65
58
  ## Documentation and Tutorial
66
59
 
67
60
  Full documentation is available at:
68
61
 
69
- - **Docs:** [https://riskportal.github.io/network-tutorial](https://riskportal.github.io/network-tutorial)
70
- - **Tutorial Jupyter Notebook Repository:** [https://github.com/riskportal/network-tutorial](https://github.com/riskportal/network-tutorial)
62
+ - **Docs:** [https://riskportal.github.io/risk-docs](https://riskportal.github.io/risk-docs)
63
+ - **Tutorial Jupyter Notebook Repository:** [https://github.com/riskportal/risk-docs](https://github.com/riskportal/risk-docs)
71
64
 
72
65
  ## Installation
73
66
 
@@ -79,17 +72,17 @@ pip install risk-network --upgrade
79
72
 
80
73
  ## Key Features of RISK
81
74
 
82
- - **Broad Data Compatibility**: Accepts multiple network formats (NetworkX, Cytoscape, GPickle) and user-provided annotations formatted as term–to–gene membership tables (JSON, CSV, TSV, Excel, or Python dictionaries).
75
+ - **Broad Data Compatibility**: Accepts multiple network formats (Cytoscape, Cytoscape JSON, GPickle, NetworkX) and user-provided annotations formatted as term–to–gene membership tables (JSON, CSV, TSV, Excel, Python dictionaries).
83
76
  - **Flexible Clustering**: Offers Louvain, Leiden, Markov Clustering, Greedy Modularity, Label Propagation, Spinglass, and Walktrap, with user-defined resolution parameters to detect both coarse and fine-grained modules.
84
- - **Statistical Testing**: Provides hypergeometric, chi-squared, binomial, and permutation tests, balancing speed with statistical rigor.
85
- - **High-Resolution Visualization**: Generates publication-ready figures with contour overlays, customizable node/edge properties, and export to SVG, PNG, or PDF.
77
+ - **Statistical Testing**: Provides permutation, hypergeometric, chi-squared, and binomial tests, balancing statistical rigor with speed.
78
+ - **High-Resolution Visualization**: Generates publication-ready figures with customizable node/edge properties, contour overlays, and export to SVG, PNG, or PDF.
86
79
 
87
80
  ## Example Usage
88
81
 
89
- We applied RISK to a _Saccharomyces cerevisiae_ protein–protein interaction (PPI) network (Michaelis _et al_., 2023; 3,839 proteins, 30,955 interactions). RISK identified compact, functional modules overrepresented in Gene Ontology Biological Process (GO BP) terms (Ashburner _et al_., 2000), revealing biological organization including ribosomal assembly, mitochondrial organization, and RNA polymerase activity (P < 0.0001).
82
+ We applied RISK to a _Saccharomyces cerevisiae_ protein–protein interaction (PPI) network (Michaelis _et al_., 2023; 3,839 proteins, 30,955 interactions). RISK identified compact, functional modules overrepresented in Gene Ontology Biological Process (GO BP) terms (Ashburner _et al_., 2000), revealing biological organization including ribosomal assembly, mitochondrial organization, and RNA polymerase activity.
90
83
 
91
- [![RISK analysis of the yeast PPI network](https://i.imgur.com/fSNf5Ad.jpeg)](https://i.imgur.com/fSNf5Ad.jpeg)
92
- **RISK workflow overview and analysis of the yeast PPI network**. GO BP terms are color-coded to represent key cellular processes—including ribosomal assembly, mitochondrial organization, and RNA polymerase activity (P < 0.0001).
84
+ [![RISK analysis of the yeast PPI network](https://i.imgur.com/pasrVeR.jpeg)](https://i.imgur.com/pasrVeR.jpeg)
85
+ **RISK workflow overview and analysis of the yeast PPI network**. Clusters are color-coded by enriched GO Biological Process terms (p < 0.01).
93
86
 
94
87
  ## Citation
95
88
 
@@ -97,18 +90,18 @@ If you use RISK in your research, please cite the following:
97
90
 
98
91
  **Horecka and Röst (2025)**, _"RISK: a next-generation tool for biological network annotation and visualization"_.
99
92
  <br>
100
- DOI: [10.5281/zenodo.xxxxxxx](https://doi.org/10.5281/zenodo.xxxxxxx)
93
+ DOI: [10.5281/zenodo.17257418](https://doi.org/10.5281/zenodo.17257418)
101
94
 
102
95
  ## Contributing
103
96
 
104
97
  We welcome contributions from the community:
105
98
 
106
- - [Issues Tracker](https://github.com/riskportal/network/issues)
107
- - [Source Code](https://github.com/riskportal/network/tree/main/risk)
99
+ - [Issues Tracker](https://github.com/riskportal/risk/issues)
100
+ - [Source Code](https://github.com/riskportal/risk/tree/main/risk)
108
101
 
109
102
  ## Support
110
103
 
111
- If you encounter issues or have suggestions for new features, please use the [Issues Tracker](https://github.com/riskportal/network/issues) on GitHub.
104
+ If you encounter issues or have suggestions for new features, please use the [Issues Tracker](https://github.com/riskportal/risk/issues) on GitHub.
112
105
 
113
106
  ## License
114
107
 
@@ -1,17 +1,10 @@
1
- # RISK Network
2
-
3
- <p align="center">
4
- <img src="https://i.imgur.com/8TleEJs.png" width="50%" />
5
- </p>
6
-
7
- <br>
1
+ # RISK
8
2
 
9
3
  ![Python](https://img.shields.io/badge/python-3.8%2B-yellow)
10
4
  [![pypiv](https://img.shields.io/pypi/v/risk-network.svg)](https://pypi.python.org/pypi/risk-network)
11
5
  ![License](https://img.shields.io/badge/license-GPLv3-purple)
12
- [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.xxxxxxx.svg)](https://doi.org/10.5281/zenodo.xxxxxxx)
13
- ![Downloads](https://img.shields.io/pypi/dm/risk-network)
14
- ![Tests](https://github.com/riskportal/network/actions/workflows/ci.yml/badge.svg)
6
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.17257418.svg)](https://doi.org/10.5281/zenodo.17257418)
7
+ ![Tests](https://github.com/riskportal/risk/actions/workflows/ci.yml/badge.svg)
15
8
 
16
9
  **RISK** (Regional Inference of Significant Kinships) is a next-generation tool for biological network annotation and visualization. It integrates community detection algorithms, rigorous overrepresentation analysis, and a modular framework for diverse network types. RISK identifies biologically coherent relationships within networks and generates publication-ready visualizations, making it a useful tool for biological and interdisciplinary network analysis.
17
10
 
@@ -19,14 +12,14 @@ For a full description of RISK and its applications, see:
19
12
  <br>
20
13
  **Horecka and Röst (2025)**, _"RISK: a next-generation tool for biological network annotation and visualization"_.
21
14
  <br>
22
- DOI: [10.5281/zenodo.xxxxxxx](https://doi.org/10.5281/zenodo.xxxxxxx)
15
+ DOI: [10.5281/zenodo.17257418](https://doi.org/10.5281/zenodo.17257418)
23
16
 
24
17
  ## Documentation and Tutorial
25
18
 
26
19
  Full documentation is available at:
27
20
 
28
- - **Docs:** [https://riskportal.github.io/network-tutorial](https://riskportal.github.io/network-tutorial)
29
- - **Tutorial Jupyter Notebook Repository:** [https://github.com/riskportal/network-tutorial](https://github.com/riskportal/network-tutorial)
21
+ - **Docs:** [https://riskportal.github.io/risk-docs](https://riskportal.github.io/risk-docs)
22
+ - **Tutorial Jupyter Notebook Repository:** [https://github.com/riskportal/risk-docs](https://github.com/riskportal/risk-docs)
30
23
 
31
24
  ## Installation
32
25
 
@@ -38,17 +31,17 @@ pip install risk-network --upgrade
38
31
 
39
32
  ## Key Features of RISK
40
33
 
41
- - **Broad Data Compatibility**: Accepts multiple network formats (NetworkX, Cytoscape, GPickle) and user-provided annotations formatted as term–to–gene membership tables (JSON, CSV, TSV, Excel, or Python dictionaries).
34
+ - **Broad Data Compatibility**: Accepts multiple network formats (Cytoscape, Cytoscape JSON, GPickle, NetworkX) and user-provided annotations formatted as term–to–gene membership tables (JSON, CSV, TSV, Excel, Python dictionaries).
42
35
  - **Flexible Clustering**: Offers Louvain, Leiden, Markov Clustering, Greedy Modularity, Label Propagation, Spinglass, and Walktrap, with user-defined resolution parameters to detect both coarse and fine-grained modules.
43
- - **Statistical Testing**: Provides hypergeometric, chi-squared, binomial, and permutation tests, balancing speed with statistical rigor.
44
- - **High-Resolution Visualization**: Generates publication-ready figures with contour overlays, customizable node/edge properties, and export to SVG, PNG, or PDF.
36
+ - **Statistical Testing**: Provides permutation, hypergeometric, chi-squared, and binomial tests, balancing statistical rigor with speed.
37
+ - **High-Resolution Visualization**: Generates publication-ready figures with customizable node/edge properties, contour overlays, and export to SVG, PNG, or PDF.
45
38
 
46
39
  ## Example Usage
47
40
 
48
- We applied RISK to a _Saccharomyces cerevisiae_ protein–protein interaction (PPI) network (Michaelis _et al_., 2023; 3,839 proteins, 30,955 interactions). RISK identified compact, functional modules overrepresented in Gene Ontology Biological Process (GO BP) terms (Ashburner _et al_., 2000), revealing biological organization including ribosomal assembly, mitochondrial organization, and RNA polymerase activity (P < 0.0001).
41
+ We applied RISK to a _Saccharomyces cerevisiae_ protein–protein interaction (PPI) network (Michaelis _et al_., 2023; 3,839 proteins, 30,955 interactions). RISK identified compact, functional modules overrepresented in Gene Ontology Biological Process (GO BP) terms (Ashburner _et al_., 2000), revealing biological organization including ribosomal assembly, mitochondrial organization, and RNA polymerase activity.
49
42
 
50
- [![RISK analysis of the yeast PPI network](https://i.imgur.com/fSNf5Ad.jpeg)](https://i.imgur.com/fSNf5Ad.jpeg)
51
- **RISK workflow overview and analysis of the yeast PPI network**. GO BP terms are color-coded to represent key cellular processes—including ribosomal assembly, mitochondrial organization, and RNA polymerase activity (P < 0.0001).
43
+ [![RISK analysis of the yeast PPI network](https://i.imgur.com/pasrVeR.jpeg)](https://i.imgur.com/pasrVeR.jpeg)
44
+ **RISK workflow overview and analysis of the yeast PPI network**. Clusters are color-coded by enriched GO Biological Process terms (p < 0.01).
52
45
 
53
46
  ## Citation
54
47
 
@@ -56,18 +49,18 @@ If you use RISK in your research, please cite the following:
56
49
 
57
50
  **Horecka and Röst (2025)**, _"RISK: a next-generation tool for biological network annotation and visualization"_.
58
51
  <br>
59
- DOI: [10.5281/zenodo.xxxxxxx](https://doi.org/10.5281/zenodo.xxxxxxx)
52
+ DOI: [10.5281/zenodo.17257418](https://doi.org/10.5281/zenodo.17257418)
60
53
 
61
54
  ## Contributing
62
55
 
63
56
  We welcome contributions from the community:
64
57
 
65
- - [Issues Tracker](https://github.com/riskportal/network/issues)
66
- - [Source Code](https://github.com/riskportal/network/tree/main/risk)
58
+ - [Issues Tracker](https://github.com/riskportal/risk/issues)
59
+ - [Source Code](https://github.com/riskportal/risk/tree/main/risk)
67
60
 
68
61
  ## Support
69
62
 
70
- If you encounter issues or have suggestions for new features, please use the [Issues Tracker](https://github.com/riskportal/network/issues) on GitHub.
63
+ If you encounter issues or have suggestions for new features, please use the [Issues Tracker](https://github.com/riskportal/risk/issues) on GitHub.
71
64
 
72
65
  ## License
73
66
 
@@ -48,8 +48,8 @@ dependencies = [
48
48
  text = "GPL-3.0-or-later"
49
49
 
50
50
  [project.urls]
51
- Homepage = "https://github.com/riskportal/network"
52
- Issues = "https://github.com/riskportal/network/issues"
51
+ Homepage = "https://github.com/riskportal/risk"
52
+ Issues = "https://github.com/riskportal/risk/issues"
53
53
 
54
54
  [tool.setuptools]
55
55
  package-dir = {"" = "src"}
@@ -8,4 +8,4 @@ RISK: Regional Inference of Significant Kinships
8
8
  from ._risk import RISK
9
9
 
10
10
  __all__ = ["RISK"]
11
- __version__ = "0.0.15-beta.0"
11
+ __version__ = "0.0.16-beta.1"
@@ -252,34 +252,28 @@ def get_weighted_description(words_column: pd.Series, scores_column: pd.Series)
252
252
  token_clean = re.sub(r"[^\w\-]", "", token).strip()
253
253
  if not token_clean:
254
254
  continue
255
- # Skip tokens that are pure numbers
256
- if token_clean.isdigit():
257
- continue
258
255
  # Skip stopwords
259
256
  if token_clean in STOP_WORDS:
260
257
  continue
261
258
  # Lemmatize the token to merge similar forms
262
259
  token_norm = LEMMATIZER.lemmatize(token_clean)
263
- weighted_counts[token_norm] = weighted_counts.get(token_norm, 0) + weight
260
+ # Apply weighting boost for biologically structured number-word hybrids
261
+ if re.match(r"^\d+[\-\w]+", token_norm):
262
+ actual_weight = int(weight * 1.5)
263
+ else:
264
+ actual_weight = weight
265
+ weighted_counts[token_norm] = weighted_counts.get(token_norm, 0) + actual_weight
264
266
 
265
267
  # Reconstruct a weighted token list by repeating each token by its aggregated count.
266
268
  weighted_words = []
267
269
  for token, count in weighted_counts.items():
268
270
  weighted_words.extend([token] * count)
269
271
 
270
- # Combine tokens that match number-word patterns (e.g. "4-alpha") and remove pure numeric tokens.
272
+ # Combine tokens that match number-word patterns (e.g. "4-alpha"), but do not remove numeric tokens.
273
+ # All tokens are included in the final list.
271
274
  combined_tokens = []
272
275
  for token in weighted_words:
273
- if re.match(r"^\d+-\w+", token):
274
- combined_tokens.append(token)
275
- elif token.replace(".", "", 1).isdigit():
276
- continue
277
- else:
278
- combined_tokens.append(token)
279
-
280
- # If the only token is numeric, return a default value.
281
- if len(combined_tokens) == 1 and combined_tokens[0].isdigit():
282
- return "N/A"
276
+ combined_tokens.append(token)
283
277
 
284
278
  # Simplify the token list to remove near-duplicates based on the Jaccard index.
285
279
  simplified_words = _simplify_word_list(combined_tokens)
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: risk-network
3
- Version: 0.0.15b0
3
+ Version: 0.0.16b1
4
4
  Summary: A Python package for scalable network analysis and high-quality visualization.
5
5
  Author-email: Ira Horecka <ira89@icloud.com>
6
6
  License: GPL-3.0-or-later
7
- Project-URL: Homepage, https://github.com/riskportal/network
8
- Project-URL: Issues, https://github.com/riskportal/network/issues
7
+ Project-URL: Homepage, https://github.com/riskportal/risk
8
+ Project-URL: Issues, https://github.com/riskportal/risk/issues
9
9
  Classifier: Development Status :: 4 - Beta
10
10
  Classifier: Intended Audience :: Developers
11
11
  Classifier: Intended Audience :: Science/Research
@@ -39,20 +39,13 @@ Requires-Dist: threadpoolctl
39
39
  Requires-Dist: tqdm
40
40
  Dynamic: license-file
41
41
 
42
- # RISK Network
43
-
44
- <p align="center">
45
- <img src="https://i.imgur.com/8TleEJs.png" width="50%" />
46
- </p>
47
-
48
- <br>
42
+ # RISK
49
43
 
50
44
  ![Python](https://img.shields.io/badge/python-3.8%2B-yellow)
51
45
  [![pypiv](https://img.shields.io/pypi/v/risk-network.svg)](https://pypi.python.org/pypi/risk-network)
52
46
  ![License](https://img.shields.io/badge/license-GPLv3-purple)
53
- [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.xxxxxxx.svg)](https://doi.org/10.5281/zenodo.xxxxxxx)
54
- ![Downloads](https://img.shields.io/pypi/dm/risk-network)
55
- ![Tests](https://github.com/riskportal/network/actions/workflows/ci.yml/badge.svg)
47
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.17257418.svg)](https://doi.org/10.5281/zenodo.17257418)
48
+ ![Tests](https://github.com/riskportal/risk/actions/workflows/ci.yml/badge.svg)
56
49
 
57
50
  **RISK** (Regional Inference of Significant Kinships) is a next-generation tool for biological network annotation and visualization. It integrates community detection algorithms, rigorous overrepresentation analysis, and a modular framework for diverse network types. RISK identifies biologically coherent relationships within networks and generates publication-ready visualizations, making it a useful tool for biological and interdisciplinary network analysis.
58
51
 
@@ -60,14 +53,14 @@ For a full description of RISK and its applications, see:
60
53
  <br>
61
54
  **Horecka and Röst (2025)**, _"RISK: a next-generation tool for biological network annotation and visualization"_.
62
55
  <br>
63
- DOI: [10.5281/zenodo.xxxxxxx](https://doi.org/10.5281/zenodo.xxxxxxx)
56
+ DOI: [10.5281/zenodo.17257418](https://doi.org/10.5281/zenodo.17257418)
64
57
 
65
58
  ## Documentation and Tutorial
66
59
 
67
60
  Full documentation is available at:
68
61
 
69
- - **Docs:** [https://riskportal.github.io/network-tutorial](https://riskportal.github.io/network-tutorial)
70
- - **Tutorial Jupyter Notebook Repository:** [https://github.com/riskportal/network-tutorial](https://github.com/riskportal/network-tutorial)
62
+ - **Docs:** [https://riskportal.github.io/risk-docs](https://riskportal.github.io/risk-docs)
63
+ - **Tutorial Jupyter Notebook Repository:** [https://github.com/riskportal/risk-docs](https://github.com/riskportal/risk-docs)
71
64
 
72
65
  ## Installation
73
66
 
@@ -79,17 +72,17 @@ pip install risk-network --upgrade
79
72
 
80
73
  ## Key Features of RISK
81
74
 
82
- - **Broad Data Compatibility**: Accepts multiple network formats (NetworkX, Cytoscape, GPickle) and user-provided annotations formatted as term–to–gene membership tables (JSON, CSV, TSV, Excel, or Python dictionaries).
75
+ - **Broad Data Compatibility**: Accepts multiple network formats (Cytoscape, Cytoscape JSON, GPickle, NetworkX) and user-provided annotations formatted as term–to–gene membership tables (JSON, CSV, TSV, Excel, Python dictionaries).
83
76
  - **Flexible Clustering**: Offers Louvain, Leiden, Markov Clustering, Greedy Modularity, Label Propagation, Spinglass, and Walktrap, with user-defined resolution parameters to detect both coarse and fine-grained modules.
84
- - **Statistical Testing**: Provides hypergeometric, chi-squared, binomial, and permutation tests, balancing speed with statistical rigor.
85
- - **High-Resolution Visualization**: Generates publication-ready figures with contour overlays, customizable node/edge properties, and export to SVG, PNG, or PDF.
77
+ - **Statistical Testing**: Provides permutation, hypergeometric, chi-squared, and binomial tests, balancing statistical rigor with speed.
78
+ - **High-Resolution Visualization**: Generates publication-ready figures with customizable node/edge properties, contour overlays, and export to SVG, PNG, or PDF.
86
79
 
87
80
  ## Example Usage
88
81
 
89
- We applied RISK to a _Saccharomyces cerevisiae_ protein–protein interaction (PPI) network (Michaelis _et al_., 2023; 3,839 proteins, 30,955 interactions). RISK identified compact, functional modules overrepresented in Gene Ontology Biological Process (GO BP) terms (Ashburner _et al_., 2000), revealing biological organization including ribosomal assembly, mitochondrial organization, and RNA polymerase activity (P < 0.0001).
82
+ We applied RISK to a _Saccharomyces cerevisiae_ protein–protein interaction (PPI) network (Michaelis _et al_., 2023; 3,839 proteins, 30,955 interactions). RISK identified compact, functional modules overrepresented in Gene Ontology Biological Process (GO BP) terms (Ashburner _et al_., 2000), revealing biological organization including ribosomal assembly, mitochondrial organization, and RNA polymerase activity.
90
83
 
91
- [![RISK analysis of the yeast PPI network](https://i.imgur.com/fSNf5Ad.jpeg)](https://i.imgur.com/fSNf5Ad.jpeg)
92
- **RISK workflow overview and analysis of the yeast PPI network**. GO BP terms are color-coded to represent key cellular processes—including ribosomal assembly, mitochondrial organization, and RNA polymerase activity (P < 0.0001).
84
+ [![RISK analysis of the yeast PPI network](https://i.imgur.com/pasrVeR.jpeg)](https://i.imgur.com/pasrVeR.jpeg)
85
+ **RISK workflow overview and analysis of the yeast PPI network**. Clusters are color-coded by enriched GO Biological Process terms (p < 0.01).
93
86
 
94
87
  ## Citation
95
88
 
@@ -97,18 +90,18 @@ If you use RISK in your research, please cite the following:
97
90
 
98
91
  **Horecka and Röst (2025)**, _"RISK: a next-generation tool for biological network annotation and visualization"_.
99
92
  <br>
100
- DOI: [10.5281/zenodo.xxxxxxx](https://doi.org/10.5281/zenodo.xxxxxxx)
93
+ DOI: [10.5281/zenodo.17257418](https://doi.org/10.5281/zenodo.17257418)
101
94
 
102
95
  ## Contributing
103
96
 
104
97
  We welcome contributions from the community:
105
98
 
106
- - [Issues Tracker](https://github.com/riskportal/network/issues)
107
- - [Source Code](https://github.com/riskportal/network/tree/main/risk)
99
+ - [Issues Tracker](https://github.com/riskportal/risk/issues)
100
+ - [Source Code](https://github.com/riskportal/risk/tree/main/risk)
108
101
 
109
102
  ## Support
110
103
 
111
- If you encounter issues or have suggestions for new features, please use the [Issues Tracker](https://github.com/riskportal/network/issues) on GitHub.
104
+ If you encounter issues or have suggestions for new features, please use the [Issues Tracker](https://github.com/riskportal/risk/issues) on GitHub.
112
105
 
113
106
  ## License
114
107
 
File without changes