prospr 1.2.11__cp313-cp313-win_amd64.whl → 1.2.13__cp313-cp313-win_amd64.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.
- prospr/_version.py +1 -1
- prospr/visualize.py +13 -11
- {prospr-1.2.11.dist-info → prospr-1.2.13.dist-info}/METADATA +1 -1
- {prospr-1.2.11.dist-info → prospr-1.2.13.dist-info}/RECORD +8 -8
- prospr_core.cp313-win_amd64.pyd +0 -0
- {prospr-1.2.11.dist-info → prospr-1.2.13.dist-info}/WHEEL +0 -0
- {prospr-1.2.11.dist-info → prospr-1.2.13.dist-info}/licenses/LICENSE +0 -0
- {prospr-1.2.11.dist-info → prospr-1.2.13.dist-info}/top_level.txt +0 -0
prospr/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.2.
|
|
1
|
+
__version__ = "1.2.13"
|
prospr/visualize.py
CHANGED
|
@@ -21,6 +21,8 @@ BASIC_MARKERSIZE = 80
|
|
|
21
21
|
BASIC_LINEWIDTH = 2
|
|
22
22
|
PAPER_MARKERSIZE = 210
|
|
23
23
|
PAPER_LINEWIDTH = 2.5
|
|
24
|
+
PAPER_EDGEWIDTH = 2.5
|
|
25
|
+
PAPER_MIN_EDGEWIDTH = 1.5
|
|
24
26
|
|
|
25
27
|
# Global colors.
|
|
26
28
|
COLOR_H = "tab:blue"
|
|
@@ -108,11 +110,11 @@ def _plot_aminos_2d_paper(
|
|
|
108
110
|
:param bool annotate_first: Annotate first amino acid.
|
|
109
111
|
"""
|
|
110
112
|
# Scale edgewidth according to markersize scale.
|
|
111
|
-
edgewidth =
|
|
113
|
+
edgewidth = PAPER_EDGEWIDTH
|
|
112
114
|
if markersize != PAPER_MARKERSIZE:
|
|
113
|
-
edgewidth
|
|
114
|
-
|
|
115
|
-
|
|
115
|
+
edgewidth = max(
|
|
116
|
+
PAPER_MIN_EDGEWIDTH, edgewidth * markersize / PAPER_MARKERSIZE
|
|
117
|
+
)
|
|
116
118
|
|
|
117
119
|
# Split dataframe on amino acid type.
|
|
118
120
|
df_H = df.loc[df["Type"] == "H"]
|
|
@@ -271,11 +273,11 @@ def _plot_aminos_3d_paper(
|
|
|
271
273
|
:param Axes ax: Axis to plot on.
|
|
272
274
|
"""
|
|
273
275
|
# Scale edgewidth according to markersize scale.
|
|
274
|
-
edgewidth =
|
|
276
|
+
edgewidth = PAPER_EDGEWIDTH
|
|
275
277
|
if markersize != PAPER_MARKERSIZE:
|
|
276
|
-
edgewidth
|
|
277
|
-
|
|
278
|
-
|
|
278
|
+
edgewidth = max(
|
|
279
|
+
PAPER_MIN_EDGEWIDTH, edgewidth * markersize / PAPER_MARKERSIZE
|
|
280
|
+
)
|
|
279
281
|
|
|
280
282
|
# Split dataframe on amino acid type.
|
|
281
283
|
df_H = df.loc[df["Type"] == "H"]
|
|
@@ -492,12 +494,12 @@ def plot_protein(
|
|
|
492
494
|
style == "paper" and legend_style == "outer"
|
|
493
495
|
) or legend_style == "outer":
|
|
494
496
|
box = ax.get_position()
|
|
495
|
-
ax.set_position((box.x0, box.y0, box.width * 0.
|
|
497
|
+
ax.set_position((box.x0, box.y0, box.width * 0.8, box.height))
|
|
496
498
|
ax.legend(
|
|
497
499
|
handles=handles,
|
|
498
500
|
labels=labels,
|
|
499
|
-
loc="
|
|
500
|
-
bbox_to_anchor=(1,
|
|
501
|
+
loc="center left",
|
|
502
|
+
bbox_to_anchor=(1, 0.5),
|
|
501
503
|
fontsize=fontsize,
|
|
502
504
|
)
|
|
503
505
|
else:
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
prospr_core.cp313-win_amd64.pyd,sha256=
|
|
1
|
+
prospr_core.cp313-win_amd64.pyd,sha256=t0XXvF9beeKCrdnLw-AI9kWBoYJuZRgsSagFi32bzqY,284160
|
|
2
2
|
prospr/__init__.py,sha256=D5aWXefWNGmj-Yd7eCJ0ukFEpwX5xk7Z_7N4-ojeMt0,680
|
|
3
|
-
prospr/_version.py,sha256=
|
|
3
|
+
prospr/_version.py,sha256=OS1wtHKTA32P_4UHuSMH6XmWec7ygfshxiRuIIIQhPA,24
|
|
4
4
|
prospr/datasets.py,sha256=WNakLj5yqhaJWsIQOGCp9k-xoW7A3x7d36IZpuSLOp8,1033
|
|
5
5
|
prospr/gen_data.py,sha256=kdm5EQsJ-10uNns4cztcMer0-yj-IbB_jnbqTi-WRUI,6207
|
|
6
6
|
prospr/helpers.py,sha256=afUP3-MTsalfkxoPREN2XfuINLZUSvuQ-LxSQoqm5Hk,5586
|
|
7
|
-
prospr/visualize.py,sha256=
|
|
7
|
+
prospr/visualize.py,sha256=ffcOD1-rSlfdsv094waMQNooV-wekZoY6O81LgBE74k,15323
|
|
8
8
|
prospr/core/core_module.cpp,sha256=WnW2V6yHKb85GuveNlLYJmpkN9_u1i8dbQzFYBRHNlA,4484
|
|
9
9
|
prospr/core/src/amino_acid.cpp,sha256=dZRTdB6OZXgdrk7E6NV2fQBJyn4rqQJPBuo16m6Kh_4,2030
|
|
10
10
|
prospr/core/src/amino_acid.hpp,sha256=EHhs7mXYMpPI0XCB6fG13vgtRXtQUnW6F11hzAJ_R_0,1325
|
|
@@ -107,8 +107,8 @@ prospr/data/vanEck_hratio/HP30_r0.7.csv,sha256=Ztmw8bQMI23dajbXJebbpxph9IHMqxfoF
|
|
|
107
107
|
prospr/data/vanEck_hratio/HP30_r0.8.csv,sha256=tA_CojJX5ovdInFygorkD1Y80l6m7llTqa1E-yD9QLw,48409
|
|
108
108
|
prospr/data/vanEck_hratio/HP30_r0.9.csv,sha256=wcCbnqRJooFkxqF-WYgZU4j9MFhBdnnyQ26fRs0l8GE,37087
|
|
109
109
|
prospr/data/vanEck_hratio/HP30_r1.0.csv,sha256=ngoGM2GV0wVbVMje8ESFE3ID75CZP6MVsnfnuvzIvjI,47
|
|
110
|
-
prospr-1.2.
|
|
111
|
-
prospr-1.2.
|
|
112
|
-
prospr-1.2.
|
|
113
|
-
prospr-1.2.
|
|
114
|
-
prospr-1.2.
|
|
110
|
+
prospr-1.2.13.dist-info/licenses/LICENSE,sha256=fTqV5eBpeAZO0_jit8j4Ref9ikBSlHJ8xwj5TLg7gFk,7817
|
|
111
|
+
prospr-1.2.13.dist-info/METADATA,sha256=Bur4LrLlDiuSNx9PY2EF8s_5aVnvhepj7I-Lktxf1sQ,4377
|
|
112
|
+
prospr-1.2.13.dist-info/WHEEL,sha256=-WvvtQtdhM1F5HMi-4hSXLQ_1Tg6qJRWO1HnLNr4mCU,102
|
|
113
|
+
prospr-1.2.13.dist-info/top_level.txt,sha256=VzUxbFsehjdnl6j0PKJ70GTzftk8JfhTDhOHTEkXzqQ,19
|
|
114
|
+
prospr-1.2.13.dist-info/RECORD,,
|
prospr_core.cp313-win_amd64.pyd
CHANGED
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|