public class ProteinBuilderTool extends Object
NucleicAcidBuilderTool
(to be
written).Constructor and Description |
---|
ProteinBuilderTool() |
Modifier and Type | Method and Description |
---|---|
static BioPolymer |
addAminoAcidAtCTerminus(BioPolymer protein,
AminoAcid aaToAdd,
Strand strand,
AminoAcid aaToAddTo)
Builds a protein by connecting a new amino acid at the C-terminus of the
given strand.
|
static BioPolymer |
addAminoAcidAtNTerminus(BioPolymer protein,
AminoAcid aaToAdd,
Strand strand,
AminoAcid aaToAddTo)
Builds a protein by connecting a new amino acid at the N-terminus of the
given strand.
|
static BioPolymer |
createProtein(String sequence)
Creates a BioPolymer from a sequence of amino acid as identified by a
the sequence of their one letter codes.
|
public static BioPolymer addAminoAcidAtNTerminus(BioPolymer protein, AminoAcid aaToAdd, Strand strand, AminoAcid aaToAddTo)
protein
- protein to which the strand belongsaaToAdd
- amino acid to add to the strand of the proteinstrand
- strand to which the protein is addedpublic static BioPolymer addAminoAcidAtCTerminus(BioPolymer protein, AminoAcid aaToAdd, Strand strand, AminoAcid aaToAddTo)
protein
- protein to which the strand belongsaaToAdd
- amino acid to add to the strand of the proteinstrand
- strand to which the protein is addedpublic static BioPolymer createProtein(String sequence) throws CDKException
For example:
BioPolymer protein = ProteinBuilderTool.createProtein("GAGA");
CDKException