Skip to content

Commit

Permalink
Document sym_id annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
padix-key committed Dec 20, 2024
1 parent e13c4c4 commit fda7181
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/biotite/structure/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,15 @@
The following annotation categories are optionally used by some
functions:
========= =========== ================= ============================
========= =========== ================= =========================================
Category Type Examples Description
========= =========== ================= ============================
========= =========== ================= =========================================
atom_id int 1,2,3, ... Atom serial number
b_factor float 0.9, 12.3, ... Temperature factor
occupancy float .1, .3, .9, ... Occupancy
charge int -2,-1,0,1,2, ... Electric charge of the atom
========= =========== ================= ============================
sym_id string '1','2','3', ... Symmetry ID for assemblies/symmetry mates
========= =========== ================= =========================================
For each type, the attributes can be accessed directly.
Both :class:`AtomArray` and :class:`AtomArrayStack` support
Expand Down
2 changes: 2 additions & 0 deletions src/biotite/structure/io/pdb/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ def get_assembly(
assembly : AtomArray or AtomArrayStack
The assembly.
The return type depends on the `model` parameter.
Contains the `sym_id` annotation, which enumerates the copies of the asymmetric
unit in the assembly.
Examples
--------
Expand Down
2 changes: 2 additions & 0 deletions src/biotite/structure/io/pdb/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,8 @@ def get_assembly(
assembly : AtomArray or AtomArrayStack
The assembly.
The return type depends on the `model` parameter.
Contains the `sym_id` annotation, which enumerates the copies of the
asymmetric unit in the assembly.
Examples
--------
Expand Down
5 changes: 4 additions & 1 deletion src/biotite/structure/io/pdbx/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,10 @@ def get_assembly(
Returns
-------
assembly : AtomArray or AtomArrayStack
The assembly. The return type depends on the `model` parameter.
The assembly.
The return type depends on the `model` parameter.
Contains the `sym_id` annotation, which enumerates the copies of the asymmetric
unit in the assembly.
Examples
--------
Expand Down

0 comments on commit fda7181

Please sign in to comment.