stjames 0.0.71__py3-none-any.whl → 0.0.73__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/method.py CHANGED
@@ -50,9 +50,25 @@ class Method(LowercaseStrEnum):
50
50
 
51
51
  RM1 = "rm1"
52
52
 
53
-
54
- PrepackagedNNPMethod = Literal[Method.AIMNET2_WB97MD3, Method.OCP24_S, Method.OCP24_L, Method.RM1, Method.ORB_V3_CONSERVATIVE_INF_OMAT]
55
- PREPACKAGED_NNP_METHODS = [Method.AIMNET2_WB97MD3, Method.OCP24_S, Method.OCP24_L, Method.RM1, Method.ORB_V3_CONSERVATIVE_INF_OMAT]
53
+ EGRET_1 = "egret_1"
54
+ EGRET_1E = "egret_1e"
55
+ EGRET_1H = "egret_1h"
56
+
57
+
58
+ PrepackagedNNPMethod = Literal[
59
+ Method.AIMNET2_WB97MD3, Method.OCP24_S, Method.OCP24_L, Method.RM1, Method.ORB_V3_CONSERVATIVE_INF_OMAT, Method.EGRET_1, Method.EGRET_1E, Method.EGRET_1H
60
+ ]
61
+
62
+ PREPACKAGED_NNP_METHODS = [
63
+ Method.AIMNET2_WB97MD3,
64
+ Method.OCP24_S,
65
+ Method.OCP24_L,
66
+ Method.RM1,
67
+ Method.ORB_V3_CONSERVATIVE_INF_OMAT,
68
+ Method.EGRET_1,
69
+ Method.EGRET_1E,
70
+ Method.EGRET_1H,
71
+ ]
56
72
 
57
73
  CorrectableNNPMethod = Literal[Method.MACE_MP_0B2_L, Method.ORB_V2]
58
74
  CORRECTABLE_NNP_METHODS = [Method.MACE_MP_0B2_L, Method.ORB_V2]
@@ -60,6 +60,7 @@ class MacropKaWorkflow(SMILESWorkflow):
60
60
  :param microstate_weights_by_pH: the % of different microstates by pH
61
61
  :param logD_by_pH: the distribution constant (water/octanol) by pH
62
62
  :param aqueous_solubility_by_pH: the log(S)/L of the compound in water, by pH
63
+ :param kpuu_probability: the probability that Kpuu >= 0.3, the Schrodinger-determined threshold
63
64
  """
64
65
 
65
66
  min_pH: Annotated[float, AfterValidator(round_float(3))] = 0.0
@@ -73,6 +74,7 @@ class MacropKaWorkflow(SMILESWorkflow):
73
74
  pKa_values: list[MacropKaValue] = []
74
75
  isoelectric_point: Annotated[Optional[float], AfterValidator(round_float(3))] = None
75
76
  solvation_energy: Annotated[Optional[float], AfterValidator(round_float(3))] = None
77
+ kpuu_probability: Annotated[Optional[float], AfterValidator(round_float(3))] = None
76
78
 
77
79
  microstate_weights_by_pH: list[
78
80
  tuple[
@@ -2,14 +2,22 @@
2
2
 
3
3
  from pydantic import BaseModel
4
4
 
5
+ from ..base import LowercaseStrEnum
5
6
  from ..types import UUID
6
7
  from .workflow import FASTAWorkflow
7
8
 
8
9
 
10
+ class CofoldingModel(LowercaseStrEnum):
11
+ """Cofolding model to be used for prediction."""
12
+
13
+ CHAI_1R = "chai_1r"
14
+ BOLTZ = "boltz"
15
+
16
+
9
17
  class CofoldingScores(BaseModel):
10
18
  confidence_score: float
11
- ptm: float # predicted template modelling score
12
- iptm: float # interface predicted template modelling score
19
+ ptm: float # predicted template modeling score
20
+ iptm: float # interface predicted template modeling score
13
21
 
14
22
 
15
23
  class ProteinCofoldingWorkflow(FASTAWorkflow):
@@ -17,7 +25,8 @@ class ProteinCofoldingWorkflow(FASTAWorkflow):
17
25
  A workflow for predicting structures. Especially protein structures.
18
26
 
19
27
  Inherited:
20
- :param initial_fasta: fasta string of interest
28
+ :param initial_protein_sequences: protein sequences of interest
29
+ :param initial_smiles_list: SMILES strings of interest
21
30
 
22
31
  New:
23
32
  :param use_msa_server: whether to use the MSA server
@@ -29,3 +38,4 @@ class ProteinCofoldingWorkflow(FASTAWorkflow):
29
38
  use_templates_server: bool = False
30
39
  predicted_structure_uuid: UUID | None = None
31
40
  scores: CofoldingScores | None = None
41
+ model: CofoldingModel = CofoldingModel.CHAI_1R
@@ -24,15 +24,17 @@ class Workflow(Base):
24
24
 
25
25
  class FASTAWorkflow(Workflow):
26
26
  """
27
- Base class for Workflows that operate on a fasta string.
27
+ Base class for Workflows that operate on protein sequences and SMILES.
28
28
 
29
- :param initial_fasta: fasta string of interest
29
+ :param initial_protein_sequences: protein sequences of interest
30
+ :param initial_smiles_list: SMILES strings of interest
30
31
  """
31
32
 
32
- initial_fasta: str
33
+ initial_protein_sequences: list[str]
34
+ initial_smiles_list: list[str] | None = None
33
35
 
34
36
  def __repr__(self) -> str:
35
- return f"<{type(self).__name__} {self.initial_fasta}>"
37
+ return f"<{type(self).__name__} {self.initial_protein_sequences} {self.initial_smiles_list}>"
36
38
 
37
39
 
38
40
  class SMILESWorkflow(Workflow):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stjames
3
- Version: 0.0.71
3
+ Version: 0.0.73
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
@@ -11,7 +11,7 @@ stjames/diis_settings.py,sha256=4m1EQQWBlpHhMnWopix8qOqJv7QCluvdnV9jSKJDFtE,552
11
11
  stjames/grid_settings.py,sha256=WrSNGc-8_f87YBZYt9Hh7RbhM4MweADoVzwBMcSqcsE,640
12
12
  stjames/int_settings.py,sha256=5HXp8opt5ZyY1UpmfaK7NVloWVLM5jkG0elEEqpVLUo,896
13
13
  stjames/message.py,sha256=Rq6QqmHZKecWxYH8fVyXmuoCCPZv8YinvgykSeorXSU,216
14
- stjames/method.py,sha256=4X2OdeOQCj0Ihtthl9mx6Q26RrZljYhvRUVz-huf0s8,2461
14
+ stjames/method.py,sha256=PXbBVp6pS4wUDr-qoguJgZy2Wqt8NF49aOH1fspd5DM,2680
15
15
  stjames/mode.py,sha256=xw46Cc7f3eTS8i35qECi-8DocAlANhayK3w4akD4HBU,496
16
16
  stjames/molecule.py,sha256=4dakMkn-_I5bSWsijLLY0tn5NkBEuZhmtYDj-MDSJE0,17987
17
17
  stjames/opt_settings.py,sha256=LEwGXUEKq5TfU5rr60Z4QQBhCqiw1Ch5w0M_lXawWo8,642
@@ -50,19 +50,19 @@ stjames/workflows/fukui.py,sha256=T6TDg-lcE-sfTDVpa3KFBenLe7PGUO2QrQ2jNuw_iiU,17
50
50
  stjames/workflows/hydrogen_bond_basicity.py,sha256=XDpHEluw6DQ9Zk5g2Je2a81HqIkqPglZ-6f2YZnd4Bc,1159
51
51
  stjames/workflows/ion_mobility.py,sha256=e6XSidrud5qSkrAcjzOzgHaf-G09JoP09V76myjdyjc,1097
52
52
  stjames/workflows/irc.py,sha256=ZP7icylW8rgo_Uh7h3bmyumn0ru1IyF-61nP5Jnmq3M,3402
53
- stjames/workflows/macropka.py,sha256=jFdo0log2ZDeqXYcLpGHq3L9zEUJLBgVQhzrwtKCM44,3566
53
+ stjames/workflows/macropka.py,sha256=KRIyk4gsSYL3eqyzCDndStGLwjWSo60cgCAzvAoD1Nk,3754
54
54
  stjames/workflows/molecular_dynamics.py,sha256=kxugE73Ntzpj-xpJSoQ1EwGzXXdvi_NTyeP4913EVwE,3173
55
55
  stjames/workflows/multistage_opt.py,sha256=pPLAZDztHd37q8cxCUkdq8EzOFyrTzZJHNfDV5auiHs,13638
56
56
  stjames/workflows/pka.py,sha256=j3vBh2YM3nJzJ1XJKPsmYahRCeaU9n3P-G-u9_moaFw,2065
57
- stjames/workflows/protein_cofolding.py,sha256=woDdmyMYVhrmOyB55mxIP56Rpw6iElDoS5YiX5oyixY,883
57
+ stjames/workflows/protein_cofolding.py,sha256=x6csP7IkQqKVhw4MhmGFdLzCFmYXK8nFtl2t2gMJuX8,1184
58
58
  stjames/workflows/redox_potential.py,sha256=7S18t9Y3eynSnA3lZbRlvLfdbgeBopdiigLzt1zxg5c,3871
59
59
  stjames/workflows/scan.py,sha256=DXQBpa2t2PowAtOwmdgpxaSLq--fEShljzAGSb8Nf5U,2993
60
60
  stjames/workflows/solubility.py,sha256=kGfVyPPGDLRpf2j6dSY7woCkfsoXSbUzdSImA4mcMpw,1898
61
61
  stjames/workflows/spin_states.py,sha256=0degmE-frovgoXweshZyjfjqL7nkbaFoO9YoJhvQnaI,4748
62
62
  stjames/workflows/tautomer.py,sha256=7eYKziGPg8Km6lfowTzSkgJfJ4SHUPrAmnTf8Bi-SB0,1164
63
- stjames/workflows/workflow.py,sha256=dmJbjI3Ng95zHEZd1Qkhhk5Eb1aF4W36Oy_GwZPJdBk,1704
64
- stjames-0.0.71.dist-info/licenses/LICENSE,sha256=i7ehYBS-6gGmbTcgU4mgk28pyOx2kScJ0kcx8n7bWLM,1084
65
- stjames-0.0.71.dist-info/METADATA,sha256=jFy2RQUS3wHe4vRo0w-OZskC6Yk3ctdMAhYhDrNPE-Q,1694
66
- stjames-0.0.71.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
67
- stjames-0.0.71.dist-info/top_level.txt,sha256=FYCwxl6quhYOAgG-mnPQcCK8vsVM7B8rIUrO-WrQ_PI,8
68
- stjames-0.0.71.dist-info/RECORD,,
63
+ stjames/workflows/workflow.py,sha256=NA4H9W_47UQWnrsdB5UXFODMaZWrmULYqW1pud5ErO4,1900
64
+ stjames-0.0.73.dist-info/licenses/LICENSE,sha256=i7ehYBS-6gGmbTcgU4mgk28pyOx2kScJ0kcx8n7bWLM,1084
65
+ stjames-0.0.73.dist-info/METADATA,sha256=YlsG4MdAL-yJZIMmW1Wll6LvvLyGpaWJONcjBStdpQM,1694
66
+ stjames-0.0.73.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
67
+ stjames-0.0.73.dist-info/top_level.txt,sha256=FYCwxl6quhYOAgG-mnPQcCK8vsVM7B8rIUrO-WrQ_PI,8
68
+ stjames-0.0.73.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: setuptools (79.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5