Bases: builtins.object
Represents one of the amino acids that can be found in genetic sequences. Can be one of the following : - any of the twenty amino acids - any of four combinations of possible amino acids - selenocysteine, pyrrolysine, a gap or termination codon The full list of possible amino acids is defined by AA_NAMES.
Creates an AminoAcid object representing one of the possible amino acids. @param aminoAcid can be the name of an amino acid, or an AminoAcid object (in which case a copy is created).
Yields the names of all represented amino acids, excepting gaps and termination codons.
Bases: builtins.list
Represents a sequence of amino acids. Inherits from list, and ensures all items are of type AminoAcid.
Creates a Sequence object that represents the amino acid sequence contained in aminoAcids. aminoAcids can be one of the following : - None, meaning the Sequence is empty (default) - an AminoAcid object - a string of X AminoAcid short (uppercase) names or 1 AminoAcid name - a list containing AminoAcid objects and/or strings of individual AminoAcid names
Extends the base by adding ‘aminoAcids’ at its end. @param aminoAcids must be compatible with the Sequence constructor
Inserts aminoAcids into the base at index ‘index’. List objects will not be embedded as is, instead their items will be inserted in the same order, individually. @param aminoAcids must be compatible with the Sequence constructor @param index is the index at which aminoAcids is inserted