Encodes residues and mutability of a monomeric chain, with functionality to read, write, and mutate the chain.
import bagel as bg residues = [ bg.Residue(name='A', chain_ID='A', index=0, mutable=True), bg.Residue(name='G', chain_ID='A', index=1, mutable=True), ] chain = bg.Chain(residues=residues) chain.mutate_residue(index=1, amino_acid='V')