Skip to main content

Parameters

name
str
required
Type of the amino acid in one-letter format (upper-cased)
chain_ID
str
required
ID of the polymer chain this residue belongs to
index
int
required
Internal index of the residue in the chain (0 to len(chain)-1, i.e. 0-indexed)
mutable
bool
default:"True"
Whether the residue can be mutated

Methods

three_letter_name

String representation of amino acid in 3-letters format.

Example

import bagel as bg

residue = bg.Residue(name='A', chain_ID='X', index=0)
three_letter = residue.three_letter_name  # 'ALA'