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
4b655995
Verified
Commit
4b655995
authored
2 years ago
by
Xavier Robin
Browse files
Options
Downloads
Patches
Plain Diff
doc: warn about MMCifInfo dependency on seqres
parent
c5a0089e
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/mmcif.rst
+8
-0
8 additions, 0 deletions
modules/io/doc/mmcif.rst
modules/io/pymod/__init__.py
+6
-0
6 additions, 0 deletions
modules/io/pymod/__init__.py
with
14 additions
and
0 deletions
modules/io/doc/mmcif.rst
+
8
−
0
View file @
4b655995
...
...
@@ -98,6 +98,12 @@ Information from mmCIF files that goes beyond structural data, is kept in a
special container, the :class:`MMCifInfo` class. Here is a detailed description
of the annotation available.
.. note::
Some fields of the ``MMCifInfo`` container are only populated if SEQRES
records are read in :func:`~ost.io.LoadMMCIF` and a compound library is
available (see :func:`~ost.conop.GetDefaultLib`)
.. class:: MMCifInfo
This is the container for all bits of non-molecular data pulled from a mmCIF
...
...
@@ -291,6 +297,8 @@ of the annotation available.
.. method:: GetPDBMMCifChainTr(pdb_chain_id)
Get the translation of a certain PDB chain name to the mmCIF chain name.
Only works if SEQRES records are read in :func:`~ost.io.LoadMMCIF` and a
compound library is available (see :func:`~ost.conop.GetDefaultLib`).
:param pdb_chain_id: atom_site.auth_asym_id
:type pdb_chain_id: :class:`str`
...
...
This diff is collapsed.
Click to expand it.
modules/io/pymod/__init__.py
+
6
−
0
View file @
4b655995
...
...
@@ -20,6 +20,7 @@ import os, tempfile, ftplib, http.client
from
._ost_io
import
*
from
ost
import
mol
,
geom
,
conop
,
seq
from
ost
import
LogWarning
class
IOProfiles
:
def
__init__
(
self
):
...
...
@@ -446,6 +447,11 @@ def LoadMMCIF(filename, fault_tolerant=None, calpha_only=None,
reader
.
info
.
ConnectBranchLinks
()
#else:
# raise IOError("File doesn't contain any entities")
# Warn about info dependency on seqres
if
info
and
not
reader
.
seqres
:
LogWarning
(
"
MMCifInfo is incomplete when seqres=False
"
)
if
seqres
and
info
:
return
ent
,
reader
.
seqres
,
reader
.
info
if
seqres
:
...
...
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