public class PeptideBuilder extends Object
| Constructor and Description |
|---|
PeptideBuilder(AminoAcid... seq)
Construct a PeptideBuilder initialised to contain the amino acids from
seq |
PeptideBuilder(AminoAcid[] residues,
int fromInclusive,
int toExclusive)
Constructs an PeptideBuilder by copying the residues from
residues starting at
fromInclusive to toExclusive. |
PeptideBuilder(List<AminoAcid> sequence)
Construct a PeptideBuilder initialised to contain the amino acids from
sequence |
PeptideBuilder(Peptide peptide)
Construct a PeptideBuilder initialised to contain the amino acids sequence and modifications
copied from the
peptide |
PeptideBuilder(String peptide)
Construct a peptide builder initialised by parsing the
peptide string |
| Modifier and Type | Method and Description |
|---|---|
PeptideBuilder |
add(AminoAcid aminoAcid)
Add an amino acid
|
PeptideBuilder |
addModification(int index,
Modification modification)
Add a the
modification to the side chain of residue at index |
PeptideBuilder |
addModification(ModAttachment modAttachment,
Modification modification)
Add a the
modification to either end of the the peptide. |
PeptideBuilder |
addModificationToAll(Collection<Modification> modifications,
AminoAcid aminoAcid)
Add all of the Modification's in
modifications to all amino acids that are equal to aminoAcid |
PeptideBuilder |
addModificationToAll(Modification modification,
AminoAcid aminoAcid)
Add the
modification to all amino acids that are equal to aminoAcid |
Peptide |
build()
Build a Peptide
|
PeptideFragment |
buildFragment(FragmentType fragmentType)
Build a PeptideFragment
|
void |
clear()
Reset this builder
|
PeptideBuilder |
parseAndAdd(String peptideSequence)
Parse the
peptideSequence string and add the sequence and modifications to this builder |
int |
size()
Return the number of amino acids
|
public PeptideBuilder(String peptide)
peptide stringpeptide - the initial state of the builderpublic PeptideBuilder(List<AminoAcid> sequence)
sequencesequence - the initial amino acidspublic PeptideBuilder(AminoAcid... seq)
seqseq - the initial amino acidspublic PeptideBuilder(AminoAcid[] residues, int fromInclusive, int toExclusive)
residues starting at
fromInclusive to toExclusive.residues - the residues, the array cannot be emptyfromInclusive - the beginning index, inclusivetoExclusive - the ending index, exclusivepublic PeptideBuilder(Peptide peptide)
peptidepeptide - the peptide from which to copy the seqence and modificationspublic PeptideBuilder addModification(ModAttachment modAttachment, Modification modification)
modification to either end of the the peptide. The end is
specified busing the modAttachmentmodAttachment - specifies which end of the peptide the modification is to be addedmodification - the Modification that is to be addedpublic PeptideBuilder parseAndAdd(String peptideSequence)
peptideSequence string and add the sequence and modifications to this builderpeptideSequence - the string to parsepublic PeptideBuilder add(AminoAcid aminoAcid)
aminoAcid - the amino acid to addpublic PeptideBuilder addModification(int index, Modification modification)
modification to the side chain of residue at indexindex - the index of the reside where the Modification is to be addedmodification - the ModificationMatch that is to be addedpublic PeptideBuilder addModificationToAll(Modification modification, AminoAcid aminoAcid)
modification to all amino acids that are equal to aminoAcidmodification - the modification to addaminoAcid - the amino acid to which the modification is to be addedpublic PeptideBuilder addModificationToAll(Collection<Modification> modifications, AminoAcid aminoAcid)
modifications to all amino acids that are equal to aminoAcidmodifications - the modifications to addaminoAcid - the amino acid to which the modification is to be addedpublic void clear()
public int size()
public Peptide build()
public PeptideFragment buildFragment(FragmentType fragmentType)
fragmentType - the fragment type for the PeptideFragmentCopyright © 2016. All Rights Reserved.