public class PeptideFragment extends AminoAcidSequence
| Constructor and Description |
|---|
PeptideFragment(FragmentType fragmentType,
AminoAcid firstResidue,
AminoAcid... residues)
Construct an PeptideFragment by copying the residues
|
PeptideFragment(FragmentType fragmentType,
AminoAcidSequence src,
int beginIndex,
int endIndex)
Constructor that copies the residues and modifications from src.
|
PeptideFragment(FragmentType fragmentType,
List<AminoAcid> residues,
com.google.common.collect.Multimap<Integer,Modification> sideChainModMap,
com.google.common.collect.Multimap<ModAttachment,Modification> termModMap)
Constructs an PeptideFragment from the list of residues with the modifications contained in
side chain and term mod map.
|
| Modifier and Type | Method and Description |
|---|---|
double |
calculateMass(IonType ionType)
Calculate the mass of this PeptideFragment given the
ionType |
double |
calculateMz(IonType ionType,
int charge)
Calculate the m/z of this PeptideFragment given the
charge and
ionType |
boolean |
equals(Object o) |
FragmentType |
getFragmentType()
Return the fragmentType
|
int |
hashCode() |
static PeptideFragment |
parse(String s,
FragmentType fragmentType)
Parse s to build a PeptideFragment.
|
static PeptideFragment |
parse(String s,
FragmentType fragmentType,
ModificationResolver modResolver)
Parse
s to build a PeptideFragment using the modResolver to convert modification strings to
Modification |
calculateMonomerMassDefect, calculateMonomerMassSum, countAminoAcidsIn, getAmbiguousAminoAcids, getModificationCount, getModificationCount, getModificationIndexes, getModifications, getModificationsAt, getModifiedResidueCount, getSymbol, getSymbolIndexes, hasAmbiguousAminoAcids, hasModificationAt, hasModificationAt, hasModificationAt, hasModificationAt, hasModifications, hasSameSequence, hasSameSequence, isEmpty, size, toString, toSymbolStringpublic PeptideFragment(FragmentType fragmentType, AminoAcid firstResidue, AminoAcid... residues)
fragmentType - the fragment typefirstResidue - the first residueresidues - the rest of the residuespublic PeptideFragment(FragmentType fragmentType, AminoAcidSequence src, int beginIndex, int endIndex)
beginIndex
and extends to the residue at index endIndex - 1.
Thus the length of the new PeptideFragment is endIndex-beginIndex.fragmentType - the fragment typesrc - the PeptideFragment from which to copy the sequence and modificationsbeginIndex - the beginning index, inclusive.endIndex - the ending index, exclusive.public PeptideFragment(FragmentType fragmentType, List<AminoAcid> residues, com.google.common.collect.Multimap<Integer,Modification> sideChainModMap, com.google.common.collect.Multimap<ModAttachment,Modification> termModMap)
fragmentType - the fragment typeresidues - the residues, this list must have at least one amino acidsideChainModMap - the side chain modifications, this map can be emptytermModMap - the terminal modifications, this map can be emptypublic static PeptideFragment parse(String s, FragmentType fragmentType)
PEPTIDE : the peptide PEPTIDE PEPTM(O)IDE : the peptide PEPTIDE with an oxidation on M PEPTM(O, Phospho)IDE : the peptide PEPTIDE with an oxidation and phosphorylation on M (Acetyl)_PEPTIDE_(O) : the peptide PEPTIDE with a n-term Acetylation and c_term oxidation modification
s - the stringfragmentType - the fragment typePeptideParseException - if s is not a valid stringpublic static PeptideFragment parse(String s, FragmentType fragmentType, ModificationResolver modResolver)
s to build a PeptideFragment using the modResolver to convert modification strings to
Modifications - the stringfragmentType - the fragment typemodResolver - Function to convert modification string to ModificationPeptideParseException - if s is not a valid stringpublic FragmentType getFragmentType()
public double calculateMz(IonType ionType, int charge)
charge and
ionTypeionType - the ionTypecharge - the chargepublic double calculateMass(IonType ionType)
ionTypeionType - the ionTypepublic boolean equals(Object o)
equals in class AminoAcidSequencepublic int hashCode()
hashCode in class AminoAcidSequenceCopyright © 2016. All Rights Reserved.