modelcraft 5.0.0__tar.gz → 5.0.2__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.
- {modelcraft-5.0.0/modelcraft.egg-info → modelcraft-5.0.2}/PKG-INFO +13 -3
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/__init__.py +1 -1
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/cell.py +2 -2
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_cell.py +3 -3
- {modelcraft-5.0.0 → modelcraft-5.0.2/modelcraft.egg-info}/PKG-INFO +13 -3
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft.egg-info/requires.txt +1 -1
- {modelcraft-5.0.0 → modelcraft-5.0.2}/setup.py +2 -2
- {modelcraft-5.0.0 → modelcraft-5.0.2}/LICENSE +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/MANIFEST.in +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/README.md +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/docs/css/custom.css +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/docs/css/milligram.min.css +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/docs/css/normalize.min.css +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/docs/img/modelcraft.png +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/docs/index.html +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/__main__.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/arguments.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/combine.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/contents.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/coot/prune.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/coot/sidechains.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/environ.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/geometry.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/job.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/jobs/__init__.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/jobs/acedrg.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/jobs/acorn.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/jobs/buccaneer.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/jobs/comit.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/jobs/coot.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/jobs/ctruncate.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/jobs/emda.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/jobs/findwaters.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/jobs/freerflag.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/jobs/libg.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/jobs/molrep.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/jobs/nautilus.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/jobs/parrot.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/jobs/phasematch.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/jobs/refmac.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/jobs/servalcat.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/jobs/sheetbend.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/maps.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/modelcraftem.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/modelcraftxray.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/monlib.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/pipeline.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/reflections.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/scripts/__init__.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/scripts/contents.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/scripts/copies.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/scripts/modelcraft.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/solvent.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/structure.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/__init__.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/__init__.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_acedrg.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_arguments.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_buccaneer.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_comit.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_contents.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_coot.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_copies.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_ctruncate.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_findwaters.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_freerflag.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_geometry.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_libg.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_molrep.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_monlib.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_nautilus.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_parrot.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_phasematch.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_reflections.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_refmac.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_sheetbend.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_solvent.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_structure.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccp4/test_xray.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccpem/__init__.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccpem/test_em.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccpem/test_emda.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccpem/test_refmac.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/ccpem/test_servalcat.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/unittests/__init__.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/unittests/test_contents.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/tests/unittests/test_reflections.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft/utils.py +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft.egg-info/SOURCES.txt +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft.egg-info/dependency_links.txt +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft.egg-info/entry_points.txt +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/modelcraft.egg-info/top_level.txt +0 -0
- {modelcraft-5.0.0 → modelcraft-5.0.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: modelcraft
|
|
3
|
-
Version: 5.0.
|
|
3
|
+
Version: 5.0.2
|
|
4
4
|
Summary: Automated model building pipeline for X-ray crystallography
|
|
5
5
|
Home-page: https://github.com/paulsbond/modelcraft
|
|
6
6
|
Author: Paul Bond
|
|
@@ -16,11 +16,21 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
16
16
|
Requires-Python: ~=3.7
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
License-File: LICENSE
|
|
19
|
-
Requires-Dist: gemmi>=0.5.
|
|
19
|
+
Requires-Dist: gemmi>=0.5.5
|
|
20
20
|
Requires-Dist: numpy
|
|
21
21
|
Requires-Dist: pandas
|
|
22
22
|
Requires-Dist: requests
|
|
23
23
|
Requires-Dist: scipy
|
|
24
|
+
Dynamic: author
|
|
25
|
+
Dynamic: author-email
|
|
26
|
+
Dynamic: classifier
|
|
27
|
+
Dynamic: description
|
|
28
|
+
Dynamic: description-content-type
|
|
29
|
+
Dynamic: home-page
|
|
30
|
+
Dynamic: license
|
|
31
|
+
Dynamic: requires-dist
|
|
32
|
+
Dynamic: requires-python
|
|
33
|
+
Dynamic: summary
|
|
24
34
|
|
|
25
35
|
# ModelCraft
|
|
26
36
|
|
|
@@ -17,8 +17,8 @@ def remove_scale(structure: gemmi.Structure) -> None:
|
|
|
17
17
|
|
|
18
18
|
def max_distortion(old_cell: gemmi.UnitCell, new_cell: gemmi.UnitCell) -> float:
|
|
19
19
|
"Return the maximum distortion between two cells as a fraction"
|
|
20
|
-
frac1 = old_cell.
|
|
21
|
-
orth2 = new_cell.
|
|
20
|
+
frac1 = old_cell.frac.mat
|
|
21
|
+
orth2 = new_cell.orth.mat
|
|
22
22
|
identity = gemmi.Mat33()
|
|
23
23
|
matrix = np.array(identity) - np.array(orth2.multiply(frac1))
|
|
24
24
|
eigenvalues, _ = scipy.linalg.eig(matrix)
|
|
@@ -7,14 +7,14 @@ from . import in_temp_directory
|
|
|
7
7
|
|
|
8
8
|
@in_temp_directory
|
|
9
9
|
def test_1ana():
|
|
10
|
-
url = "https://
|
|
10
|
+
url = "https://files-versioned.wwpdb.org/pdb_versioned/data/entries/"
|
|
11
11
|
url += "an/pdb_00001ana/pdb_00001ana_xyz_v1-2.cif.gz"
|
|
12
12
|
urllib.request.urlretrieve(url, "1ana.cif.gz")
|
|
13
13
|
structure = read_structure("1ana.cif.gz")
|
|
14
14
|
assert structure.cell.parameters == (41.1, 41.1, 26.7, 90, 90, 90)
|
|
15
|
-
assert structure.cell.
|
|
15
|
+
assert structure.cell.frac.mat.tolist()[0][0] == 0
|
|
16
16
|
remove_scale(structure)
|
|
17
|
-
assert structure.cell.
|
|
17
|
+
assert structure.cell.frac.mat.tolist()[0][0] != 0
|
|
18
18
|
new_parameters = (41, 41, 27, 90, 90, 90)
|
|
19
19
|
new_cell = gemmi.UnitCell(*new_parameters)
|
|
20
20
|
assert max_distortion(structure.cell, new_cell) < 0.05
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: modelcraft
|
|
3
|
-
Version: 5.0.
|
|
3
|
+
Version: 5.0.2
|
|
4
4
|
Summary: Automated model building pipeline for X-ray crystallography
|
|
5
5
|
Home-page: https://github.com/paulsbond/modelcraft
|
|
6
6
|
Author: Paul Bond
|
|
@@ -16,11 +16,21 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
16
16
|
Requires-Python: ~=3.7
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
License-File: LICENSE
|
|
19
|
-
Requires-Dist: gemmi>=0.5.
|
|
19
|
+
Requires-Dist: gemmi>=0.5.5
|
|
20
20
|
Requires-Dist: numpy
|
|
21
21
|
Requires-Dist: pandas
|
|
22
22
|
Requires-Dist: requests
|
|
23
23
|
Requires-Dist: scipy
|
|
24
|
+
Dynamic: author
|
|
25
|
+
Dynamic: author-email
|
|
26
|
+
Dynamic: classifier
|
|
27
|
+
Dynamic: description
|
|
28
|
+
Dynamic: description-content-type
|
|
29
|
+
Dynamic: home-page
|
|
30
|
+
Dynamic: license
|
|
31
|
+
Dynamic: requires-dist
|
|
32
|
+
Dynamic: requires-python
|
|
33
|
+
Dynamic: summary
|
|
24
34
|
|
|
25
35
|
# ModelCraft
|
|
26
36
|
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as f:
|
|
|
5
5
|
|
|
6
6
|
setuptools.setup(
|
|
7
7
|
name="modelcraft",
|
|
8
|
-
version="5.0.
|
|
8
|
+
version="5.0.2",
|
|
9
9
|
author="Paul Bond",
|
|
10
10
|
author_email="paul.bond@york.ac.uk",
|
|
11
11
|
description="Automated model building pipeline for X-ray crystallography",
|
|
@@ -26,7 +26,7 @@ setuptools.setup(
|
|
|
26
26
|
],
|
|
27
27
|
python_requires="~=3.7",
|
|
28
28
|
install_requires=[
|
|
29
|
-
"gemmi >=0.5.
|
|
29
|
+
"gemmi >=0.5.5",
|
|
30
30
|
"numpy",
|
|
31
31
|
"pandas",
|
|
32
32
|
"requests",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|