IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP.pmi.alphabets.ResidueAlphabet Class Reference

Map between FASTA codes and residue types. More...

Detailed Description

Map between FASTA codes and residue types.

Typically one would use the amino_acid, rna, or dna objects.

Note
This class is only available in Python.

Definition at line 8 of file alphabets.py.

Public Member Functions

 get_chain_type (self)
 Get the IMP.atom.ChainType for this alphabet.
 get_one_letter_code_from_residue_type (self, rt)
 Given a residue type, return a one-letter code.
 get_residue_type_from_one_letter_code (self, code)
 Given a one-letter code, return an IMP.atom.ResidueType.

Member Function Documentation

◆ get_chain_type()

IMP.pmi.alphabets.ResidueAlphabet.get_chain_type ( self)

Get the IMP.atom.ChainType for this alphabet.

Definition at line 28 of file alphabets.py.

◆ get_one_letter_code_from_residue_type()

IMP.pmi.alphabets.ResidueAlphabet.get_one_letter_code_from_residue_type ( self,
rt )

Given a residue type, return a one-letter code.

Definition at line 22 of file alphabets.py.

◆ get_residue_type_from_one_letter_code()

IMP.pmi.alphabets.ResidueAlphabet.get_residue_type_from_one_letter_code ( self,
code )

Given a one-letter code, return an IMP.atom.ResidueType.

Definition at line 18 of file alphabets.py.


The documentation for this class was generated from the following file: