stjames 0.0.57__py3-none-any.whl → 0.0.58__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/atomium_stjames/mmcif.py +4 -4
- stjames/atomium_stjames/pdb.py +2 -2
- stjames/pdb.py +1 -1
- {stjames-0.0.57.dist-info → stjames-0.0.58.dist-info}/METADATA +1 -1
- {stjames-0.0.57.dist-info → stjames-0.0.58.dist-info}/RECORD +8 -8
- {stjames-0.0.57.dist-info → stjames-0.0.58.dist-info}/LICENSE +0 -0
- {stjames-0.0.57.dist-info → stjames-0.0.58.dist-info}/WHEEL +0 -0
- {stjames-0.0.57.dist-info → stjames-0.0.58.dist-info}/top_level.txt +0 -0
stjames/atomium_stjames/mmcif.py
CHANGED
|
@@ -399,12 +399,12 @@ def update_models_list(mmcif_dict: dict[str, Any], data_dict: dict[str, Any]) ->
|
|
|
399
399
|
# sequences = make_sequences(mmcif_dict)
|
|
400
400
|
secondary_structure = make_secondary_structure(mmcif_dict)
|
|
401
401
|
aniso = make_aniso(mmcif_dict)
|
|
402
|
-
model: dict[str, Any] = {"polymer": {}, "
|
|
402
|
+
model: dict[str, Any] = {"polymer": {}, "non_polymer": {}, "water": {}, "branched": {}}
|
|
403
403
|
model_num = mmcif_dict["atom_site"][0]["pdbx_PDB_model_num"]
|
|
404
404
|
for atom in mmcif_dict["atom_site"]:
|
|
405
405
|
if atom["pdbx_PDB_model_num"] != model_num:
|
|
406
406
|
data_dict["models"].append(model)
|
|
407
|
-
model = {"polymer": {}, "
|
|
407
|
+
model = {"polymer": {}, "non_polymer": {}, "water": {}, "branched": {}}
|
|
408
408
|
model_num = atom["pdbx_PDB_model_num"]
|
|
409
409
|
mol_type = types[entities[atom["label_asym_id"]]]
|
|
410
410
|
if mol_type == "polymer" or mol_type == "branched":
|
|
@@ -501,13 +501,13 @@ def add_atom_to_polymer(atom: dict[str, Any], aniso: dict[int, Any], model: dict
|
|
|
501
501
|
|
|
502
502
|
|
|
503
503
|
def add_atom_to_non_polymer(atom: dict[str, Any], aniso: dict[int, Any], model: dict[str, Any], mol_type: str, names: dict[str, Any]) -> None:
|
|
504
|
-
"""Takes an MMCIF atom dictionary, converts it, and adds it to a
|
|
504
|
+
"""Takes an MMCIF atom dictionary, converts it, and adds it to a non_polymer
|
|
505
505
|
dictionary.
|
|
506
506
|
|
|
507
507
|
:param dict atom: the .mmcif dictionary to read.
|
|
508
508
|
:param dict aniso: lookup dictionary for anisotropy information.
|
|
509
509
|
:param dict model: the model to update.
|
|
510
|
-
:param str mol_type:
|
|
510
|
+
:param str mol_type: non_polymer or water.
|
|
511
511
|
:param dict names: the lookup dictionary for full name information."""
|
|
512
512
|
|
|
513
513
|
mol_id = make_residue_id(atom)
|
stjames/atomium_stjames/pdb.py
CHANGED
|
@@ -145,7 +145,7 @@ def update_models_list(pdb_dict: dict[str, Any], data_dict: dict[str, Any]) -> N
|
|
|
145
145
|
for model_lines in pdb_dict["MODEL"]:
|
|
146
146
|
aniso = make_aniso(model_lines)
|
|
147
147
|
last_ter = get_last_ter_line(model_lines)
|
|
148
|
-
model: dict[str, Any] = {"polymer": {}, "
|
|
148
|
+
model: dict[str, Any] = {"polymer": {}, "non_polymer": {}, "water": {}}
|
|
149
149
|
for index, line in enumerate(model_lines):
|
|
150
150
|
if line[:6] in ["ATOM ", "HETATM"]:
|
|
151
151
|
chain_id = line[21] if index < last_ter else id_from_line(line)
|
|
@@ -512,7 +512,7 @@ def add_atom_to_non_polymer(line: str, model: dict[Any, Any], res_id: str, aniso
|
|
|
512
512
|
:param str res_id: the molecule ID to add to.
|
|
513
513
|
:param dict aniso_dict: lookup dictionary for anisotropy information."""
|
|
514
514
|
|
|
515
|
-
key = "water" if line[17:20] in ["HOH", "DOD"] else "
|
|
515
|
+
key = "water" if line[17:20] in ["HOH", "DOD"] else "non_polymer"
|
|
516
516
|
try:
|
|
517
517
|
model[key][res_id]["atoms"][int(line[6:11])] = atom_line_to_dict(line, aniso_dict)
|
|
518
518
|
except Exception:
|
stjames/pdb.py
CHANGED
|
@@ -84,7 +84,7 @@ class PDBModel(BaseModel):
|
|
|
84
84
|
model_config = ConfigDict(extra=EXTRA)
|
|
85
85
|
|
|
86
86
|
polymer: dict[str, PDBPolymer] = {}
|
|
87
|
-
non_polymer: dict[str, PDBNonPolymer] =
|
|
87
|
+
non_polymer: dict[str, PDBNonPolymer] = {}
|
|
88
88
|
branched: dict[str, Any] = {}
|
|
89
89
|
water: dict[str, PDBWater] = {}
|
|
90
90
|
|
|
@@ -15,7 +15,7 @@ stjames/method.py,sha256=5hBHk2xQLpxZ52LwJ9FHWaqQMdFKnsbQEOxaVe6O4Go,2321
|
|
|
15
15
|
stjames/mode.py,sha256=xw46Cc7f3eTS8i35qECi-8DocAlANhayK3w4akD4HBU,496
|
|
16
16
|
stjames/molecule.py,sha256=DeNYmFdvbuKeXvLqlu-UxHMyZVK6y4j-Lw3HITGMnHw,12406
|
|
17
17
|
stjames/opt_settings.py,sha256=gxXGtjy9l-Q5Wen9eO6T6HHRCuS8rfOofdVQIJj0JcI,550
|
|
18
|
-
stjames/pdb.py,sha256=
|
|
18
|
+
stjames/pdb.py,sha256=qy3_wx9l-mq-U3g9ttyV-swBNhuIv_12PM2C77Yip_k,25228
|
|
19
19
|
stjames/periodic_cell.py,sha256=eV_mArsY_MPEFSrFEsTC-CyCc6V8ITAXdk7yhjjNI7M,1080
|
|
20
20
|
stjames/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
21
|
stjames/scf_settings.py,sha256=WotVgVrayQ_8PUHP39zVtG7iLT9PV41lpzruttFACP8,2356
|
|
@@ -27,8 +27,8 @@ stjames/thermochem_settings.py,sha256=ZTLz31v8Ltutde5Nfm0vH5YahWjcfFWfr_R856Kffx
|
|
|
27
27
|
stjames/types.py,sha256=hw-3UBikESvN3DzfK5doZB030kIEfx9gC3yBkIbebsI,3764
|
|
28
28
|
stjames/atomium_stjames/__init__.py,sha256=gZkzC7i9D_fmWUTN55gtygITo3-qvJUda5CXLR0jyCQ,306
|
|
29
29
|
stjames/atomium_stjames/data.py,sha256=-hzwBpTHq5JetsOVyopUJswKnKAkMtJ_XkONxjXVupU,5675
|
|
30
|
-
stjames/atomium_stjames/mmcif.py,sha256=
|
|
31
|
-
stjames/atomium_stjames/pdb.py,sha256=
|
|
30
|
+
stjames/atomium_stjames/mmcif.py,sha256=KR3C28pUfPTzZDq8nYN2QaC5A8P_QInzRJTg0PY9JIA,27108
|
|
31
|
+
stjames/atomium_stjames/pdb.py,sha256=J1KZr7Bmexdcmfksd0gfVGlzkaSnunchVDVPwpN1KKA,22365
|
|
32
32
|
stjames/atomium_stjames/utilities.py,sha256=PSrOGn6MED4sXvbTLb65Jv20Ylptz4slZtjWEDzeRrI,4776
|
|
33
33
|
stjames/data/__init__.py,sha256=O59Ksp7AIqwOELCWymfCx7YeBzwNOGCMlGQi7tNLqiE,24
|
|
34
34
|
stjames/data/bragg_radii.json,sha256=hhbn-xyZNSdmnULIjN2Cvq-_BGIZIqG243Ls_mey61w,1350
|
|
@@ -57,8 +57,8 @@ stjames/workflows/scan.py,sha256=uNSuUmVMAV4exNvcv1viVe7930i7GZMn7RtEimnwEE8,100
|
|
|
57
57
|
stjames/workflows/spin_states.py,sha256=b-uCf-pHjF_JHbExeb5GdRToE0pIxP0JTd50U130ckI,4693
|
|
58
58
|
stjames/workflows/tautomer.py,sha256=x3TC8hkMs87ZUodLyhce5EUzYoV276ePfPMi7ISWyNU,651
|
|
59
59
|
stjames/workflows/workflow.py,sha256=tIu5naADYgYS7kdW8quvGEWHWosBcrIdcD7L86v-uMQ,976
|
|
60
|
-
stjames-0.0.
|
|
61
|
-
stjames-0.0.
|
|
62
|
-
stjames-0.0.
|
|
63
|
-
stjames-0.0.
|
|
64
|
-
stjames-0.0.
|
|
60
|
+
stjames-0.0.58.dist-info/LICENSE,sha256=i7ehYBS-6gGmbTcgU4mgk28pyOx2kScJ0kcx8n7bWLM,1084
|
|
61
|
+
stjames-0.0.58.dist-info/METADATA,sha256=X30Ry30Ko-XzT0n1CXiK5f_JLMWokvcHtgdDyWwv7GY,1713
|
|
62
|
+
stjames-0.0.58.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
63
|
+
stjames-0.0.58.dist-info/top_level.txt,sha256=FYCwxl6quhYOAgG-mnPQcCK8vsVM7B8rIUrO-WrQ_PI,8
|
|
64
|
+
stjames-0.0.58.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|