modelcraft 4.0.0__py3-none-any.whl → 4.0.1__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.
- modelcraft/__init__.py +1 -1
- modelcraft/monlib.py +6 -4
- modelcraft/tests/ccp4/test_monlib.py +4 -0
- {modelcraft-4.0.0.dist-info → modelcraft-4.0.1.dist-info}/METADATA +1 -1
- {modelcraft-4.0.0.dist-info → modelcraft-4.0.1.dist-info}/RECORD +9 -9
- {modelcraft-4.0.0.dist-info → modelcraft-4.0.1.dist-info}/LICENSE +0 -0
- {modelcraft-4.0.0.dist-info → modelcraft-4.0.1.dist-info}/WHEEL +0 -0
- {modelcraft-4.0.0.dist-info → modelcraft-4.0.1.dist-info}/entry_points.txt +0 -0
- {modelcraft-4.0.0.dist-info → modelcraft-4.0.1.dist-info}/top_level.txt +0 -0
modelcraft/__init__.py
CHANGED
modelcraft/monlib.py
CHANGED
|
@@ -29,10 +29,12 @@ def in_library(code: str) -> bool:
|
|
|
29
29
|
|
|
30
30
|
@functools.lru_cache(maxsize=None)
|
|
31
31
|
def group(code: str) -> gemmi.ChemComp.Group:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
if in_library(code):
|
|
33
|
+
doc = gemmi.cif.read(_path(code))
|
|
34
|
+
monlib = gemmi.MonLib()
|
|
35
|
+
monlib.read_monomer_doc(doc)
|
|
36
|
+
return monlib.monomers[code].group
|
|
37
|
+
return None
|
|
36
38
|
|
|
37
39
|
|
|
38
40
|
@functools.lru_cache(maxsize=None)
|
|
@@ -26,6 +26,7 @@ def test_in_library():
|
|
|
26
26
|
assert in_library(code)
|
|
27
27
|
for code in RNA_CODES.values():
|
|
28
28
|
assert in_library(code)
|
|
29
|
+
assert not in_library("NOT_IN_MONLIB")
|
|
29
30
|
|
|
30
31
|
|
|
31
32
|
def test_group():
|
|
@@ -36,6 +37,7 @@ def test_group():
|
|
|
36
37
|
assert group("U") == gemmi.ChemComp.Group.Rna
|
|
37
38
|
assert group("DT") == gemmi.ChemComp.Group.Dna
|
|
38
39
|
assert group("HOH") == gemmi.ChemComp.Group.NonPolymer
|
|
40
|
+
assert group("NOT_IN_MONLIB") is None
|
|
39
41
|
|
|
40
42
|
|
|
41
43
|
def test_protein():
|
|
@@ -46,6 +48,7 @@ def test_protein():
|
|
|
46
48
|
assert not is_protein("U")
|
|
47
49
|
assert not is_protein("DT")
|
|
48
50
|
assert not is_protein("HOH")
|
|
51
|
+
assert not is_protein("NOT_IN_MONLIB")
|
|
49
52
|
|
|
50
53
|
|
|
51
54
|
def test_nucleic():
|
|
@@ -55,3 +58,4 @@ def test_nucleic():
|
|
|
55
58
|
assert is_nucleic("U")
|
|
56
59
|
assert is_nucleic("DT")
|
|
57
60
|
assert not is_nucleic("HOH")
|
|
61
|
+
assert not is_nucleic("NOT_IN_MONLIB")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
modelcraft/__init__.py,sha256=
|
|
1
|
+
modelcraft/__init__.py,sha256=EShQrPLQTgeHMytTnuJwRw8JFkGsBYMVe-iHAMoy66w,2185
|
|
2
2
|
modelcraft/__main__.py,sha256=0D-TbVRrb0ipPCS-NnUvifaG2kAsBn6mXtWLjyExOXM,77
|
|
3
3
|
modelcraft/arguments.py,sha256=DChFhzk09Fwpsb4ycZ4OBfXxsFJLNiQiao4ZoErB5wA,14606
|
|
4
4
|
modelcraft/cell.py,sha256=mqoQfODyXd43MhLYnGwXxTag42Fx9l2wMH3s-ouXpr0,2057
|
|
@@ -10,7 +10,7 @@ modelcraft/job.py,sha256=RpM8UfIPH0uNf_yuwBTq4GLp2aY-4_yvJEQd7r3aL4o,4104
|
|
|
10
10
|
modelcraft/maps.py,sha256=Lyv3YjKNdUgi6vaLmQ8CcZFKq39EPL4NDC5qO_kCd0A,354
|
|
11
11
|
modelcraft/modelcraftem.py,sha256=x2o2b_uD91mr-gJHK9CrODVAdp9FCJF9kIC1GrofMLI,5133
|
|
12
12
|
modelcraft/modelcraftxray.py,sha256=l73CSdLkEjgf1MdEZgp6tJnTwtkTvp5lvkxSA-mCSWU,12791
|
|
13
|
-
modelcraft/monlib.py,sha256=
|
|
13
|
+
modelcraft/monlib.py,sha256=cEiYHKGEKpBlv-fJbKYJ91aZyMu9iAtmwdyuWeZj2F0,1482
|
|
14
14
|
modelcraft/pipeline.py,sha256=2fUmFcCyUG6EmAOxSHtcG91zRHHZmwjRkmJy5Y7Raus,2030
|
|
15
15
|
modelcraft/reflections.py,sha256=w8iV5NBcghUlufXWvxXLtbW8oNHR5Jx9ELKhgKThvkw,6274
|
|
16
16
|
modelcraft/solvent.py,sha256=beGtewZXoXzEdaadG4d0vu3hAL61XZdVue62Xldkw4k,6772
|
|
@@ -56,7 +56,7 @@ modelcraft/tests/ccp4/test_freerflag.py,sha256=2Z4nRka3VbXSx89qj-vIbAZ9m12Tl_O2s
|
|
|
56
56
|
modelcraft/tests/ccp4/test_geometry.py,sha256=LFeCGHqALgWoiP5X2p1oRbsK8Mbk8p5ICk4CDbGAbKI,556
|
|
57
57
|
modelcraft/tests/ccp4/test_libg.py,sha256=JHGOeg3jSriWUH96H8aAVd3K9SrrE3qwHPMjpmv3vJg,256
|
|
58
58
|
modelcraft/tests/ccp4/test_molrep.py,sha256=ooyYNXtN5sNkpF-j59vJzRD4f1CEQkMQkVdatzIhA10,1318
|
|
59
|
-
modelcraft/tests/ccp4/test_monlib.py,sha256=
|
|
59
|
+
modelcraft/tests/ccp4/test_monlib.py,sha256=vuU0EMNVBGqegF6JinUhw3FPJ6KB1Zdik8NV2p0gbJ0,1792
|
|
60
60
|
modelcraft/tests/ccp4/test_nautilus.py,sha256=rytNdr27fAtXajZk52fs3eYVi1_8WJbubeXnWd2XXOw,1946
|
|
61
61
|
modelcraft/tests/ccp4/test_parrot.py,sha256=0Qug6Q3UjH54DokA3C_vKyur7UiLyhyGK3w7Cfjfpxs,792
|
|
62
62
|
modelcraft/tests/ccp4/test_phasematch.py,sha256=mSWA2eBsipDe3xWyj5iRn7Yj8Gpav0Iva1DaGOHWYa8,1143
|
|
@@ -74,9 +74,9 @@ modelcraft/tests/ccpem/test_servalcat.py,sha256=3FQVpo-Vf9MStV-dZD-ZVzGin7YefgTG
|
|
|
74
74
|
modelcraft/tests/unittests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
75
75
|
modelcraft/tests/unittests/test_contents.py,sha256=aAHha4pQYMyKes7OiOZ11_-9z-BVqh4OSmAL8gRUX_Y,3153
|
|
76
76
|
modelcraft/tests/unittests/test_reflections.py,sha256=xshb_2QcAko2l98-Pd1LuEjMZAVv-O7LkhtzGRnrbM4,3674
|
|
77
|
-
modelcraft-4.0.
|
|
78
|
-
modelcraft-4.0.
|
|
79
|
-
modelcraft-4.0.
|
|
80
|
-
modelcraft-4.0.
|
|
81
|
-
modelcraft-4.0.
|
|
82
|
-
modelcraft-4.0.
|
|
77
|
+
modelcraft-4.0.1.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
|
|
78
|
+
modelcraft-4.0.1.dist-info/METADATA,sha256=j5FQa_9CFRpNtBwStccDGNGzfuruNJgw2lgxTzmAHtc,1893
|
|
79
|
+
modelcraft-4.0.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
80
|
+
modelcraft-4.0.1.dist-info/entry_points.txt,sha256=bWef3WSAihTv1fI39wScTAmrKtn5mOYZ3SEeBpM4RrU,172
|
|
81
|
+
modelcraft-4.0.1.dist-info/top_level.txt,sha256=My5973x4fvPrlRfQOuuFxqultnVzrg_aamczcSijdlQ,11
|
|
82
|
+
modelcraft-4.0.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|