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
3d719b4b
Commit
3d719b4b
authored
8 years ago
by
Gerardo Tauriello
Browse files
Options
Downloads
Patches
Plain Diff
Updated doc of AminoAcid (it's finally seen as a class).
parent
2f3a3a68
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/conop/doc/aminoacid.rst
+34
-20
34 additions, 20 deletions
modules/conop/doc/aminoacid.rst
with
34 additions
and
20 deletions
modules/conop/doc/aminoacid.rst
+
34
−
20
View file @
3d719b4b
...
...
@@ -9,13 +9,15 @@ This document describes functions and classes to work with the 20 standard amino
The AminoAcid enum
--------------------------------------------------------------------------------
The amino acid enum enumerates all 20 standard amino acid and the special value
XXX, to signify an unknown amino acid. The amino acid enum supports the
following values:
.. class:: AminoAcid
ALA, ARG, ASN, ASP, GLN, GLU, LYS, SER, CYS, MET
TRP, TYR, THR, VAL, ILE, LEU, GLY, PRO, HIS, PHE
XXX
The amino acid enum enumerates all 20 standard amino acid and the special
value XXX, to signify an unknown amino acid. The amino acid enum supports the
following values:
ALA, ARG, ASN, ASP, GLN, GLU, LYS, SER, CYS, MET
TRP, TYR, THR, VAL, ILE, LEU, GLY, PRO, HIS, PHE
XXX
Converter functions
--------------------------------------------------------------------------------
...
...
@@ -23,20 +25,33 @@ Converter functions
ResidueNameToAminoAcid(rname)
OneLetterCodeNameToAminoAcid(olc)
Get amino acid from residue, residue name (three-letter-code)
or one-letter-code. Returns XXX if residue, residue name or
one-letter-code is not one of the 20 standard amino acids.
:return: Amino acid from residue, residue name (three-letter-code)
or one-letter-code. Returns XXX if residue, residue name or
one-letter-code is not one of the 20 standard amino acids.
:rtype: :class:`AminoAcid`
.. function:: OneLetterCodeToResidueName(olc)
AminoAcidToResidueName(amino_acid)
Get residue name from one-letter-code or amino_acid. For invalid
one-letter-codes or XXX, 'UNK' is returned.
:return: Residue name from one-letter-code or amino_acid. For invalid
one-letter-codes or XXX, 'UNK' is returned.
:rtype: :class:`str`
:param olc: One-letter-code
:type olc: :class:`str`
:param amino_acid: Amino acid type
:type amino_acid: :class:`AminoAcid`
.. function:: ResidueNameToOneLetterCode(rname)
Get one-letter-code for the given residue name. Returns 'X' if residue name is
not one of the 20 standard amino acids.
:return: One-letter-code for the given residue name. Returns 'X' if residue
name is not one of the 20 standard amino acids.
:rtype: :class:`str`
:param rname: Residue name
:type rname: :class:`str`
.. class:: AminoAcidSet
...
...
@@ -48,7 +63,6 @@ Converter functions
Returns a set containing all polar, aromatic or apolar amino acids,
respectively.
.. method:: Add(amino_acid)
...
...
@@ -85,9 +99,9 @@ to standard amino acids.
called, otherwise CopyNonConserved will be called.
:param src_res: The source residue
:type src_res: :class:`~mol.ResidueHandle`
:type src_res: :class:`~
ost.
mol.ResidueHandle`
:param dst_res: The destination residue
:type dst_res: :class:`~mol.ResidueHandle`
:type dst_res: :class:`~
ost.
mol.ResidueHandle`
:returns: true if the residue could be copied, false if not.
...
...
@@ -106,9 +120,9 @@ to standard amino acids.
Additionally, the selenium atom of ``MSE`` is converted to sulphur.
:param src_res: The source residue
:type src_res: :class:`~mol.ResidueHandle`
:type src_res: :class:`~
ost.
mol.ResidueHandle`
:param dst_res: The destination residue
:type dst_res: :class:`~mol.ResidueHandle`
:type dst_res: :class:`~
ost.
mol.ResidueHandle`
:returns: a tuple of bools stating whether the residue could be copied and
whether the Cbeta atom was inserted into the ``dst_res``.
...
...
@@ -119,9 +133,9 @@ to standard amino acids.
to ``dst_res``.
:param src_res: The source residue
:type src_res: :class:`~mol.ResidueHandle`
:type src_res: :class:`~
ost.
mol.ResidueHandle`
:param dst_res: The destination residue
:type dst_res: :class:`~mol.ResidueHandle`
:type dst_res: :class:`~
ost.
mol.ResidueHandle`
:returns: a tuple of bools stating whether the residue could be copied and
whether the Cbeta atom was inserted into the ``dst_res``.
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