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 +1 -1
- risk/network/plot.py +3 -3
- {risk_network-0.0.5b3.dist-info → risk_network-0.0.5b4.dist-info}/METADATA +1 -1
- {risk_network-0.0.5b3.dist-info → risk_network-0.0.5b4.dist-info}/RECORD +7 -7
- {risk_network-0.0.5b3.dist-info → risk_network-0.0.5b4.dist-info}/LICENSE +0 -0
- {risk_network-0.0.5b3.dist-info → risk_network-0.0.5b4.dist-info}/WHEEL +0 -0
- {risk_network-0.0.5b3.dist-info → risk_network-0.0.5b4.dist-info}/top_level.txt +0 -0
risk/__init__.py
CHANGED
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
|
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,4 +1,4 @@
|
|
1
|
-
risk/__init__.py,sha256=
|
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=
|
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.
|
27
|
-
risk_network-0.0.
|
28
|
-
risk_network-0.0.
|
29
|
-
risk_network-0.0.
|
30
|
-
risk_network-0.0.
|
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,,
|
File without changes
|
File without changes
|
File without changes
|