risk-network 0.0.9b16__tar.gz → 0.0.9b17__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 (46) hide show
  1. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/PKG-INFO +1 -1
  2. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/__init__.py +1 -1
  3. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/plot/contour.py +7 -21
  4. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/stats/permutation/permutation.py +3 -1
  5. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk_network.egg-info/PKG-INFO +1 -1
  6. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/LICENSE +0 -0
  7. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/MANIFEST.in +0 -0
  8. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/README.md +0 -0
  9. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/pyproject.toml +0 -0
  10. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/annotations/__init__.py +0 -0
  11. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/annotations/annotations.py +0 -0
  12. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/annotations/io.py +0 -0
  13. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/constants.py +0 -0
  14. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/log/__init__.py +0 -0
  15. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/log/console.py +0 -0
  16. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/log/parameters.py +0 -0
  17. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/neighborhoods/__init__.py +0 -0
  18. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/neighborhoods/community.py +0 -0
  19. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/neighborhoods/domains.py +0 -0
  20. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/neighborhoods/neighborhoods.py +0 -0
  21. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/__init__.py +0 -0
  22. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/geometry.py +0 -0
  23. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/graph/__init__.py +0 -0
  24. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/graph/network.py +0 -0
  25. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/graph/summary.py +0 -0
  26. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/io.py +0 -0
  27. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/plot/__init__.py +0 -0
  28. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/plot/canvas.py +0 -0
  29. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/plot/labels.py +0 -0
  30. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/plot/network.py +0 -0
  31. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/plot/plotter.py +0 -0
  32. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/plot/utils/colors.py +0 -0
  33. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/network/plot/utils/layout.py +0 -0
  34. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/risk.py +0 -0
  35. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/stats/__init__.py +0 -0
  36. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/stats/hypergeom.py +0 -0
  37. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/stats/permutation/__init__.py +0 -0
  38. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/stats/permutation/test_functions.py +0 -0
  39. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/stats/poisson.py +0 -0
  40. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk/stats/stats.py +0 -0
  41. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk_network.egg-info/SOURCES.txt +0 -0
  42. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk_network.egg-info/dependency_links.txt +0 -0
  43. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk_network.egg-info/requires.txt +0 -0
  44. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/risk_network.egg-info/top_level.txt +0 -0
  45. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/setup.cfg +0 -0
  46. {risk_network-0.0.9b16 → risk_network-0.0.9b17}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: risk-network
3
- Version: 0.0.9b16
3
+ Version: 0.0.9b17
4
4
  Summary: A Python package for biological network analysis
5
5
  Author: Ira Horecka
6
6
  Author-email: Ira Horecka <ira89@icloud.com>
@@ -7,4 +7,4 @@ RISK: Regional Inference of Significant Kinships
7
7
 
8
8
  from risk.risk import RISK
9
9
 
10
- __version__ = "0.0.9-beta.16"
10
+ __version__ = "0.0.9-beta.17"
@@ -242,7 +242,7 @@ class Contour:
242
242
  logger.error("Contour levels must be strictly increasing. Skipping contour plot.")
243
243
  return None
244
244
 
245
- # Set the contour color and linestyle
245
+ # Set the contour color, fill, and linestyle
246
246
  contour_colors = [color for _ in range(levels - 1)]
247
247
  # Plot the filled contours using fill_alpha for transparency
248
248
  if fill_alpha and fill_alpha > 0:
@@ -258,33 +258,19 @@ class Contour:
258
258
  alpha=fill_alpha,
259
259
  )
260
260
 
261
- # Plot the contour lines with the specified RGBA alpha for transparency
262
- c = ax.contour(
261
+ # Plot the base contour line with the specified RGBA alpha for transparency
262
+ base_contour_color = [color]
263
+ base_contour_level = [contour_levels[0]]
264
+ ax.contour(
263
265
  x,
264
266
  y,
265
267
  z,
266
- levels=contour_levels,
267
- colors=contour_colors,
268
+ levels=base_contour_level,
269
+ colors=base_contour_color,
268
270
  linestyles=linestyle,
269
271
  linewidths=linewidth,
270
272
  )
271
273
 
272
- # Set linewidth for the contour lines to 0 for levels other than the base level
273
- c.set_linewidth(0)
274
- try:
275
- # Try setting linewidth directly on the QuadContourSet
276
- c.set_linewidth(0)
277
- except AttributeError:
278
- # Fallback: Iterate over collections if the direct method fails
279
- if hasattr(c, "collections"):
280
- for i, collection in enumerate(c.collections):
281
- collection.set_linewidth(0)
282
- else:
283
- # Raise an error if 'collections' is also not available
284
- raise AttributeError(
285
- "'QuadContourSet' object has neither 'set_linewidth' nor 'collections'"
286
- )
287
-
288
274
  def get_annotated_contour_colors(
289
275
  self,
290
276
  cmap: str = "gist_rainbow",
@@ -192,7 +192,9 @@ def _permutation_process_subset(
192
192
  local_counts_depletion = np.zeros(observed_neighborhood_scores.shape)
193
193
  local_counts_enrichment = np.zeros(observed_neighborhood_scores.shape)
194
194
 
195
- # NOTE: Limit the number of threads used by NumPy's BLAS implementation to 1 when more than one worker is used.
195
+ # Limit the number of threads used by NumPy's BLAS implementation to 1 when more than one worker is used
196
+ # NOTE: This does not work for Mac M chips due to a bug in the threadpoolctl package
197
+ # This is currently a known issue and is being addressed by the maintainers [https://github.com/joblib/threadpoolctl/issues/135]
196
198
  limits = None if max_workers == 1 else 1
197
199
  with threadpool_limits(limits=limits, user_api="blas"):
198
200
  # Initialize a local counter for batched progress updates
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: risk-network
3
- Version: 0.0.9b16
3
+ Version: 0.0.9b17
4
4
  Summary: A Python package for biological network analysis
5
5
  Author: Ira Horecka
6
6
  Author-email: Ira Horecka <ira89@icloud.com>
File without changes