risk-network 0.0.6b9__py3-none-any.whl → 0.0.6b10__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 CHANGED
@@ -7,4 +7,4 @@ RISK: RISK Infers Spatial Kinships
7
7
 
8
8
  from risk.risk import RISK
9
9
 
10
- __version__ = "0.0.6-beta.9"
10
+ __version__ = "0.0.6-beta.10"
risk/log/params.py CHANGED
@@ -7,6 +7,7 @@ import csv
7
7
  import json
8
8
  import warnings
9
9
  from datetime import datetime
10
+ from functools import wraps
10
11
  from typing import Any, Dict
11
12
 
12
13
  import numpy as np
@@ -27,6 +28,7 @@ def _safe_param_export(func):
27
28
  function: The wrapped function with error handling.
28
29
  """
29
30
 
31
+ @wraps(func)
30
32
  def wrapper(*args, **kwargs):
31
33
  try:
32
34
  result = func(*args, **kwargs)
risk/risk.py CHANGED
@@ -62,7 +62,7 @@ class RISK(NetworkIO, AnnotationsIO):
62
62
 
63
63
  Args:
64
64
  network (nx.Graph): The network graph.
65
- annotations (pd.DataFrame): The matrix of annotations associated with the network.
65
+ annotations (dict): The annotations associated with the network.
66
66
  distance_metric (str, optional): Distance metric for neighborhood analysis. Defaults to "dijkstra".
67
67
  louvain_resolution (float, optional): Resolution parameter for Louvain clustering. Defaults to 0.1.
68
68
  edge_length_threshold (float, optional): Edge length threshold for neighborhood analysis. Defaults to 0.5.
@@ -131,7 +131,7 @@ class RISK(NetworkIO, AnnotationsIO):
131
131
 
132
132
  Args:
133
133
  network (nx.Graph): The network graph.
134
- annotations (pd.DataFrame): The matrix of annotations associated with the network.
134
+ annotations (dict): The annotations associated with the network.
135
135
  distance_metric (str, optional): Distance metric for neighborhood analysis. Defaults to "dijkstra".
136
136
  louvain_resolution (float, optional): Resolution parameter for Louvain clustering. Defaults to 0.1.
137
137
  edge_length_threshold (float, optional): Edge length threshold for neighborhood analysis. Defaults to 0.5.
@@ -187,7 +187,7 @@ class RISK(NetworkIO, AnnotationsIO):
187
187
 
188
188
  Args:
189
189
  network (nx.Graph): The network graph.
190
- annotations (pd.DataFrame): The matrix of annotations associated with the network.
190
+ annotations (dict): The annotations associated with the network.
191
191
  distance_metric (str, optional): Distance metric for neighborhood analysis. Defaults to "dijkstra".
192
192
  louvain_resolution (float, optional): Resolution parameter for Louvain clustering. Defaults to 0.1.
193
193
  edge_length_threshold (float, optional): Edge length threshold for neighborhood analysis. Defaults to 0.5.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: risk-network
3
- Version: 0.0.6b9
3
+ Version: 0.0.6b10
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,12 +1,12 @@
1
- risk/__init__.py,sha256=6tlj1gnLhGwFbzT3xQqzWEWhatgBFXGguhpqJMhE5EA,112
1
+ risk/__init__.py,sha256=nUkWz8VqnztwzCLGVbN6G8bFixZFkDyLsEOsb5mLAGc,113
2
2
  risk/constants.py,sha256=XInRaH78Slnw_sWgAsBFbUHkyA0h0jL0DKGuQNbOvjM,550
3
- risk/risk.py,sha256=-QVVWCBNmu3ho0QDiB5lRqpNsBR5fkpXpWJan3K3YGg,20702
3
+ risk/risk.py,sha256=CKDIzVo9Jvl-fgzIlk5ZtJL9pIBMma24WK6EYdVu5po,20648
4
4
  risk/annotations/__init__.py,sha256=vUpVvMRE5if01Ic8QY6M2Ae3EFGJHdugEe9PdEkAW4Y,138
5
5
  risk/annotations/annotations.py,sha256=DRUTdGzMdqo62NWSapBUksbvPr9CrzD76qtOcxeNKmo,10554
6
6
  risk/annotations/io.py,sha256=lo7NKqOVkeeBp58JBxWJHtA0xjL5Yoxqe9Ox0daKlZk,9457
7
7
  risk/log/__init__.py,sha256=xuLImfxFlKpnVhzi_gDYlr2_c9cLkrw2c_3iEsXb1as,107
8
8
  risk/log/console.py,sha256=im9DRExwf6wHlcn9fewoDcKIpo3vPcorZIaNAl-0csY,355
9
- risk/log/params.py,sha256=Tbb-sovFTptGBqPDKafUA8KOpby4zFObutAT_Iti1hE,6302
9
+ risk/log/params.py,sha256=Rfdg5UcGCrG80m6V79FyORERWUqIzHFO7tGiY4zAImM,6347
10
10
  risk/neighborhoods/__init__.py,sha256=tKKEg4lsbqFukpgYlUGxU_v_9FOqK7V0uvM9T2QzoL0,206
11
11
  risk/neighborhoods/community.py,sha256=7ebo1Q5KokSQISnxZIh2SQxsKXdXm8aVkp-h_DiQ3K0,6818
12
12
  risk/neighborhoods/domains.py,sha256=5V--Nj-TrSdubhD_2PI57ffcn_PMSEgpX_iY5OjT6R8,10626
@@ -23,8 +23,8 @@ risk/stats/stats.py,sha256=kvShov-94W6ffgDUTb522vB9hDJQSyTsYif_UIaFfSM,7059
23
23
  risk/stats/permutation/__init__.py,sha256=neJp7FENC-zg_CGOXqv-iIvz1r5XUKI9Ruxhmq7kDOI,105
24
24
  risk/stats/permutation/permutation.py,sha256=qLWdwxEY6nmkYPxpM8HLDcd2mbqYv9Qr7CKtJvhLqIM,9220
25
25
  risk/stats/permutation/test_functions.py,sha256=HuDIM-V1jkkfE1rlaIqrWWBSKZt3dQ1f-YEDjWpnLSE,2343
26
- risk_network-0.0.6b9.dist-info/LICENSE,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
27
- risk_network-0.0.6b9.dist-info/METADATA,sha256=xhmfOR_CeYgPfZQ6n5OGN4zkiOJMYZ6j3SXVqt3dWzo,43142
28
- risk_network-0.0.6b9.dist-info/WHEEL,sha256=5Mi1sN9lKoFv_gxcPtisEVrJZihrm_beibeg5R6xb4I,91
29
- risk_network-0.0.6b9.dist-info/top_level.txt,sha256=NX7C2PFKTvC1JhVKv14DFlFAIFnKc6Lpsu1ZfxvQwVw,5
30
- risk_network-0.0.6b9.dist-info/RECORD,,
26
+ risk_network-0.0.6b10.dist-info/LICENSE,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
27
+ risk_network-0.0.6b10.dist-info/METADATA,sha256=aOz9JrsPIpByvzMCwsbBBcBHHMLu3JzLF9FZMp9-IuM,43143
28
+ risk_network-0.0.6b10.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
29
+ risk_network-0.0.6b10.dist-info/top_level.txt,sha256=NX7C2PFKTvC1JhVKv14DFlFAIFnKc6Lpsu1ZfxvQwVw,5
30
+ risk_network-0.0.6b10.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.0.0)
2
+ Generator: setuptools (75.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5