modelcraft 3.6.0__tar.gz → 4.0.1__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.
Files changed (94) hide show
  1. {modelcraft-3.6.0/modelcraft.egg-info → modelcraft-4.0.1}/PKG-INFO +1 -1
  2. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/__init__.py +1 -3
  3. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/jobs/coot.py +0 -10
  4. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/monlib.py +6 -4
  5. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_coot.py +1 -13
  6. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_monlib.py +4 -0
  7. {modelcraft-3.6.0 → modelcraft-4.0.1/modelcraft.egg-info}/PKG-INFO +1 -1
  8. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft.egg-info/SOURCES.txt +0 -1
  9. {modelcraft-3.6.0 → modelcraft-4.0.1}/setup.py +1 -1
  10. modelcraft-3.6.0/modelcraft/coot/morph.py +0 -16
  11. {modelcraft-3.6.0 → modelcraft-4.0.1}/LICENSE +0 -0
  12. {modelcraft-3.6.0 → modelcraft-4.0.1}/MANIFEST.in +0 -0
  13. {modelcraft-3.6.0 → modelcraft-4.0.1}/README.md +0 -0
  14. {modelcraft-3.6.0 → modelcraft-4.0.1}/docs/css/custom.css +0 -0
  15. {modelcraft-3.6.0 → modelcraft-4.0.1}/docs/css/milligram.min.css +0 -0
  16. {modelcraft-3.6.0 → modelcraft-4.0.1}/docs/css/normalize.min.css +0 -0
  17. {modelcraft-3.6.0 → modelcraft-4.0.1}/docs/img/modelcraft.png +0 -0
  18. {modelcraft-3.6.0 → modelcraft-4.0.1}/docs/index.html +0 -0
  19. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/__main__.py +0 -0
  20. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/arguments.py +0 -0
  21. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/cell.py +0 -0
  22. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/combine.py +0 -0
  23. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/contents.py +0 -0
  24. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/coot/prune.py +0 -0
  25. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/coot/sidechains.py +0 -0
  26. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/environ.py +0 -0
  27. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/geometry.py +0 -0
  28. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/job.py +0 -0
  29. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/jobs/__init__.py +0 -0
  30. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/jobs/acedrg.py +0 -0
  31. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/jobs/acorn.py +0 -0
  32. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/jobs/buccaneer.py +0 -0
  33. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/jobs/comit.py +0 -0
  34. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/jobs/ctruncate.py +0 -0
  35. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/jobs/emda.py +0 -0
  36. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/jobs/findwaters.py +0 -0
  37. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/jobs/freerflag.py +0 -0
  38. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/jobs/libg.py +0 -0
  39. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/jobs/molrep.py +0 -0
  40. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/jobs/nautilus.py +0 -0
  41. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/jobs/parrot.py +0 -0
  42. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/jobs/phasematch.py +0 -0
  43. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/jobs/refmac.py +0 -0
  44. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/jobs/servalcat.py +0 -0
  45. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/jobs/sheetbend.py +0 -0
  46. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/maps.py +0 -0
  47. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/modelcraftem.py +0 -0
  48. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/modelcraftxray.py +0 -0
  49. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/pipeline.py +0 -0
  50. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/reflections.py +0 -0
  51. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/scripts/__init__.py +0 -0
  52. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/scripts/contents.py +0 -0
  53. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/scripts/copies.py +0 -0
  54. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/scripts/modelcraft.py +0 -0
  55. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/solvent.py +0 -0
  56. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/structure.py +0 -0
  57. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/__init__.py +0 -0
  58. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/__init__.py +0 -0
  59. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_acedrg.py +0 -0
  60. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_arguments.py +0 -0
  61. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_buccaneer.py +0 -0
  62. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_cell.py +0 -0
  63. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_comit.py +0 -0
  64. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_contents.py +0 -0
  65. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_copies.py +0 -0
  66. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_ctruncate.py +0 -0
  67. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_findwaters.py +0 -0
  68. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_freerflag.py +0 -0
  69. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_geometry.py +0 -0
  70. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_libg.py +0 -0
  71. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_molrep.py +0 -0
  72. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_nautilus.py +0 -0
  73. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_parrot.py +0 -0
  74. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_phasematch.py +0 -0
  75. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_reflections.py +0 -0
  76. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_refmac.py +0 -0
  77. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_sheetbend.py +0 -0
  78. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_solvent.py +0 -0
  79. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_structure.py +0 -0
  80. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccp4/test_xray.py +0 -0
  81. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccpem/__init__.py +0 -0
  82. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccpem/test_em.py +0 -0
  83. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccpem/test_emda.py +0 -0
  84. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccpem/test_refmac.py +0 -0
  85. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/ccpem/test_servalcat.py +0 -0
  86. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/unittests/__init__.py +0 -0
  87. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/unittests/test_contents.py +0 -0
  88. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/tests/unittests/test_reflections.py +0 -0
  89. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft/utils.py +0 -0
  90. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft.egg-info/dependency_links.txt +0 -0
  91. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft.egg-info/entry_points.txt +0 -0
  92. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft.egg-info/requires.txt +0 -0
  93. {modelcraft-3.6.0 → modelcraft-4.0.1}/modelcraft.egg-info/top_level.txt +0 -0
  94. {modelcraft-3.6.0 → modelcraft-4.0.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: modelcraft
3
- Version: 3.6.0
3
+ Version: 4.0.1
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
@@ -1,4 +1,4 @@
1
- __version__ = "3.6.0"
1
+ __version__ = "4.0.1"
2
2
 
3
3
  from .cell import max_distortion as max_cell_distortion
4
4
  from .cell import remove_scale
@@ -11,7 +11,6 @@ from .jobs.buccaneer import Buccaneer
11
11
  from .jobs.comit import Comit
12
12
  from .jobs.coot import FixSideChains
13
13
  from .jobs.coot import Prune
14
- from .jobs.coot import RsrMorph
15
14
  from .jobs.ctruncate import CTruncate
16
15
  from .jobs.emda import EmdaMapMask
17
16
  from .jobs.findwaters import FindWaters
@@ -71,7 +70,6 @@ __all__ = [
71
70
  "remove_residues",
72
71
  "remove_scale",
73
72
  "rmsz",
74
- "RsrMorph",
75
73
  "run",
76
74
  "ServalcatNemap",
77
75
  "ServalcatRefine",
@@ -29,7 +29,6 @@ class Coot(Job):
29
29
  " COOT1 = False\n",
30
30
  " if COOT1:\n",
31
31
  " from coot import *\n",
32
- " from fitting import fit_protein_make_specs\n",
33
32
  " turn_off_backup(0)\n",
34
33
  ]
35
34
  for i, structure in enumerate(self.structures):
@@ -103,12 +102,3 @@ class FixSideChains(Coot):
103
102
  super().__init__(
104
103
  script=script, structures=[structure], fphis=[fphi_best, fphi_diff]
105
104
  )
106
-
107
-
108
- class RsrMorph(Coot):
109
- def __init__(self, structure: gemmi.Structure, fphi_best: DataItem):
110
- path = os.path.join(os.path.dirname(__file__), "..", "coot", "morph.py")
111
- with open(path) as stream:
112
- script = stream.read()
113
- script += "rsr_morph(IMOL0, IMAP0)\n"
114
- super().__init__(script=script, structures=[structure], fphis=[fphi_best])
@@ -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
- doc = gemmi.cif.read(_path(code))
33
- monlib = gemmi.MonLib()
34
- monlib.read_monomer_doc(doc)
35
- return monlib.monomers[code].group
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)
@@ -1,4 +1,4 @@
1
- from modelcraft.jobs.coot import Prune, FixSideChains, RsrMorph
1
+ from modelcraft.jobs.coot import Prune, FixSideChains
2
2
  from modelcraft.structure import ModelStats
3
3
  from . import insulin_refmac
4
4
 
@@ -27,15 +27,3 @@ def test_insulin_fix_side_chains():
27
27
  stats_in = ModelStats(refmac.structure)
28
28
  stats_out = ModelStats(coot.structure)
29
29
  assert stats_out.residues == stats_in.residues
30
-
31
-
32
- def test_insulin_rsr_morph():
33
- refmac = insulin_refmac()
34
- refmac.structure.remove_alternative_conformations()
35
- coot = RsrMorph(
36
- structure=refmac.structure,
37
- fphi_best=refmac.fphi_best,
38
- ).run()
39
- stats_in = ModelStats(refmac.structure)
40
- stats_out = ModelStats(coot.structure)
41
- assert stats_out.residues == stats_in.residues
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: modelcraft
3
- Version: 3.6.0
3
+ Version: 4.0.1
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
@@ -32,7 +32,6 @@ modelcraft.egg-info/dependency_links.txt
32
32
  modelcraft.egg-info/entry_points.txt
33
33
  modelcraft.egg-info/requires.txt
34
34
  modelcraft.egg-info/top_level.txt
35
- modelcraft/coot/morph.py
36
35
  modelcraft/coot/prune.py
37
36
  modelcraft/coot/sidechains.py
38
37
  modelcraft/jobs/__init__.py
@@ -5,7 +5,7 @@ with open("README.md", "r") as f:
5
5
 
6
6
  setuptools.setup(
7
7
  name="modelcraft",
8
- version="3.6.0",
8
+ version="4.0.1",
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",
@@ -1,16 +0,0 @@
1
- def rsr_morph(imol, imap, local_radius=5, gm_alpha=0.05, blur_b_factor=88):
2
- generate_self_restraints(imol, local_radius)
3
- set_show_extra_restraints(imol, 0) # too confusing
4
- set_refinement_geman_mcclure_alpha(gm_alpha)
5
- set_draw_moving_atoms_restraints(1) # not useful for non-graphics mode
6
- rmsd = map_sigma_py(imap)
7
- if rmsd is not None:
8
- imap_blurred = sharpen_blur_map(imap, blur_b_factor)
9
- set_imol_refinement_map(imap_blurred)
10
- set_matrix(15.0 / rmsd)
11
- residues = fit_protein_make_specs(imol, "all-chains")
12
- if COOT1:
13
- coot_utils.with_auto_accept([refine_residues_py, imol, residues])
14
- else:
15
- with AutoAccept():
16
- refine_residues_py(imol, residues)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes