pdb-tools 2.5.0__tar.gz → 2.6.0__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 pdb-tools might be problematic. Click here for more details.

Files changed (60) hide show
  1. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/PKG-INFO +19 -11
  2. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdb_tools.egg-info/PKG-INFO +19 -11
  3. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdb_tools.egg-info/entry_points.txt +0 -1
  4. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_splitmodel.py +2 -1
  5. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_tidy.py +17 -9
  6. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/setup.py +31 -48
  7. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/LICENSE +0 -0
  8. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/README.md +0 -0
  9. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/citation.tex +0 -0
  10. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdb_tools.egg-info/SOURCES.txt +0 -0
  11. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdb_tools.egg-info/dependency_links.txt +0 -0
  12. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdb_tools.egg-info/top_level.txt +0 -0
  13. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/__init__.py +0 -0
  14. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_b.py +0 -0
  15. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_chain.py +0 -0
  16. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_chainbows.py +0 -0
  17. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_chainxseg.py +0 -0
  18. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_chkensemble.py +0 -0
  19. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_delchain.py +0 -0
  20. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_delelem.py +0 -0
  21. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_delhetatm.py +0 -0
  22. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_delinsertion.py +0 -0
  23. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_delres.py +0 -0
  24. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_delresname.py +0 -0
  25. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_element.py +0 -0
  26. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_fetch.py +0 -0
  27. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_fixinsert.py +0 -0
  28. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_fromcif.py +0 -0
  29. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_gap.py +0 -0
  30. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_head.py +0 -0
  31. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_intersect.py +0 -0
  32. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_keepcoord.py +0 -0
  33. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_merge.py +0 -0
  34. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_mkensemble.py +0 -0
  35. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_occ.py +0 -0
  36. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_reatom.py +0 -0
  37. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_reres.py +0 -0
  38. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_rplchain.py +0 -0
  39. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_rplresname.py +0 -0
  40. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_seg.py +0 -0
  41. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_segxchain.py +0 -0
  42. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_selaltloc.py +0 -0
  43. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_selatom.py +0 -0
  44. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_selchain.py +0 -0
  45. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_selelem.py +0 -0
  46. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_selhetatm.py +0 -0
  47. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_selmodel.py +0 -0
  48. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_selres.py +0 -0
  49. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_selresname.py +0 -0
  50. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_selseg.py +0 -0
  51. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_shiftres.py +0 -0
  52. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_sort.py +0 -0
  53. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_splitchain.py +0 -0
  54. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_splitseg.py +0 -0
  55. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_tocif.py +0 -0
  56. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_tofasta.py +0 -0
  57. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_uniqname.py +0 -0
  58. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_validate.py +0 -0
  59. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/pdbtools/pdb_wc.py +0 -0
  60. {pdb-tools-2.5.0 → pdb_tools-2.6.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: pdb-tools
3
- Version: 2.5.0
3
+ Version: 2.6.0
4
4
  Summary: A swiss army knife for PDB files.
5
5
  Home-page: http://bonvinlab.org/pdb-tools
6
6
  Author: Joao Rodrigues
@@ -9,20 +9,30 @@ License: Apache Software License, version 2
9
9
  Project-URL: Bug Reports, https://github.com/haddocking/pdb-tools/issues
10
10
  Project-URL: Source, https://github.com/haddocking/pdb-tools
11
11
  Keywords: bioinformatics protein structural-biology pdb
12
- Platform: UNKNOWN
13
12
  Classifier: Development Status :: 5 - Production/Stable
14
13
  Classifier: Intended Audience :: Science/Research
15
14
  Classifier: Topic :: Scientific/Engineering
16
15
  Classifier: Topic :: Scientific/Engineering :: Chemistry
17
16
  Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
18
- Classifier: License :: OSI Approved :: Apache Software License
19
- Classifier: Programming Language :: Python :: 2
20
- Classifier: Programming Language :: Python :: 2.7
21
- Classifier: Programming Language :: Python :: 3
22
- Classifier: Programming Language :: Python :: 3.6
23
- Classifier: Programming Language :: Python :: 3.7
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
24
23
  Description-Content-Type: text/markdown
25
24
  License-File: LICENSE
25
+ Dynamic: author
26
+ Dynamic: author-email
27
+ Dynamic: classifier
28
+ Dynamic: description
29
+ Dynamic: description-content-type
30
+ Dynamic: home-page
31
+ Dynamic: keywords
32
+ Dynamic: license
33
+ Dynamic: license-file
34
+ Dynamic: project-url
35
+ Dynamic: summary
26
36
 
27
37
  # pdb-tools
28
38
 
@@ -176,5 +186,3 @@ or a new tools, read our `CONTRIBUTING` instructions [here](https://github.com/h
176
186
  ## License
177
187
  `pdb-tools` are open-source and licensed under the Apache License, version 2.0.
178
188
  For details, see the LICENSE file.
179
-
180
-
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: pdb-tools
3
- Version: 2.5.0
3
+ Version: 2.6.0
4
4
  Summary: A swiss army knife for PDB files.
5
5
  Home-page: http://bonvinlab.org/pdb-tools
6
6
  Author: Joao Rodrigues
@@ -9,20 +9,30 @@ License: Apache Software License, version 2
9
9
  Project-URL: Bug Reports, https://github.com/haddocking/pdb-tools/issues
10
10
  Project-URL: Source, https://github.com/haddocking/pdb-tools
11
11
  Keywords: bioinformatics protein structural-biology pdb
12
- Platform: UNKNOWN
13
12
  Classifier: Development Status :: 5 - Production/Stable
14
13
  Classifier: Intended Audience :: Science/Research
15
14
  Classifier: Topic :: Scientific/Engineering
16
15
  Classifier: Topic :: Scientific/Engineering :: Chemistry
17
16
  Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
18
- Classifier: License :: OSI Approved :: Apache Software License
19
- Classifier: Programming Language :: Python :: 2
20
- Classifier: Programming Language :: Python :: 2.7
21
- Classifier: Programming Language :: Python :: 3
22
- Classifier: Programming Language :: Python :: 3.6
23
- Classifier: Programming Language :: Python :: 3.7
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
24
23
  Description-Content-Type: text/markdown
25
24
  License-File: LICENSE
25
+ Dynamic: author
26
+ Dynamic: author-email
27
+ Dynamic: classifier
28
+ Dynamic: description
29
+ Dynamic: description-content-type
30
+ Dynamic: home-page
31
+ Dynamic: keywords
32
+ Dynamic: license
33
+ Dynamic: license-file
34
+ Dynamic: project-url
35
+ Dynamic: summary
26
36
 
27
37
  # pdb-tools
28
38
 
@@ -176,5 +186,3 @@ or a new tools, read our `CONTRIBUTING` instructions [here](https://github.com/h
176
186
  ## License
177
187
  `pdb-tools` are open-source and licensed under the Apache License, version 2.0.
178
188
  For details, see the LICENSE file.
179
-
180
-
@@ -48,4 +48,3 @@ pdb_tofasta = pdbtools.pdb_tofasta:main
48
48
  pdb_uniqname = pdbtools.pdb_uniqname:main
49
49
  pdb_validate = pdbtools.pdb_validate:main
50
50
  pdb_wc = pdbtools.pdb_wc:main
51
-
@@ -102,7 +102,8 @@ def run(fhandle, outname=None):
102
102
  records = ('ATOM', 'HETATM', 'ANISOU', 'TER')
103
103
  for line in fhandle:
104
104
  if line.startswith('MODEL'):
105
- model_no = line[10:14].strip()
105
+ parts = line.split()
106
+ model_no = parts[1] if len(parts) > 1 else "0"
106
107
  fh = open(basename + '_' + model_no + '.pdb', 'w')
107
108
  model_lines = []
108
109
 
@@ -44,6 +44,8 @@ effort to maintain and compile. RIP.
44
44
 
45
45
  import os
46
46
  import sys
47
+ import re
48
+ import textwrap
47
49
 
48
50
  __author__ = "Joao Rodrigues"
49
51
  __email__ = "j.p.g.l.m.rodrigues@gmail.com"
@@ -108,7 +110,7 @@ def check_input(args):
108
110
 
109
111
  def run(fhandle, strict=False):
110
112
  """
111
- Add TER/END statements and pads all lines to 80 characters.
113
+ Add TER/END statements and truncates/pads all lines to 80 characters.
112
114
 
113
115
  This function is a generator.
114
116
 
@@ -161,8 +163,14 @@ def run(fhandle, strict=False):
161
163
  if line.startswith(ignored): # to avoid matching END _and_ ENDMDL
162
164
  continue
163
165
 
164
- # Check line length
165
- line = "{:<80}\n".format(line)
166
+ # Check line length, wrapping and padding as necessary
167
+ # preserve the line prefix for wrapping
168
+ prefix = re.match(r"\S+\s*", line).group(0)
169
+ content = line[len(prefix):].lstrip()
170
+
171
+ line = "".join(
172
+ f"{prefix}{part:<{80 - len(prefix)}}\n"
173
+ for part in textwrap.wrap(content, width=80 - len(prefix)))
166
174
 
167
175
  yield line
168
176
 
@@ -214,9 +222,9 @@ def run(fhandle, strict=False):
214
222
  if atom_section:
215
223
  atom_section = False
216
224
  yield make_TER(prev_line)
217
- if in_model:
218
- yield "{:<80}\n".format("ENDMDL")
219
- in_model = False
225
+ if in_model:
226
+ yield "{:<80}\n".format("ENDMDL")
227
+ in_model = False
220
228
 
221
229
  if line.startswith('MODEL'):
222
230
  line = "MODEL " + " " + str(num_models).rjust(4)
@@ -240,9 +248,9 @@ def run(fhandle, strict=False):
240
248
  # Add last TER statement
241
249
  atom_section = False
242
250
  yield make_TER(prev_line)
243
- if in_model:
244
- yield "{:<80}\n".format("ENDMDL")
245
- in_model = False
251
+ if in_model:
252
+ yield "{:<80}\n".format("ENDMDL")
253
+ in_model = False
246
254
 
247
255
  # Add END statement
248
256
  yield "{:<80}\n".format("END")
@@ -8,6 +8,7 @@ https://github.com/pypa/sampleproject
8
8
  # Always prefer setuptools over distutils
9
9
  from setuptools import setup, find_packages
10
10
  from os import listdir, path
11
+
11
12
  # io.open is needed for projects that support Python 2.7
12
13
  # It ensures open() defaults to text mode with universal newlines,
13
14
  # and accepts an argument to specify the text encoding
@@ -17,54 +18,40 @@ from io import open
17
18
  here = path.abspath(path.dirname(__file__))
18
19
 
19
20
  # Get the long description from the README file
20
- with open(path.join(here, 'README.md'), encoding='utf-8') as f:
21
+ with open(path.join(here, "README.md"), encoding="utf-8") as f:
21
22
  long_description = f.read()
22
23
 
23
24
  # Collect names of bin/*py scripts
24
25
  # e.g. 'pdb_intersect=bin.pdb_intersect:main',
25
- binfiles = listdir(path.join(here, 'pdbtools'))
26
- bin_py = [f[:-3] + '=pdbtools.' + f[:-3] + ':main' for f in binfiles
27
- if f.endswith('.py')]
26
+ binfiles = listdir(path.join(here, "pdbtools"))
27
+ bin_py = [
28
+ f[:-3] + "=pdbtools." + f[:-3] + ":main" for f in binfiles if f.endswith(".py")
29
+ ]
28
30
 
29
31
  setup(
30
- name='pdb-tools', # Required
31
- version='2.5.0', # Required
32
- description='A swiss army knife for PDB files.', # Optional
32
+ name="pdb-tools", # Required
33
+ version="2.6.0", # Required
34
+ description="A swiss army knife for PDB files.", # Optional
33
35
  long_description=long_description, # Optional
34
- long_description_content_type='text/markdown', # Optional (see note above)
35
- url='http://bonvinlab.org/pdb-tools', # Optional
36
- author='Joao Rodrigues', # Optional
37
- author_email='j.p.g.l.m.rodrigues@gmail.com', # Optional
38
- license='Apache Software License, version 2',
39
- classifiers=[ # Optional
40
- # How mature is this project? Common values are
41
- # 3 - Alpha
42
- # 4 - Beta
43
- # 5 - Production/Stable
44
- 'Development Status :: 5 - Production/Stable',
45
- #'Development Status :: 4 - Beta',
46
-
47
- # Indicate who your project is intended for
48
- 'Intended Audience :: Science/Research',
49
- 'Topic :: Scientific/Engineering',
50
- 'Topic :: Scientific/Engineering :: Chemistry',
51
- 'Topic :: Scientific/Engineering :: Bio-Informatics',
52
-
53
-
54
- # Pick your license as you wish
55
- 'License :: OSI Approved :: Apache Software License',
56
-
57
- # Specify the Python versions you support here. In particular, ensure
58
- # that you indicate whether you support Python 2, Python 3 or both.
59
- 'Programming Language :: Python :: 2',
60
- 'Programming Language :: Python :: 2.7',
61
- 'Programming Language :: Python :: 3',
62
- 'Programming Language :: Python :: 3.6',
63
- 'Programming Language :: Python :: 3.7',
36
+ long_description_content_type="text/markdown", # Optional (see note above)
37
+ url="http://bonvinlab.org/pdb-tools", # Optional
38
+ author="Joao Rodrigues", # Optional
39
+ author_email="j.p.g.l.m.rodrigues@gmail.com", # Optional
40
+ license="Apache Software License, version 2",
41
+ classifiers=[
42
+ "Development Status :: 5 - Production/Stable",
43
+ "Intended Audience :: Science/Research",
44
+ "Topic :: Scientific/Engineering",
45
+ "Topic :: Scientific/Engineering :: Chemistry",
46
+ "Topic :: Scientific/Engineering :: Bio-Informatics",
47
+ "Programming Language :: Python :: 3.9",
48
+ "Programming Language :: Python :: 3.10",
49
+ "Programming Language :: Python :: 3.11",
50
+ "Programming Language :: Python :: 3.12",
51
+ "Programming Language :: Python :: 3.13",
52
+ "Programming Language :: Python :: 3.14",
64
53
  ],
65
-
66
- keywords='bioinformatics protein structural-biology pdb', # Optional
67
-
54
+ keywords="bioinformatics protein structural-biology pdb", # Optional
68
55
  # You can just specify package directories manually here if your project is
69
56
  # simple. Or you can use find_packages().
70
57
  #
@@ -75,7 +62,6 @@ setup(
75
62
  # py_modules=["my_module"],
76
63
  #
77
64
  packages=find_packages(), # Required
78
-
79
65
  # To provide executable scripts, use entry points in preference to the
80
66
  # "scripts" keyword. Entry points provide cross-platform support and allow
81
67
  # `pip` to create the appropriate form of executable for the target
@@ -84,11 +70,9 @@ setup(
84
70
  # For example, the following would provide a command called `sample` which
85
71
  # executes the function `main` from this package when invoked:
86
72
  entry_points={ # Optional
87
- 'console_scripts': bin_py,
73
+ "console_scripts": bin_py,
88
74
  },
89
-
90
75
  # scripts=[path.join('bin', f) for f in listdir(path.join(here, 'bin'))],
91
-
92
76
  # List additional URLs that are relevant to your project as a dict.
93
77
  #
94
78
  # This field corresponds to the "Project-URL" metadata fields:
@@ -99,10 +83,9 @@ setup(
99
83
  # maintainers, and where to support the project financially. The key is
100
84
  # what's used to render the link text on PyPI.
101
85
  project_urls={ # Optional
102
- 'Bug Reports': 'https://github.com/haddocking/pdb-tools/issues',
103
- 'Source': 'https://github.com/haddocking/pdb-tools',
86
+ "Bug Reports": "https://github.com/haddocking/pdb-tools/issues",
87
+ "Source": "https://github.com/haddocking/pdb-tools",
104
88
  },
105
-
106
89
  # Test Suite
107
- test_suite='tests.test_all',
90
+ test_suite="tests.test_all",
108
91
  )
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