risk-network 0.0.0__py3-none-any.whl

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.
risk/__init__.py ADDED
@@ -0,0 +1,10 @@
1
+ """
2
+ risk
3
+ ~~~~
4
+
5
+ RISK: Regional Inference of Significant Kinships
6
+ """
7
+
8
+ from risk.risk import RISK
9
+
10
+ __version__ = "0.0.12-beta.0"
risk/risk.py ADDED
@@ -0,0 +1,32 @@
1
+ """
2
+ risk/risk
3
+ ~~~~~~~~~
4
+ """
5
+
6
+ from risk.annotations.io import AnnotationsIO
7
+ from risk.log import params, set_global_verbosity
8
+ from risk.neighborhoods.api import NeighborhoodsAPI
9
+ from risk.network.graph.api import GraphAPI
10
+ from risk.network.io import NetworkIO
11
+ from risk.network.plotter.api import PlotterAPI
12
+
13
+
14
+ class RISK(NetworkIO, AnnotationsIO, NeighborhoodsAPI, GraphAPI, PlotterAPI):
15
+ """RISK: A class for network analysis and visualization.
16
+
17
+ The RISK class integrates functionalities for loading networks, processing annotations,
18
+ performing network-based statistical analysis to quantify neighborhood relationships,
19
+ and visualizing networks and their properties.
20
+ """
21
+
22
+ def __init__(self, verbose: bool = True):
23
+ """Initialize the RISK class with configuration settings.
24
+
25
+ Args:
26
+ verbose (bool): If False, suppresses all log messages to the console. Defaults to True.
27
+ """
28
+ # Set global verbosity for logging
29
+ set_global_verbosity(verbose)
30
+ # Provide public access to network parameters
31
+ self.params = params
32
+ super().__init__()