risk-network 0.0.9b4__py3-none-any.whl → 0.0.9b5__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.9-beta.4"
10
+ __version__ = "0.0.9-beta.5"
@@ -65,8 +65,9 @@ def load_annotations(network: nx.Graph, annotations_input: Dict[str, Any]) -> Di
65
65
  "No annotations found in the annotations file for the nodes in the network."
66
66
  )
67
67
 
68
- # Remove columns with all zeros to improve performance
69
- annotations_pivot = annotations_pivot.loc[:, annotations_pivot.sum(axis=0) != 0]
68
+ # Remove columns with all zeros and those with only a single '1' to improve statistical performance
69
+ # (i.e., it's unreliable to compute the significance of an annotation in a node cluster based on a single occurrence).
70
+ annotations_pivot = annotations_pivot.loc[:, (annotations_pivot.sum(axis=0) > 1)]
70
71
  # Extract ordered nodes and annotations
71
72
  ordered_nodes = tuple(annotations_pivot.index)
72
73
  ordered_annotations = tuple(annotations_pivot.columns)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: risk-network
3
- Version: 0.0.9b4
3
+ Version: 0.0.9b5
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,8 +1,8 @@
1
- risk/__init__.py,sha256=dZ3VXcE-IJQdsTfZrd9B8BAcyb3WnO6J_uyXuiDu7AQ,112
1
+ risk/__init__.py,sha256=xpU4eFf8OBGeA2fxuMCAFmBEQO6YlnDSVL09OvyHThs,112
2
2
  risk/constants.py,sha256=XInRaH78Slnw_sWgAsBFbUHkyA0h0jL0DKGuQNbOvjM,550
3
3
  risk/risk.py,sha256=De1vn8Xc-TKz6aTL0bvJI-SVrIqU3k0IWAbKc7dde1c,23618
4
4
  risk/annotations/__init__.py,sha256=kXgadEXaCh0z8OyhOhTj7c3qXGmWgOhaSZ4gSzSb59U,147
5
- risk/annotations/annotations.py,sha256=m3WeCdE1a2undpSl_Q2I17drD95r2McKtpzhiiSdxHY,13143
5
+ risk/annotations/annotations.py,sha256=aC30M-wdd72ZjOfn8RZKAsGM7Yti0Wl_4CHTvayoPvY,13312
6
6
  risk/annotations/io.py,sha256=eOkPD9G6KzkhGRc_ZW2McxQ8665o-H3uDG8bmKlzQ80,9591
7
7
  risk/log/__init__.py,sha256=gy7C5L6D222AYUChq5lkc0LsCJ_QMQPaFiBJKbecdac,201
8
8
  risk/log/console.py,sha256=C52s3FgQ2e9kQWcXL8m7rs_pnKXt5Yy8PBHmQkOTiNo,4537
@@ -32,8 +32,8 @@ risk/stats/stats.py,sha256=z8NrhiVj4BzJ250bVLfytpmfC7RzYu7mBuIZD_l0aCA,7222
32
32
  risk/stats/permutation/__init__.py,sha256=neJp7FENC-zg_CGOXqv-iIvz1r5XUKI9Ruxhmq7kDOI,105
33
33
  risk/stats/permutation/permutation.py,sha256=meBNSrbRa9P8WJ54n485l0H7VQJlMSfHqdN4aCKYCtQ,10105
34
34
  risk/stats/permutation/test_functions.py,sha256=lftOude6hee0pyR80HlBD32522JkDoN5hrKQ9VEbuoY,2345
35
- risk_network-0.0.9b4.dist-info/LICENSE,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
36
- risk_network-0.0.9b4.dist-info/METADATA,sha256=8iJaySThTILJJ7-8Au42vD89VFD_UJ64xYrSCKUSPNo,47497
37
- risk_network-0.0.9b4.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
38
- risk_network-0.0.9b4.dist-info/top_level.txt,sha256=NX7C2PFKTvC1JhVKv14DFlFAIFnKc6Lpsu1ZfxvQwVw,5
39
- risk_network-0.0.9b4.dist-info/RECORD,,
35
+ risk_network-0.0.9b5.dist-info/LICENSE,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
36
+ risk_network-0.0.9b5.dist-info/METADATA,sha256=Oc_07HiBSedyTbbiP-2a-xeLgEH-3zzNdXYzV6FSdQY,47497
37
+ risk_network-0.0.9b5.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
38
+ risk_network-0.0.9b5.dist-info/top_level.txt,sha256=NX7C2PFKTvC1JhVKv14DFlFAIFnKc6Lpsu1ZfxvQwVw,5
39
+ risk_network-0.0.9b5.dist-info/RECORD,,