risk-network 0.0.5b3__py3-none-any.whl → 0.0.5b4__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.5-beta.3"
10
+ __version__ = "0.0.5-beta.4"
risk/network/plot.py CHANGED
@@ -487,7 +487,7 @@ class NetworkPlotter:
487
487
  filtered_domain_centroids[domain] = centroid
488
488
  # Store the filtered and trimmed terms
489
489
  filtered_domain_terms[domain] = " ".join(terms)
490
- # Keep track of the valid index
490
+ # Keep track of the valid index - used for fontcolor and arrow_color
491
491
  valid_indices.append(idx)
492
492
 
493
493
  # If max_labels is specified and less than the available labels
@@ -515,8 +515,8 @@ class NetworkPlotter:
515
515
  best_label_positions = _best_label_positions(
516
516
  filtered_domain_centroids, center, radius, offset
517
517
  )
518
- # Annotate the network with labels
519
- for idx, (domain, pos) in enumerate(best_label_positions.items()):
518
+ # Annotate the network with labels - valid_indices is used for fontcolor and arrow_color
519
+ for idx, (domain, pos) in zip(valid_indices, best_label_positions.items()):
520
520
  centroid = filtered_domain_centroids[domain]
521
521
  annotations = filtered_domain_terms[domain].split(" ")[:max_words]
522
522
  self.ax.annotate(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: risk-network
3
- Version: 0.0.5b3
3
+ Version: 0.0.5b4
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,4 +1,4 @@
1
- risk/__init__.py,sha256=hkNuyHvspGpQZXzClmw2D5DznJwi1PUZ7T57uemJkcY,112
1
+ risk/__init__.py,sha256=bzj1Zn2Vm3Nh5mYk1ZoFg3njX6gjTO8aKOI6Zi_6JuE,112
2
2
  risk/constants.py,sha256=AICk3x5qRQhls_ijTb4VdbdxU6mZ1aLGbAjLEdBwfJI,550
3
3
  risk/risk.py,sha256=UYM_Pf2Db-lbf4O5T2v5zKutz_GLXK-f43PgYT6xRyY,21328
4
4
  risk/annotations/__init__.py,sha256=vUpVvMRE5if01Ic8QY6M2Ae3EFGJHdugEe9PdEkAW4Y,138
@@ -15,7 +15,7 @@ risk/network/__init__.py,sha256=iEPeJdZfqp0toxtbElryB8jbz9_t_k4QQ3iDvKE8C_0,126
15
15
  risk/network/geometry.py,sha256=H1yGVVqgbfpzBzJwEheDLfvGLSA284jGQQTn612L4Vc,6759
16
16
  risk/network/graph.py,sha256=F_SY7nZev6XZuHwkJnVdeow-oMSmR4u8AUiFCrh6yvk,11543
17
17
  risk/network/io.py,sha256=otiRG6uT6HLgbbJql7X2wjYxab8OFJSgRoWJlcDoyu4,20291
18
- risk/network/plot.py,sha256=ZABvLKr1ORCWWnHymRJz6g8z7v5kCKsMThUSLAKUCtU,40782
18
+ risk/network/plot.py,sha256=Ti0nT49NffoQc9qjXOclEFBRuuN_4LLntpBZn3cp5Fo,40882
19
19
  risk/stats/__init__.py,sha256=e-BE_Dr_jgiK6hKM-T-tlG4yvHnId8e5qjnM0pdwNVc,230
20
20
  risk/stats/fisher_exact.py,sha256=-bPwzu76-ob0HzrTV20mXUTot7v-MLuqFaAoab-QxPg,4966
21
21
  risk/stats/hypergeom.py,sha256=lrIFdhCWRjvM4apYw1MlOKqT_IY5OjtCwrjdtJdt6Tg,4954
@@ -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.5b3.dist-info/LICENSE,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
27
- risk_network-0.0.5b3.dist-info/METADATA,sha256=189cCFcKnA56wLM1qZ4XcJfkPY6NfZYXyxUYeNwhbas,43236
28
- risk_network-0.0.5b3.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
29
- risk_network-0.0.5b3.dist-info/top_level.txt,sha256=NX7C2PFKTvC1JhVKv14DFlFAIFnKc6Lpsu1ZfxvQwVw,5
30
- risk_network-0.0.5b3.dist-info/RECORD,,
26
+ risk_network-0.0.5b4.dist-info/LICENSE,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
27
+ risk_network-0.0.5b4.dist-info/METADATA,sha256=tSh6tuMzdhFwIJ4XzzccgnONtulZDNCfLkHEAV7XtSI,43236
28
+ risk_network-0.0.5b4.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
29
+ risk_network-0.0.5b4.dist-info/top_level.txt,sha256=NX7C2PFKTvC1JhVKv14DFlFAIFnKc6Lpsu1ZfxvQwVw,5
30
+ risk_network-0.0.5b4.dist-info/RECORD,,