prospr 1.2.11__cp310-cp310-win32.whl → 1.2.13__cp310-cp310-win32.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 CHANGED
@@ -1 +1 @@
1
- __version__ = "1.2.11"
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 = 2.5
113
+ edgewidth = PAPER_EDGEWIDTH
112
114
  if markersize != PAPER_MARKERSIZE:
113
- edgewidth *= markersize / PAPER_MARKERSIZE
114
- if markersize < PAPER_MARKERSIZE:
115
- edgewidth *= 2
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 = 1.3
276
+ edgewidth = PAPER_EDGEWIDTH
275
277
  if markersize != PAPER_MARKERSIZE:
276
- edgewidth *= markersize / PAPER_MARKERSIZE
277
- if markersize < PAPER_MARKERSIZE:
278
- edgewidth *= 2
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.7, box.height))
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="upper left",
500
- bbox_to_anchor=(1, 1),
501
+ loc="center left",
502
+ bbox_to_anchor=(1, 0.5),
501
503
  fontsize=fontsize,
502
504
  )
503
505
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prospr
3
- Version: 1.2.11
3
+ Version: 1.2.13
4
4
  Summary: A toolbox for protein folding with Python.
5
5
  Author-email: okkevaneck <okke.van.eck@gmail.com>
6
6
  License-Expression: LGPL-3.0-or-later
@@ -1,10 +1,10 @@
1
- prospr_core.cp310-win32.pyd,sha256=te-kJtZ9q_ijMxuGB-oRvv5fUX5FpmEQNvbjItKdf3U,244736
1
+ prospr_core.cp310-win32.pyd,sha256=ifAk1D5DTYm6proFHKKNuMINYYbOZ9TRBgMtkyaoVlE,244736
2
2
  prospr/__init__.py,sha256=D5aWXefWNGmj-Yd7eCJ0ukFEpwX5xk7Z_7N4-ojeMt0,680
3
- prospr/_version.py,sha256=qT6K9Vux1EUKA9LmlDRhUl-OIABiT341HlVVQP-PJ3A,24
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=j-FxuKHNG7bAuG76vCiDfXmvpTuoeOrCON0nwZ498SE,15250
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.11.dist-info/licenses/LICENSE,sha256=fTqV5eBpeAZO0_jit8j4Ref9ikBSlHJ8xwj5TLg7gFk,7817
111
- prospr-1.2.11.dist-info/METADATA,sha256=PTdG06R9ZPGi_a_MlQE-CoP8NVW9aCRoe0vBT5w74CU,4377
112
- prospr-1.2.11.dist-info/WHEEL,sha256=Vh7QCNXvj2TC-qJlYM9d2qTMV3xdKk7KO7QRmG3ME_Y,98
113
- prospr-1.2.11.dist-info/top_level.txt,sha256=VzUxbFsehjdnl6j0PKJ70GTzftk8JfhTDhOHTEkXzqQ,19
114
- prospr-1.2.11.dist-info/RECORD,,
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=Vh7QCNXvj2TC-qJlYM9d2qTMV3xdKk7KO7QRmG3ME_Y,98
113
+ prospr-1.2.13.dist-info/top_level.txt,sha256=VzUxbFsehjdnl6j0PKJ70GTzftk8JfhTDhOHTEkXzqQ,19
114
+ prospr-1.2.13.dist-info/RECORD,,
Binary file