stjames 0.0.52__tar.gz → 0.0.53__tar.gz

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.

Files changed (76) hide show
  1. {stjames-0.0.52/stjames.egg-info → stjames-0.0.53}/PKG-INFO +2 -1
  2. {stjames-0.0.52 → stjames-0.0.53}/pyproject.toml +2 -1
  3. stjames-0.0.53/stjames/atomium_stjames/__init__.py +5 -0
  4. stjames-0.0.53/stjames/atomium_stjames/data.py +377 -0
  5. stjames-0.0.53/stjames/atomium_stjames/mmcif.py +651 -0
  6. stjames-0.0.53/stjames/atomium_stjames/pdb.py +572 -0
  7. stjames-0.0.53/stjames/atomium_stjames/utilities.py +125 -0
  8. stjames-0.0.53/stjames/pdb.py +677 -0
  9. {stjames-0.0.52 → stjames-0.0.53}/stjames/workflows/irc.py +14 -7
  10. {stjames-0.0.52 → stjames-0.0.53/stjames.egg-info}/PKG-INFO +2 -1
  11. {stjames-0.0.52 → stjames-0.0.53}/stjames.egg-info/SOURCES.txt +5 -0
  12. {stjames-0.0.52 → stjames-0.0.53}/stjames.egg-info/requires.txt +1 -0
  13. {stjames-0.0.52 → stjames-0.0.53}/tests/test_pdb.py +32 -3
  14. stjames-0.0.52/stjames/pdb.py +0 -205
  15. {stjames-0.0.52 → stjames-0.0.53}/LICENSE +0 -0
  16. {stjames-0.0.52 → stjames-0.0.53}/README.md +0 -0
  17. {stjames-0.0.52 → stjames-0.0.53}/setup.cfg +0 -0
  18. {stjames-0.0.52 → stjames-0.0.53}/stjames/__init__.py +0 -0
  19. {stjames-0.0.52 → stjames-0.0.53}/stjames/_deprecated_solvent_settings.py +0 -0
  20. {stjames-0.0.52 → stjames-0.0.53}/stjames/atom.py +0 -0
  21. {stjames-0.0.52 → stjames-0.0.53}/stjames/base.py +0 -0
  22. {stjames-0.0.52 → stjames-0.0.53}/stjames/basis_set.py +0 -0
  23. {stjames-0.0.52 → stjames-0.0.53}/stjames/calculation.py +0 -0
  24. {stjames-0.0.52 → stjames-0.0.53}/stjames/compute_settings.py +0 -0
  25. {stjames-0.0.52 → stjames-0.0.53}/stjames/constraint.py +0 -0
  26. {stjames-0.0.52 → stjames-0.0.53}/stjames/correction.py +0 -0
  27. {stjames-0.0.52 → stjames-0.0.53}/stjames/data/__init__.py +0 -0
  28. {stjames-0.0.52 → stjames-0.0.53}/stjames/data/bragg_radii.json +0 -0
  29. {stjames-0.0.52 → stjames-0.0.53}/stjames/data/elements.py +0 -0
  30. {stjames-0.0.52 → stjames-0.0.53}/stjames/data/isotopes.json +0 -0
  31. {stjames-0.0.52 → stjames-0.0.53}/stjames/data/nist_isotopes.json +0 -0
  32. {stjames-0.0.52 → stjames-0.0.53}/stjames/data/read_nist_isotopes.py +0 -0
  33. {stjames-0.0.52 → stjames-0.0.53}/stjames/data/symbol_element.json +0 -0
  34. {stjames-0.0.52 → stjames-0.0.53}/stjames/diis_settings.py +0 -0
  35. {stjames-0.0.52 → stjames-0.0.53}/stjames/grid_settings.py +0 -0
  36. {stjames-0.0.52 → stjames-0.0.53}/stjames/int_settings.py +0 -0
  37. {stjames-0.0.52 → stjames-0.0.53}/stjames/message.py +0 -0
  38. {stjames-0.0.52 → stjames-0.0.53}/stjames/method.py +0 -0
  39. {stjames-0.0.52 → stjames-0.0.53}/stjames/mode.py +0 -0
  40. {stjames-0.0.52 → stjames-0.0.53}/stjames/molecule.py +0 -0
  41. {stjames-0.0.52 → stjames-0.0.53}/stjames/opt_settings.py +0 -0
  42. {stjames-0.0.52 → stjames-0.0.53}/stjames/periodic_cell.py +0 -0
  43. {stjames-0.0.52 → stjames-0.0.53}/stjames/py.typed +0 -0
  44. {stjames-0.0.52 → stjames-0.0.53}/stjames/scf_settings.py +0 -0
  45. {stjames-0.0.52 → stjames-0.0.53}/stjames/settings.py +0 -0
  46. {stjames-0.0.52 → stjames-0.0.53}/stjames/solvent.py +0 -0
  47. {stjames-0.0.52 → stjames-0.0.53}/stjames/status.py +0 -0
  48. {stjames-0.0.52 → stjames-0.0.53}/stjames/task.py +0 -0
  49. {stjames-0.0.52 → stjames-0.0.53}/stjames/thermochem_settings.py +0 -0
  50. {stjames-0.0.52 → stjames-0.0.53}/stjames/types.py +0 -0
  51. {stjames-0.0.52 → stjames-0.0.53}/stjames/workflows/__init__.py +0 -0
  52. {stjames-0.0.52 → stjames-0.0.53}/stjames/workflows/admet.py +0 -0
  53. {stjames-0.0.52 → stjames-0.0.53}/stjames/workflows/basic_calculation.py +0 -0
  54. {stjames-0.0.52 → stjames-0.0.53}/stjames/workflows/bde.py +0 -0
  55. {stjames-0.0.52 → stjames-0.0.53}/stjames/workflows/conformer.py +0 -0
  56. {stjames-0.0.52 → stjames-0.0.53}/stjames/workflows/conformer_search.py +0 -0
  57. {stjames-0.0.52 → stjames-0.0.53}/stjames/workflows/descriptors.py +0 -0
  58. {stjames-0.0.52 → stjames-0.0.53}/stjames/workflows/docking.py +0 -0
  59. {stjames-0.0.52 → stjames-0.0.53}/stjames/workflows/electronic_properties.py +0 -0
  60. {stjames-0.0.52 → stjames-0.0.53}/stjames/workflows/fukui.py +0 -0
  61. {stjames-0.0.52 → stjames-0.0.53}/stjames/workflows/hydrogen_bond_basicity.py +0 -0
  62. {stjames-0.0.52 → stjames-0.0.53}/stjames/workflows/molecular_dynamics.py +0 -0
  63. {stjames-0.0.52 → stjames-0.0.53}/stjames/workflows/multistage_opt.py +0 -0
  64. {stjames-0.0.52 → stjames-0.0.53}/stjames/workflows/pka.py +0 -0
  65. {stjames-0.0.52 → stjames-0.0.53}/stjames/workflows/redox_potential.py +0 -0
  66. {stjames-0.0.52 → stjames-0.0.53}/stjames/workflows/scan.py +0 -0
  67. {stjames-0.0.52 → stjames-0.0.53}/stjames/workflows/spin_states.py +0 -0
  68. {stjames-0.0.52 → stjames-0.0.53}/stjames/workflows/tautomer.py +0 -0
  69. {stjames-0.0.52 → stjames-0.0.53}/stjames/workflows/workflow.py +0 -0
  70. {stjames-0.0.52 → stjames-0.0.53}/stjames.egg-info/dependency_links.txt +0 -0
  71. {stjames-0.0.52 → stjames-0.0.53}/stjames.egg-info/top_level.txt +0 -0
  72. {stjames-0.0.52 → stjames-0.0.53}/tests/test_constraints.py +0 -0
  73. {stjames-0.0.52 → stjames-0.0.53}/tests/test_from_extxyz.py +0 -0
  74. {stjames-0.0.52 → stjames-0.0.53}/tests/test_molecule.py +0 -0
  75. {stjames-0.0.52 → stjames-0.0.53}/tests/test_rounding.py +0 -0
  76. {stjames-0.0.52 → stjames-0.0.53}/tests/test_settings.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: stjames
3
- Version: 0.0.52
3
+ Version: 0.0.53
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
@@ -12,6 +12,7 @@ Requires-Dist: atomium<2,>=1
12
12
  Requires-Dist: pydantic>=2.4
13
13
  Requires-Dist: numpy
14
14
  Requires-Dist: atomium<2.0,>=1.0
15
+ Requires-Dist: requests
15
16
 
16
17
  # stjames
17
18
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "stjames"
3
- version = "0.0.52"
3
+ version = "0.0.53"
4
4
  description = "standardized JSON atom/molecule encoding scheme"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -13,6 +13,7 @@ dependencies = [
13
13
  "pydantic>=2.4",
14
14
  "numpy",
15
15
  "atomium>=1.0,<2.0",
16
+ "requests"
16
17
  ]
17
18
 
18
19
  [build-system]
@@ -0,0 +1,5 @@
1
+ from .mmcif import mmcif_dict_to_data_dict, mmcif_string_to_mmcif_dict
2
+ from .pdb import pdb_dict_to_data_dict, pdb_string_to_pdb_dict
3
+ from .utilities import fetch, open
4
+
5
+ __all__ = ["open", "fetch", "pdb_dict_to_data_dict", "pdb_string_to_pdb_dict", "mmcif_dict_to_data_dict", "mmcif_string_to_mmcif_dict"]
@@ -0,0 +1,377 @@
1
+ """Contains logic for turning data dictionaies into a parsed Python objects."""
2
+
3
+ PERIODIC_TABLE = {
4
+ "H": 1.0079,
5
+ "HE": 4.0026,
6
+ "LI": 6.941,
7
+ "BE": 9.0122,
8
+ "B": 10.811,
9
+ "C": 12.0107,
10
+ "N": 14.0067,
11
+ "O": 15.9994,
12
+ "F": 18.9984,
13
+ "NE": 20.1797,
14
+ "NA": 22.9897,
15
+ "MG": 24.305,
16
+ "AL": 26.9815,
17
+ "SI": 28.0855,
18
+ "P": 30.9738,
19
+ "S": 32.065,
20
+ "CL": 35.453,
21
+ "K": 39.0983,
22
+ "AR": 39.948,
23
+ "CA": 40.078,
24
+ "SC": 44.9559,
25
+ "TI": 47.867,
26
+ "V": 50.9415,
27
+ "CR": 51.9961,
28
+ "MN": 54.938,
29
+ "FE": 55.845,
30
+ "NI": 58.6934,
31
+ "CO": 58.9332,
32
+ "CU": 63.546,
33
+ "ZN": 65.39,
34
+ "GA": 69.723,
35
+ "GE": 72.64,
36
+ "AS": 74.9216,
37
+ "SE": 78.96,
38
+ "BR": 79.904,
39
+ "KR": 83.8,
40
+ "RB": 85.4678,
41
+ "SR": 87.62,
42
+ "Y": 88.9059,
43
+ "ZR": 91.224,
44
+ "NB": 92.9064,
45
+ "MO": 95.94,
46
+ "TC": 98,
47
+ "RU": 101.07,
48
+ "RH": 102.9055,
49
+ "PD": 106.42,
50
+ "AG": 107.8682,
51
+ "CD": 112.411,
52
+ "IN": 114.818,
53
+ "SN": 118.71,
54
+ "SB": 121.76,
55
+ "I": 126.9045,
56
+ "TE": 127.6,
57
+ "XE": 131.293,
58
+ "CS": 132.9055,
59
+ "BA": 137.327,
60
+ "LA": 138.9055,
61
+ "CE": 140.116,
62
+ "PR": 140.9077,
63
+ "ND": 144.24,
64
+ "PM": 145,
65
+ "SM": 150.36,
66
+ "EU": 151.964,
67
+ "GD": 157.25,
68
+ "TB": 158.9253,
69
+ "DY": 162.5,
70
+ "HO": 164.9303,
71
+ "ER": 167.259,
72
+ "TM": 168.9342,
73
+ "YB": 173.04,
74
+ "LU": 174.967,
75
+ "HF": 178.49,
76
+ "TA": 180.9479,
77
+ "W": 183.84,
78
+ "RE": 186.207,
79
+ "OS": 190.23,
80
+ "IR": 192.217,
81
+ "PT": 195.078,
82
+ "AU": 196.9665,
83
+ "HG": 200.59,
84
+ "TL": 204.3833,
85
+ "PB": 207.2,
86
+ "BI": 208.9804,
87
+ "PO": 209,
88
+ "AT": 210,
89
+ "RN": 222,
90
+ "FR": 223,
91
+ "RA": 226,
92
+ "AC": 227,
93
+ "PA": 231.0359,
94
+ "TH": 232.0381,
95
+ "NP": 237,
96
+ "U": 238.0289,
97
+ "AM": 243,
98
+ "PU": 244,
99
+ "CM": 247,
100
+ "BK": 247,
101
+ "CF": 251,
102
+ "ES": 252,
103
+ "FM": 257,
104
+ "MD": 258,
105
+ "NO": 259,
106
+ "RF": 261,
107
+ "LR": 262,
108
+ "DB": 262,
109
+ "BH": 264,
110
+ "SG": 266,
111
+ "MT": 268,
112
+ "RG": 272,
113
+ "HS": 277,
114
+ }
115
+
116
+ COVALENT_RADII = {
117
+ "H": 0.31,
118
+ "HE": 0.28,
119
+ "LI": 1.28,
120
+ "BE": 0.96,
121
+ "B": 0.85,
122
+ "C": 0.76,
123
+ "N": 0.71,
124
+ "O": 0.66,
125
+ "F": 0.57,
126
+ "NE": 0.58,
127
+ "NA": 1.66,
128
+ "MG": 1.41,
129
+ "AL": 1.21,
130
+ "SI": 1.11,
131
+ "P": 1.07,
132
+ "S": 1.05,
133
+ "CL": 1.02,
134
+ "AR": 1.06,
135
+ "K": 2.03,
136
+ "CA": 1.76,
137
+ "SC": 1.7,
138
+ "TI": 1.6,
139
+ "V": 1.53,
140
+ "CR": 1.39,
141
+ "MN": 1.39,
142
+ "FE": 1.32,
143
+ "CO": 1.26,
144
+ "NI": 1.24,
145
+ "CU": 1.32,
146
+ "ZN": 1.22,
147
+ "GA": 1.22,
148
+ "GE": 1.2,
149
+ "AS": 1.19,
150
+ "SE": 1.2,
151
+ "BR": 1.2,
152
+ "KR": 1.16,
153
+ "RB": 2.2,
154
+ "SR": 1.95,
155
+ "Y": 1.9,
156
+ "ZR": 1.75,
157
+ "NB": 1.64,
158
+ "MO": 1.54,
159
+ "TC": 1.47,
160
+ "RU": 1.46,
161
+ "RH": 1.42,
162
+ "PD": 1.39,
163
+ "AG": 1.45,
164
+ "CD": 1.44,
165
+ "IN": 1.42,
166
+ "SN": 1.39,
167
+ "SB": 1.39,
168
+ "TE": 1.38,
169
+ "I": 1.39,
170
+ "XE": 1.4,
171
+ "CS": 2.44,
172
+ "BA": 2.15,
173
+ "LA": 2.07,
174
+ "CE": 2.04,
175
+ "PR": 2.03,
176
+ "ND": 2.01,
177
+ "PM": 1.99,
178
+ "SM": 1.98,
179
+ "EU": 1.98,
180
+ "GD": 1.96,
181
+ "TB": 1.94,
182
+ "DY": 1.92,
183
+ "HO": 1.92,
184
+ "ER": 1.89,
185
+ "TM": 1.9,
186
+ "YB": 1.87,
187
+ "LU": 1.87,
188
+ "HF": 1.75,
189
+ "TA": 1.7,
190
+ "W": 1.62,
191
+ "RE": 1.51,
192
+ "OS": 1.44,
193
+ "IR": 1.41,
194
+ "PT": 1.36,
195
+ "AU": 1.36,
196
+ "HG": 1.32,
197
+ "TL": 1.45,
198
+ "PB": 1.46,
199
+ "BI": 1.48,
200
+ "PO": 1.4,
201
+ "AT": 1.5,
202
+ "RN": 1.5,
203
+ "FR": 2.6,
204
+ "RA": 2.21,
205
+ "AC": 2.15,
206
+ "TH": 2.06,
207
+ "PA": 2.0,
208
+ "U": 1.96,
209
+ "NP": 1.9,
210
+ "PU": 1.87,
211
+ "AM": 1.8,
212
+ "CM": 1.69,
213
+ }
214
+
215
+ METALS = [
216
+ "LI",
217
+ "BE",
218
+ "NA",
219
+ "MG",
220
+ "AL",
221
+ "K",
222
+ "CA",
223
+ "SC",
224
+ "TI",
225
+ "V",
226
+ "CR",
227
+ "MN",
228
+ "FE",
229
+ "CO",
230
+ "NI",
231
+ "CU",
232
+ "ZN",
233
+ "HA",
234
+ "RB",
235
+ "SR",
236
+ "Y",
237
+ "ZR",
238
+ "NB",
239
+ "MO",
240
+ "TC",
241
+ "RU",
242
+ "RH",
243
+ "PD",
244
+ "AG",
245
+ "CD",
246
+ "IN",
247
+ "SN",
248
+ "CS",
249
+ "BA",
250
+ "LA",
251
+ "CE",
252
+ "PR",
253
+ "ND",
254
+ "PM",
255
+ "SM",
256
+ "EU",
257
+ "GD",
258
+ "TB",
259
+ "DY",
260
+ "HO",
261
+ "ER",
262
+ "TM",
263
+ "YB",
264
+ "LU",
265
+ "HF",
266
+ "TA",
267
+ "W",
268
+ "RE",
269
+ "OS",
270
+ "IR",
271
+ "PT",
272
+ "AU",
273
+ "HG",
274
+ "TL",
275
+ "PB",
276
+ "BI",
277
+ "PO",
278
+ "FR",
279
+ "RA",
280
+ "AC",
281
+ "TH",
282
+ "PA",
283
+ "U",
284
+ "NP",
285
+ "PU",
286
+ "AM",
287
+ "CM",
288
+ "BK",
289
+ "CF",
290
+ "ES",
291
+ "FM",
292
+ "MD",
293
+ "NO",
294
+ "LR",
295
+ "RF",
296
+ "DB",
297
+ "SG",
298
+ "BH",
299
+ "HS",
300
+ "MT",
301
+ "DS",
302
+ "RG",
303
+ "CN",
304
+ "UUT",
305
+ "FL",
306
+ "LV",
307
+ ]
308
+
309
+ FULL_NAMES = {
310
+ "GLY": "glycine",
311
+ "ALA": "alanine",
312
+ "VAL": "valine",
313
+ "LEU": "leucine",
314
+ "ILE": "isoleucine",
315
+ "MET": "methionine",
316
+ "PHE": "phenylalanine",
317
+ "TRP": "tryptophan",
318
+ "PRO": "proline",
319
+ "SER": "serine",
320
+ "THR": "threonine",
321
+ "CYS": "cysteine",
322
+ "TYR": "tyrosine",
323
+ "ASN": "asparagine",
324
+ "GLN": "glutamine",
325
+ "ASP": "aspartic acid",
326
+ "GLU": "glutamic acid",
327
+ "LYS": "lysine",
328
+ "ARG": "arginine",
329
+ "HIS": "histidine",
330
+ "HOH": "water",
331
+ }
332
+
333
+ CODES = {
334
+ "VAL": "V",
335
+ "ILE": "I",
336
+ "LEU": "L",
337
+ "GLU": "E",
338
+ "GLN": "Q",
339
+ "ASP": "D",
340
+ "ASN": "N",
341
+ "HIS": "H",
342
+ "TRP": "W",
343
+ "PHE": "F",
344
+ "TYR": "Y",
345
+ "ARG": "R",
346
+ "LYS": "K",
347
+ "SER": "S",
348
+ "THR": "T",
349
+ "MET": "M",
350
+ "ALA": "A",
351
+ "GLY": "G",
352
+ "PRO": "P",
353
+ "CYS": "C",
354
+ }
355
+
356
+ REVERSE_CODES = {
357
+ "V": "VAL",
358
+ "I": "ILE",
359
+ "L": "LEU",
360
+ "E": "GLU",
361
+ "Q": "GLN",
362
+ "D": "ASP",
363
+ "N": "ASN",
364
+ "H": "HIS",
365
+ "W": "TRP",
366
+ "F": "PHE",
367
+ "Y": "TYR",
368
+ "R": "ARG",
369
+ "K": "LYS",
370
+ "S": "SER",
371
+ "T": "THR",
372
+ "M": "MET",
373
+ "A": "ALA",
374
+ "G": "GLY",
375
+ "P": "PRO",
376
+ "C": "CYS",
377
+ }