public static class PepFragAnnotation.Builder extends Object
| Constructor and Description |
|---|
PepFragAnnotation.Builder(IonType ionType,
int charge,
AminoAcidSequence fragment)
Construct a new Builder
|
PepFragAnnotation.Builder(PepFragAnnotation src)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
PepFragAnnotation.Builder |
addC13(int count)
Add
count C13 isotopes |
PepFragAnnotation.Builder |
addH2(int count)
Add
count H2 isotpes |
PepFragAnnotation.Builder |
addIsotope(Atom isotope)
Add the
isotope |
PepFragAnnotation.Builder |
addIsotopeComposition(Composition isotopeComposition)
Add all the atoms from
isotopeComposition |
PepFragAnnotation |
build()
Build the PepFragAnnotation annotation.
|
int |
getCharge() |
void |
setCharge(int charge) |
PepFragAnnotation.Builder |
setFragment(AminoAcidSequence fragment)
Set the fragment
|
PepFragAnnotation.Builder |
setNeutralLoss(Mass neutralLoss)
Set the neutral loss
|
public PepFragAnnotation.Builder(IonType ionType, int charge, AminoAcidSequence fragment)
ionType - the ion typecharge - the chargefragment - the amino acid sequence of the fragmentpublic PepFragAnnotation.Builder(PepFragAnnotation src)
src - the PepFragAnnotation from which to copy the valuespublic PepFragAnnotation.Builder setFragment(AminoAcidSequence fragment)
fragment - the fragmentpublic PepFragAnnotation.Builder setNeutralLoss(Mass neutralLoss)
neutralLoss - the neutral losspublic PepFragAnnotation.Builder addC13(int count)
count C13 isotopescount - the number of C13 isotopespublic PepFragAnnotation.Builder addH2(int count)
count H2 isotpescount - the number of H2 to addpublic PepFragAnnotation.Builder addIsotope(Atom isotope)
isotopeisotope - the isotope to addpublic PepFragAnnotation.Builder addIsotopeComposition(Composition isotopeComposition)
isotopeCompositionisotopeComposition - the atoms to addpublic PepFragAnnotation build()
public void setCharge(int charge)
public int getCharge()
Copyright © 2016. All Rights Reserved.