risk-network 0.0.8b9__tar.gz → 0.0.8b11__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 (43) hide show
  1. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/PKG-INFO +5 -5
  2. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/README.md +4 -4
  3. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/__init__.py +1 -1
  4. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/neighborhoods/domains.py +1 -1
  5. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/network/io.py +2 -1
  6. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/network/plot/labels.py +2 -1
  7. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk_network.egg-info/PKG-INFO +5 -5
  8. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/LICENSE +0 -0
  9. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/MANIFEST.in +0 -0
  10. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/pyproject.toml +0 -0
  11. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/annotations/__init__.py +0 -0
  12. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/annotations/annotations.py +0 -0
  13. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/annotations/io.py +0 -0
  14. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/constants.py +0 -0
  15. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/log/__init__.py +0 -0
  16. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/log/config.py +0 -0
  17. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/log/params.py +0 -0
  18. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/neighborhoods/__init__.py +0 -0
  19. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/neighborhoods/community.py +0 -0
  20. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/neighborhoods/neighborhoods.py +0 -0
  21. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/network/__init__.py +0 -0
  22. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/network/geometry.py +0 -0
  23. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/network/graph.py +0 -0
  24. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/network/plot/__init__.py +0 -0
  25. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/network/plot/canvas.py +0 -0
  26. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/network/plot/contour.py +0 -0
  27. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/network/plot/network.py +0 -0
  28. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/network/plot/plotter.py +0 -0
  29. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/network/plot/utils.py +0 -0
  30. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/risk.py +0 -0
  31. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/stats/__init__.py +0 -0
  32. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/stats/hypergeom.py +0 -0
  33. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/stats/permutation/__init__.py +0 -0
  34. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/stats/permutation/permutation.py +0 -0
  35. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/stats/permutation/test_functions.py +0 -0
  36. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/stats/poisson.py +0 -0
  37. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk/stats/stats.py +0 -0
  38. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk_network.egg-info/SOURCES.txt +0 -0
  39. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk_network.egg-info/dependency_links.txt +0 -0
  40. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk_network.egg-info/requires.txt +0 -0
  41. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/risk_network.egg-info/top_level.txt +0 -0
  42. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/setup.cfg +0 -0
  43. {risk_network-0.0.8b9 → risk_network-0.0.8b11}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: risk-network
3
- Version: 0.0.8b9
3
+ Version: 0.0.8b11
4
4
  Summary: A Python package for biological network analysis
5
5
  Author: Ira Horecka
6
6
  Author-email: Ira Horecka <ira89@icloud.com>
@@ -709,7 +709,7 @@ Requires-Dist: statsmodels
709
709
  Requires-Dist: threadpoolctl
710
710
  Requires-Dist: tqdm
711
711
 
712
- # RISK
712
+ # RISK Network
713
713
 
714
714
  <p align="center">
715
715
  <img src="https://i.imgur.com/8TleEJs.png" width="50%" />
@@ -728,8 +728,8 @@ Requires-Dist: tqdm
728
728
 
729
729
  ## Documentation and Tutorial
730
730
 
731
- - **Documentation**: Comprehensive documentation is available at [Documentation link].
732
- - **Tutorial**: An interactive Jupyter notebook tutorial can be found at [Tutorial link].
731
+ - **Documentation**: Comprehensive documentation is available [here](Documentation link).
732
+ - **Tutorial**: An interactive Jupyter notebook tutorial can be found [here](https://github.com/riskportal/network-tutorial).
733
733
  We highly recommend new users to consult the documentation and tutorial early on to fully leverage RISK's capabilities.
734
734
 
735
735
  ## Installation
@@ -753,7 +753,7 @@ pip install risk-network
753
753
 
754
754
  We applied RISK to a *Saccharomyces cerevisiae* protein–protein interaction network, revealing both established and novel functional relationships. The visualization below highlights key biological processes such as ribosomal assembly and mitochondrial organization.
755
755
 
756
- ![RISK Main Figure](https://i.imgur.com/TUVfvfH.jpeg)
756
+ ![RISK Main Figure](https://i.imgur.com/5OP3Hqe.jpeg)
757
757
 
758
758
  RISK successfully detected both known and novel functional clusters within the yeast interactome. Clusters related to Golgi transport and actin nucleation were clearly defined and closely located, showcasing RISK's ability to map well-characterized interactions. Additionally, RISK identified links between mRNA processing pathways and vesicle trafficking proteins, consistent with recent studies demonstrating the role of vesicles in mRNA localization and stability.
759
759
 
@@ -1,4 +1,4 @@
1
- # RISK
1
+ # RISK Network
2
2
 
3
3
  <p align="center">
4
4
  <img src="https://i.imgur.com/8TleEJs.png" width="50%" />
@@ -17,8 +17,8 @@
17
17
 
18
18
  ## Documentation and Tutorial
19
19
 
20
- - **Documentation**: Comprehensive documentation is available at [Documentation link].
21
- - **Tutorial**: An interactive Jupyter notebook tutorial can be found at [Tutorial link].
20
+ - **Documentation**: Comprehensive documentation is available [here](Documentation link).
21
+ - **Tutorial**: An interactive Jupyter notebook tutorial can be found [here](https://github.com/riskportal/network-tutorial).
22
22
  We highly recommend new users to consult the documentation and tutorial early on to fully leverage RISK's capabilities.
23
23
 
24
24
  ## Installation
@@ -42,7 +42,7 @@ pip install risk-network
42
42
 
43
43
  We applied RISK to a *Saccharomyces cerevisiae* protein–protein interaction network, revealing both established and novel functional relationships. The visualization below highlights key biological processes such as ribosomal assembly and mitochondrial organization.
44
44
 
45
- ![RISK Main Figure](https://i.imgur.com/TUVfvfH.jpeg)
45
+ ![RISK Main Figure](https://i.imgur.com/5OP3Hqe.jpeg)
46
46
 
47
47
  RISK successfully detected both known and novel functional clusters within the yeast interactome. Clusters related to Golgi transport and actin nucleation were clearly defined and closely located, showcasing RISK's ability to map well-characterized interactions. Additionally, RISK identified links between mRNA processing pathways and vesicle trafficking proteins, consistent with recent studies demonstrating the role of vesicles in mRNA localization and stability.
48
48
 
@@ -7,4 +7,4 @@ RISK: RISK Infers Spatial Kinships
7
7
 
8
8
  from risk.risk import RISK
9
9
 
10
- __version__ = "0.0.8-beta.9"
10
+ __version__ = "0.0.8-beta.11"
@@ -121,7 +121,7 @@ def trim_domains_and_top_annotations(
121
121
  ].transform(lambda x: (x.rank(pct=True) * 10).apply(np.ceil).astype(int))
122
122
  # Multiply 'words' column by normalized values
123
123
  top_annotations["words"] = top_annotations.apply(
124
- lambda row: " ".join([row["words"]] * row["normalized_value"]), axis=1
124
+ lambda row: " ".join([str(row["words"])] * row["normalized_value"]), axis=1
125
125
  )
126
126
 
127
127
  # Generate domain labels
@@ -13,6 +13,7 @@ import zipfile
13
13
  from xml.dom import minidom
14
14
 
15
15
  import networkx as nx
16
+ import numpy as np
16
17
  import pandas as pd
17
18
 
18
19
  from risk.network.geometry import assign_edge_lengths
@@ -490,7 +491,7 @@ class NetworkIO:
490
491
  if "x" not in attrs or "y" not in attrs:
491
492
  if (
492
493
  "pos" in attrs
493
- and isinstance(attrs["pos"], (tuple, list))
494
+ and isinstance(attrs["pos"], (list, tuple, np.ndarray))
494
495
  and len(attrs["pos"]) >= 2
495
496
  ):
496
497
  attrs["x"], attrs["y"] = attrs["pos"][
@@ -462,9 +462,10 @@ class Labels:
462
462
  def calculate_distance(centroid1, centroid2):
463
463
  return np.linalg.norm(centroid1 - centroid2)
464
464
 
465
+ # Domains to plot on network
466
+ selected_domains = []
465
467
  # Find the farthest apart domains using centroids
466
468
  if remaining_domains and remaining_labels:
467
- selected_domains = []
468
469
  first_domain = next(iter(remaining_domains)) # Pick the first domain to start
469
470
  selected_domains.append(first_domain)
470
471
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: risk-network
3
- Version: 0.0.8b9
3
+ Version: 0.0.8b11
4
4
  Summary: A Python package for biological network analysis
5
5
  Author: Ira Horecka
6
6
  Author-email: Ira Horecka <ira89@icloud.com>
@@ -709,7 +709,7 @@ Requires-Dist: statsmodels
709
709
  Requires-Dist: threadpoolctl
710
710
  Requires-Dist: tqdm
711
711
 
712
- # RISK
712
+ # RISK Network
713
713
 
714
714
  <p align="center">
715
715
  <img src="https://i.imgur.com/8TleEJs.png" width="50%" />
@@ -728,8 +728,8 @@ Requires-Dist: tqdm
728
728
 
729
729
  ## Documentation and Tutorial
730
730
 
731
- - **Documentation**: Comprehensive documentation is available at [Documentation link].
732
- - **Tutorial**: An interactive Jupyter notebook tutorial can be found at [Tutorial link].
731
+ - **Documentation**: Comprehensive documentation is available [here](Documentation link).
732
+ - **Tutorial**: An interactive Jupyter notebook tutorial can be found [here](https://github.com/riskportal/network-tutorial).
733
733
  We highly recommend new users to consult the documentation and tutorial early on to fully leverage RISK's capabilities.
734
734
 
735
735
  ## Installation
@@ -753,7 +753,7 @@ pip install risk-network
753
753
 
754
754
  We applied RISK to a *Saccharomyces cerevisiae* protein–protein interaction network, revealing both established and novel functional relationships. The visualization below highlights key biological processes such as ribosomal assembly and mitochondrial organization.
755
755
 
756
- ![RISK Main Figure](https://i.imgur.com/TUVfvfH.jpeg)
756
+ ![RISK Main Figure](https://i.imgur.com/5OP3Hqe.jpeg)
757
757
 
758
758
  RISK successfully detected both known and novel functional clusters within the yeast interactome. Clusters related to Golgi transport and actin nucleation were clearly defined and closely located, showcasing RISK's ability to map well-characterized interactions. Additionally, RISK identified links between mRNA processing pathways and vesicle trafficking proteins, consistent with recent studies demonstrating the role of vesicles in mRNA localization and stability.
759
759
 
File without changes
File without changes