Skip to content
Snippets Groups Projects
Unverified Commit 06f53a05 authored by Xavier Robin's avatar Xavier Robin
Browse files

doc: updates for struct_ref

parent 274d6f79
Branches
Tags
No related merge requests found
...@@ -45,8 +45,8 @@ The following categories of a mmCIF file are considered by the reader: ...@@ -45,8 +45,8 @@ The following categories of a mmCIF file are considered by the reader:
* ``pdbx_database_PDB_obs_spr``: Verbose information on obsoleted/ superseded * ``pdbx_database_PDB_obs_spr``: Verbose information on obsoleted/ superseded
entries, stored in :class:`MMCifInfoObsolete` entries, stored in :class:`MMCifInfoObsolete`
* ``struct_ref`` stored in :class:`MMCifInfoStructRef` * ``struct_ref`` stored in :class:`MMCifInfoStructRef`
* ``struct_ref_seq`` stored in :class:`MMCifInfoStructRefSeqDif` * ``struct_ref_seq`` stored in :class:`MMCifInfoStructRefSeq`
* ``struct_ref_seq_dif`` stored in :class:`MMCifInfoStructRefDif` * ``struct_ref_seq_dif`` stored in :class:`MMCifInfoStructRefSeqDif`
* ``database_pdb_rev`` (mmCIF dictionary version < 5) stored in * ``database_pdb_rev`` (mmCIF dictionary version < 5) stored in
:class:`MMCifInfoRevisions` :class:`MMCifInfoRevisions`
* ``pdbx_audit_revision_history`` and ``pdbx_audit_revision_details`` * ``pdbx_audit_revision_history`` and ``pdbx_audit_revision_details``
...@@ -140,7 +140,7 @@ of the annotation available. ...@@ -140,7 +140,7 @@ of the annotation available.
:meth:`SetMethod`. :meth:`SetMethod`.
Some PDB entries have multiple experimental methods. This function Some PDB entries have multiple experimental methods. This function
only a single one of them. returns only a single one of them.
.. attribute:: resolution .. attribute:: resolution
...@@ -194,7 +194,11 @@ of the annotation available. ...@@ -194,7 +194,11 @@ of the annotation available.
.. attribute:: struct_refs .. attribute:: struct_refs
Lists all links to external databases in the mmCIF file. Lists all links to external databases in the mmCIF file as a
list of :class:`MMCifInfoStructRef`.
Also available as :meth:`GetStructRefs`. May also be modified by
:meth:`SetStructRefs`.
.. attribute:: revisions .. attribute:: revisions
...@@ -287,6 +291,16 @@ of the annotation available. ...@@ -287,6 +291,16 @@ of the annotation available.
.. method:: GetStructDetails() .. method:: GetStructDetails()
See :attr:`struct_details`
.. method:: SetStructRef(refs)
See :attr:`struct_refs`
.. method:: GetStructRef()
See :attr:`struct_refs`
.. method:: AddMMCifPDBChainTr(cif_chain_id, pdb_chain_id) .. method:: AddMMCifPDBChainTr(cif_chain_id, pdb_chain_id)
Set up a translation for a certain mmCIF chain name to the traditional PDB Set up a translation for a certain mmCIF chain name to the traditional PDB
...@@ -1141,16 +1155,22 @@ of the annotation available. ...@@ -1141,16 +1155,22 @@ of the annotation available.
:attr:`db_name`. :attr:`db_name`.
:type: :class:`str` :type: :class:`str`
.. attribute:: aligned_seqs
List of aligned sequences (all entries of the struct_ref_seq category
mapping to this struct_ref) as :class:`MMCifInfoStructRefSeq`.
Also available as :meth:`GetAlignedSeqs`.
.. method:: GetAlignedSeq(name) .. method:: GetAlignedSeq(name)
Returns the aligned sequence for the given name, None if the sequence does Returns the aligned sequence for the given name, None if the sequence does
not exist. not exist.
.. attribute:: aligned_seqs
List of aligned sequences (all entries of the struct_ref_seq category .. method:: GetAlignedSeqs()
mapping to this struct_ref).
See :attr:`aligned_seqs`
.. class:: MMCifInfoStructRefSeq .. class:: MMCifInfoStructRefSeq
...@@ -1181,8 +1201,8 @@ of the annotation available. ...@@ -1181,8 +1201,8 @@ of the annotation available.
.. attribute:: difs .. attribute:: difs
List of differences between the deposited sequence and the sequence in the List of differences (:class:`MMCifInfoStructRefSeqDif`) between the
database. deposited sequence and the sequence in the database.
.. attribute:: chain_name .. attribute:: chain_name
...@@ -1193,12 +1213,19 @@ of the annotation available. ...@@ -1193,12 +1213,19 @@ of the annotation available.
A particular difference between the deposited sequence and the sequence in A particular difference between the deposited sequence and the sequence in
the database. the database.
.. attribute:: rnum .. attribute:: seq_rnum
The residue number (1-based) of the residue in the deposited sequence The residue number (1-based) of the residue in the deposited sequence
:type: :class:`int` :type: :class:`int`
.. attribute:: db_rnum
The number of the residue in the database sequence or '?' if
'struct_ref_seq_dif.pdbx_seq_db_seq_num' was missing.
:type: :class:`str`
.. attribute:: details .. attribute:: details
A textual description of the difference, e.g. point mutation, A textual description of the difference, e.g. point mutation,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment