stjames 0.0.106__py3-none-any.whl → 0.0.109__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.

Potentially problematic release.


This version of stjames might be problematic. Click here for more details.

stjames/workflows/pka.py CHANGED
@@ -1,11 +1,12 @@
1
1
  """pKa workflow."""
2
2
 
3
- from typing import Annotated, Optional, Self
3
+ from typing import Annotated, Self
4
4
 
5
5
  from pydantic import AfterValidator, model_validator
6
6
 
7
7
  from ..base import Base, LowercaseStrEnum, round_float, round_optional_float
8
8
  from ..mode import Mode
9
+ from ..molecule import Molecule
9
10
  from ..solvent import Solvent
10
11
  from .workflow import DBCalculation, MoleculeWorkflow, SMILESWorkflow
11
12
 
@@ -33,17 +34,17 @@ class pKaMicrostate(Base):
33
34
  :param atom_index: index of the atom
34
35
  :param smiles: SMILES of the microstate
35
36
  :param structures: DBCalculation for the microstate
36
- :param deltaG: relative free energy
37
- :param pka: pKa
38
- :uncertainty: uncertainty
37
+ :param deltaG: relative free energy (where applicable)
38
+ :param pka: pKa value associated with this microstate
39
+ :uncertainty: uncertainty in the pKa prediction
39
40
  """
40
41
 
41
42
  atom_index: int
42
- smiles: Optional[str]
43
+ smiles: str | None = None
43
44
  structures: list[DBCalculation] = []
44
- deltaG: Annotated[Optional[float], AfterValidator(round_optional_float(3))] = None
45
+ deltaG: Annotated[float | None, AfterValidator(round_optional_float(3))] = None
45
46
  pka: Annotated[float, AfterValidator(round_float(3))]
46
- uncertainty: Annotated[Optional[float], AfterValidator(round_optional_float(3))] = None
47
+ uncertainty: Annotated[float | None, AfterValidator(round_optional_float(3))] = None
47
48
 
48
49
 
49
50
  class pKaWorkflow(SMILESWorkflow, MoleculeWorkflow):
@@ -73,6 +74,9 @@ class pKaWorkflow(SMILESWorkflow, MoleculeWorkflow):
73
74
  :param strongest_base: pKa of the strongest base
74
75
  """
75
76
 
77
+ initial_smiles: str = ""
78
+ initial_molecule: Molecule | None = None # type: ignore [assignment]
79
+
76
80
  mode: Mode = Mode.CAREFUL
77
81
 
78
82
  microscopic_pka_method: MicroscopicpKaMethod = MicroscopicpKaMethod.CHEMPROP_NEVOLIANUS2025
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stjames
3
- Version: 0.0.106
3
+ Version: 0.0.109
4
4
  Summary: standardized JSON atom/molecule encoding scheme
5
5
  Author-email: Corin Wagen <corin@rowansci.com>
6
6
  Project-URL: Homepage, https://github.com/rowansci/stjames
@@ -55,7 +55,7 @@ stjames/workflows/macropka.py,sha256=Krj0xXuB-u57Kqlf4bbRiHDUWCpliFr6YPiYqPmYaWk
55
55
  stjames/workflows/molecular_dynamics.py,sha256=HqWNxxPSAphfI0DdbTERFkq8UeBjEvhnA_ETv0xw_RY,3522
56
56
  stjames/workflows/multistage_opt.py,sha256=UN-4WLsT2WEjO5KqDPrcCkb708Co-ZScHx3g2bto768,16597
57
57
  stjames/workflows/nmr.py,sha256=1QEF4SB6dWIr-jzLEZ7V972UnRUOTufOJSHwIGyV3dM,2681
58
- stjames/workflows/pka.py,sha256=t2a2eozMpGgtslk_tVo38-9ZT4Lf-7-q6XUOgeKpvQA,4390
58
+ stjames/workflows/pka.py,sha256=24mpGNPMc-hOaVqQFFlUdGadB65fb3DyOt4XXQvB2YY,4593
59
59
  stjames/workflows/pose_analysis_md.py,sha256=ES0XlzaLpTjhLrNvcB0zFZa1b1ZHXekN72EbLsx0Skw,4723
60
60
  stjames/workflows/protein_cofolding.py,sha256=mRdQoBWGYBqT8eEGfQ8yFLAcLJToYT_kIfvOQD68QVc,4039
61
61
  stjames/workflows/redox_potential.py,sha256=7S18t9Y3eynSnA3lZbRlvLfdbgeBopdiigLzt1zxg5c,3871
@@ -65,8 +65,8 @@ stjames/workflows/spin_states.py,sha256=0degmE-frovgoXweshZyjfjqL7nkbaFoO9YoJhvQ
65
65
  stjames/workflows/strain.py,sha256=paYxDDQTB1eYP_c2kLVz1-QX7Vpw0LLb3ujnFin_SOM,1834
66
66
  stjames/workflows/tautomer.py,sha256=7eYKziGPg8Km6lfowTzSkgJfJ4SHUPrAmnTf8Bi-SB0,1164
67
67
  stjames/workflows/workflow.py,sha256=OE05pt2ZOd8TzTOlBngXCVg9wv_553ZR60VNRPlq0f8,1953
68
- stjames-0.0.106.dist-info/licenses/LICENSE,sha256=i05z7xEhyrg6f8j0lR3XYjShnF-MJGFQ-DnpsZ8yiVI,1084
69
- stjames-0.0.106.dist-info/METADATA,sha256=7Qyi3dJCiwrW2dN_xEK8X7uozRtTPU4s27jkLNs3DSs,1725
70
- stjames-0.0.106.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
71
- stjames-0.0.106.dist-info/top_level.txt,sha256=FYCwxl6quhYOAgG-mnPQcCK8vsVM7B8rIUrO-WrQ_PI,8
72
- stjames-0.0.106.dist-info/RECORD,,
68
+ stjames-0.0.109.dist-info/licenses/LICENSE,sha256=i05z7xEhyrg6f8j0lR3XYjShnF-MJGFQ-DnpsZ8yiVI,1084
69
+ stjames-0.0.109.dist-info/METADATA,sha256=udwI8N7fM3H9Ca_jpyIDVxF1sVMLK1z68-FIaTbvEGY,1725
70
+ stjames-0.0.109.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
71
+ stjames-0.0.109.dist-info/top_level.txt,sha256=FYCwxl6quhYOAgG-mnPQcCK8vsVM7B8rIUrO-WrQ_PI,8
72
+ stjames-0.0.109.dist-info/RECORD,,