risk-network 0.0.4b3__tar.gz → 0.0.5b1__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 (38) hide show
  1. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/PKG-INFO +1 -1
  2. risk_network-0.0.5b1/risk/__init__.py +10 -0
  3. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/network/plot.py +12 -2
  4. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/risk.py +4 -0
  5. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk_network.egg-info/PKG-INFO +1 -1
  6. risk_network-0.0.4b3/risk/__init__.py +0 -10
  7. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/LICENSE +0 -0
  8. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/MANIFEST.in +0 -0
  9. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/README.md +0 -0
  10. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/pyproject.toml +0 -0
  11. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/annotations/__init__.py +0 -0
  12. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/annotations/annotations.py +0 -0
  13. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/annotations/io.py +0 -0
  14. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/constants.py +0 -0
  15. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/log/__init__.py +0 -0
  16. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/log/console.py +0 -0
  17. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/log/params.py +0 -0
  18. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/neighborhoods/__init__.py +0 -0
  19. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/neighborhoods/community.py +0 -0
  20. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/neighborhoods/domains.py +0 -0
  21. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/neighborhoods/neighborhoods.py +0 -0
  22. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/network/__init__.py +0 -0
  23. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/network/geometry.py +0 -0
  24. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/network/graph.py +0 -0
  25. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/network/io.py +0 -0
  26. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/stats/__init__.py +0 -0
  27. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/stats/fisher_exact.py +0 -0
  28. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/stats/hypergeom.py +0 -0
  29. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/stats/permutation/__init__.py +0 -0
  30. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/stats/permutation/permutation.py +0 -0
  31. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/stats/permutation/test_functions.py +0 -0
  32. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk/stats/stats.py +0 -0
  33. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk_network.egg-info/SOURCES.txt +0 -0
  34. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk_network.egg-info/dependency_links.txt +0 -0
  35. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk_network.egg-info/requires.txt +0 -0
  36. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/risk_network.egg-info/top_level.txt +0 -0
  37. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/setup.cfg +0 -0
  38. {risk_network-0.0.4b3 → risk_network-0.0.5b1}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: risk-network
3
- Version: 0.0.4b3
3
+ Version: 0.0.5b1
4
4
  Summary: A Python package for biological network analysis
5
5
  Author: Ira Horecka
6
6
  Author-email: Ira Horecka <ira89@icloud.com>
@@ -0,0 +1,10 @@
1
+ """
2
+ risk
3
+ ~~~~
4
+
5
+ RISK: RISK Infers Spatial Kinships
6
+ """
7
+
8
+ from risk.risk import RISK
9
+
10
+ __version__ = "0.0.5-beta.1"
@@ -33,6 +33,7 @@ class NetworkPlotter:
33
33
  plot_outline: bool = True,
34
34
  outline_color: str = "black",
35
35
  outline_scale: float = 1.0,
36
+ linestyle: str = "dashed",
36
37
  ) -> None:
37
38
  """Initialize the NetworkPlotter with a NetworkGraph object and plotting parameters.
38
39
 
@@ -43,11 +44,18 @@ class NetworkPlotter:
43
44
  plot_outline (bool, optional): Whether to plot the network perimeter circle. Defaults to True.
44
45
  outline_color (str, optional): Color of the network perimeter circle. Defaults to "black".
45
46
  outline_scale (float, optional): Outline scaling factor for the perimeter diameter. Defaults to 1.0.
47
+ linestyle (str): Line style for the network perimeter circle (e.g., dashed, solid). Defaults to "dashed".
46
48
  """
47
49
  self.graph = graph
48
50
  # Initialize the plot with the specified parameters
49
51
  self.ax = self._initialize_plot(
50
- graph, figsize, background_color, plot_outline, outline_color, outline_scale
52
+ graph,
53
+ figsize,
54
+ background_color,
55
+ plot_outline,
56
+ outline_color,
57
+ outline_scale,
58
+ linestyle,
51
59
  )
52
60
 
53
61
  def _initialize_plot(
@@ -58,6 +66,7 @@ class NetworkPlotter:
58
66
  plot_outline: bool,
59
67
  outline_color: str,
60
68
  outline_scale: float,
69
+ linestyle: str,
61
70
  ) -> plt.Axes:
62
71
  """Set up the plot with figure size, optional circle perimeter, and background color.
63
72
 
@@ -68,6 +77,7 @@ class NetworkPlotter:
68
77
  plot_outline (bool): Whether to plot the network perimeter circle.
69
78
  outline_color (str): Color of the network perimeter circle.
70
79
  outline_scale (float): Outline scaling factor for the perimeter diameter.
80
+ linestyle (str): Line style for the network perimeter circle (e.g., dashed, solid).
71
81
 
72
82
  Returns:
73
83
  plt.Axes: The axis object for the plot.
@@ -87,7 +97,7 @@ class NetworkPlotter:
87
97
  circle = plt.Circle(
88
98
  center,
89
99
  scaled_radius,
90
- linestyle="--",
100
+ linestyle=linestyle, # Use the linestyle argument here
91
101
  color=outline_color,
92
102
  fill=False,
93
103
  linewidth=1.5,
@@ -352,6 +352,7 @@ class RISK(NetworkIO, AnnotationsIO):
352
352
  plot_outline: bool = True,
353
353
  outline_color: str = "black",
354
354
  outline_scale: float = 1.00,
355
+ linestyle: str = "dashed",
355
356
  ) -> NetworkPlotter:
356
357
  """Get a NetworkPlotter object for plotting.
357
358
 
@@ -362,6 +363,7 @@ class RISK(NetworkIO, AnnotationsIO):
362
363
  plot_outline (bool, optional): Whether to plot the network outline. Defaults to True.
363
364
  outline_color (str, optional): Color of the outline. Defaults to "black".
364
365
  outline_scale (float, optional): Scaling factor for the outline. Defaults to 1.00.
366
+ linestyle (str): Line style for the network perimeter circle (e.g., dashed, solid). Defaults to "dashed".
365
367
 
366
368
  Returns:
367
369
  NetworkPlotter: A NetworkPlotter object configured with the given parameters.
@@ -374,6 +376,7 @@ class RISK(NetworkIO, AnnotationsIO):
374
376
  plot_outline=plot_outline,
375
377
  outline_color=outline_color,
376
378
  outline_scale=outline_scale,
379
+ linestyle=linestyle,
377
380
  )
378
381
 
379
382
  # Initialize and return a NetworkPlotter object
@@ -384,6 +387,7 @@ class RISK(NetworkIO, AnnotationsIO):
384
387
  plot_outline=plot_outline,
385
388
  outline_color=outline_color,
386
389
  outline_scale=outline_scale,
390
+ linestyle=linestyle,
387
391
  )
388
392
 
389
393
  def _load_neighborhoods(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: risk-network
3
- Version: 0.0.4b3
3
+ Version: 0.0.5b1
4
4
  Summary: A Python package for biological network analysis
5
5
  Author: Ira Horecka
6
6
  Author-email: Ira Horecka <ira89@icloud.com>
@@ -1,10 +0,0 @@
1
- """
2
- risk
3
- ~~~~
4
-
5
- RISK: RISK Infers Spatial Kinship
6
- """
7
-
8
- from risk.risk import RISK
9
-
10
- __version__ = "0.0.4-beta.3"
File without changes
File without changes
File without changes
File without changes