public class ModificationMatch extends Object
| Constructor and Description |
|---|
ModificationMatch(double massShift,
AminoAcid residue,
Integer position,
ModAttachment modAttachment)
Create a ModificationMatch given a mass shift
|
ModificationMatch(Modification modification,
AminoAcid residue,
int position,
ModAttachment modAttachment)
Create a ModificationMatch given a modification.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPotentialModification(Modification modification)
Add a modification to the list of potential modifications
|
boolean |
equals(Object o) |
int |
getCandidateCount()
Returns the number of modification candidates
|
double |
getMassShift()
Returns the mass shift
|
ModAttachment |
getModAttachment() |
Modification |
getModificationCandidate(int index) |
int |
getPosition() |
AminoAcid |
getResidue() |
int |
hashCode() |
boolean |
isWithinTolerance(Tolerance tolerance)
Checks whether all modification candidates are within tolerance of the massShift.
|
String |
toString() |
String |
toString(NumberFormat numberFormat) |
public ModificationMatch(double massShift,
AminoAcid residue,
Integer position,
ModAttachment modAttachment)
massShift - the modifications mass (negative if loss)public ModificationMatch(Modification modification, AminoAcid residue, int position, ModAttachment modAttachment)
modification - the modificationpublic void addPotentialModification(Modification modification)
modification - the modification to addpublic double getMassShift()
public boolean isWithinTolerance(Tolerance tolerance)
tolerance - the tolerancepublic AminoAcid getResidue()
public int getPosition()
public ModAttachment getModAttachment()
public String toString(NumberFormat numberFormat)
public int getCandidateCount()
public Modification getModificationCandidate(int index)
Copyright © 2016. All Rights Reserved.