Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
117bf4ba
Commit
117bf4ba
authored
5 years ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
document restrictions of PDB format causing exceptions to be thrown in SavePDB
parent
24e0c211
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/io/doc/io.rst
+3
-1
3 additions, 1 deletion
modules/io/doc/io.rst
modules/io/pymod/__init__.py
+9
-0
9 additions, 0 deletions
modules/io/pymod/__init__.py
with
12 additions
and
1 deletion
modules/io/doc/io.rst
+
3
−
1
View file @
117bf4ba
...
...
@@ -144,12 +144,14 @@ file:
.. function:: EntityToPDBStr(ent, profile=IOProfile())
Return entity as a string in PDB format.
Return entity as a string in PDB format.
:param entity: The :class:`~ost.mol.EntityHandle` or :class:`~ost.mol.EntityView`
:param profile: The IO Profile to read the entity with. For more information
on the IO Profiles available, see :doc:`profile`.
:raises: IOException if the restrictions of the PDB format are not satisfied
(see :meth:`ost.io.SavePDB`)
:rtype: string.
...
...
This diff is collapsed.
Click to expand it.
modules/io/pymod/__init__.py
+
9
−
0
View file @
117bf4ba
...
...
@@ -184,6 +184,15 @@ def SavePDB(models, filename, dialect=None, pqr=False, profile='DEFAULT'):
:param models: The entity or list of entities (handles or views) to be saved
:param filename: The filename
:type filename: string
:raises: IOException if the restrictions of the PDB format are not satisfied
(with the exception of atom numbers, see above):
* Chain names with more than one character
* Atom positions with coordinates outside range [-999.99, 9999.99]
* Residue names longer than three characters
* Atom names longer than four characters
* Numeric part of :class:`ost.mol.ResNum` outside range [-999, 9999]
* Alternative atom indicators longer than one character
"""
if
not
getattr
(
models
,
'
__len__
'
,
None
):
models
=
[
models
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment