reflexive 1.2.5__py3-none-any.whl → 1.2.6__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.
- reflexive/res.py +3 -2
- {reflexive-1.2.5.dist-info → reflexive-1.2.6.dist-info}/METADATA +1 -1
- {reflexive-1.2.5.dist-info → reflexive-1.2.6.dist-info}/RECORD +5 -5
- {reflexive-1.2.5.dist-info → reflexive-1.2.6.dist-info}/WHEEL +0 -0
- {reflexive-1.2.5.dist-info → reflexive-1.2.6.dist-info}/licenses/LICENSE +0 -0
reflexive/res.py
CHANGED
|
@@ -121,6 +121,7 @@ class Res_display:
|
|
|
121
121
|
#Get RE sequence
|
|
122
122
|
df = self._add_res_sequence(df)
|
|
123
123
|
df = self._add_res_interactions(df)
|
|
124
|
+
df = self._add_res_weights(df)
|
|
124
125
|
df = self._add_res_adj_matrix(df)
|
|
125
126
|
return df
|
|
126
127
|
|
|
@@ -186,10 +187,10 @@ class Res_display:
|
|
|
186
187
|
return re_ints
|
|
187
188
|
|
|
188
189
|
def _calc_res_weights(self,interactions:dict[tuple,int])->dict[tuple,float]:
|
|
189
|
-
|
|
190
|
+
max_count = max(interactions.values())
|
|
190
191
|
weights = dict()
|
|
191
192
|
for edge,count in interactions.items():
|
|
192
|
-
weights[edge] = round(count/(15*
|
|
193
|
+
weights[edge] = round(count/(15*max_count),3)
|
|
193
194
|
return weights
|
|
194
195
|
|
|
195
196
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
reflexive/__init__.py,sha256=x5l8GV_9yC8yJyjTLqiM_WkfuPMLuNgQxF6PIz5MfFU,422
|
|
2
2
|
reflexive/analyse.py,sha256=CU6mQ8PxQrkOvuSe4mmnuI18jGMkuxql3zLZ1vEeMEY,17466
|
|
3
3
|
reflexive/cfg.py,sha256=tDPiC9NwpEVoT05_831sMsMfHhJt8pVrSOsgbtzTNDM,4267
|
|
4
|
-
reflexive/res.py,sha256=
|
|
4
|
+
reflexive/res.py,sha256=OUuki0BW9_OvHUSR5FLwqiCoQKjTeZa41of8oA4X8dI,7444
|
|
5
5
|
reflexive/res_functions.py,sha256=YF45yUF8NYMSC19DFpE0lmV4xyNxv3QqbbzZmdwmFzg,1231
|
|
6
6
|
reflexive/session.py,sha256=8STWo8sqmWn-1PHcloFbgmLEvd7lsiFTU4t7ESRTsvw,10046
|
|
7
7
|
reflexive/util.py,sha256=uU7-lqUmiCiCaR85AdNFKXrdrBspjb1Rmd-yThA3fRU,3699
|
|
8
8
|
reflexive/visualise.py,sha256=pVnsPJOnHiLAIvDDm9P0u6-sGQINC4GVOY9b0GrzTK4,11725
|
|
9
|
-
reflexive-1.2.
|
|
10
|
-
reflexive-1.2.
|
|
11
|
-
reflexive-1.2.
|
|
12
|
-
reflexive-1.2.
|
|
9
|
+
reflexive-1.2.6.dist-info/METADATA,sha256=UFScd71_jEuuXDIbGOScKNbbpEiQiv9cmL-ZD6DVZVE,574
|
|
10
|
+
reflexive-1.2.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
11
|
+
reflexive-1.2.6.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
12
|
+
reflexive-1.2.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|