public class PtmSettings extends Object implements Serializable
Constructor and Description |
---|
PtmSettings()
Constructor.
|
PtmSettings(PtmSettings modificationProfile)
Constructor creating a new Modification profile based on the given one.
|
Modifier and Type | Method and Description |
---|---|
void |
addFixedModification(PTM modification)
Adds a fixed modification.
|
void |
addRefinementFixedModification(PTM modification)
Adds a fixed refinement modification.
|
void |
addRefinementVariableModification(PTM modification)
Adds a variable refinement modification.
|
void |
addVariableModification(PTM modification)
Adds a variable modification.
|
void |
clearFixedModifications()
Clears fixed modifications.
|
void |
clearRefinementModifications()
Clears refinement modifications.
|
void |
clearVariableModifications()
Clears variable modifications.
|
boolean |
contains(String modificationName)
Indicates whether the modification is contained in the profile, looking
into all modifications (fixed, variable and refinement)
|
boolean |
equals(PtmSettings otherProfile)
Returns true of the two profiles are identical.
|
ArrayList<String> |
getAllModifications()
Returns a list of all searched modifications.
|
ArrayList<String> |
getAllNotFixedModifications()
Returns a list of all searched modifications but the fixed ones.
|
Set<String> |
getBackedUpPtms()
Returns the names of the backed-up PTMs.
|
HashMap<String,PTM> |
getBackedUpPtmsMap()
Returns the PTMs backed-up as a map.
|
Color |
getColor(String modification)
Returns the color used to code the given modification.
|
HashMap<String,Color> |
getColors()
Returns the modification colors as a map.
|
ArrayList<String> |
getFixedModifications()
Returns the searched fixed modifications names.
|
PTM |
getPtm(String modName)
Returns the back-ed up PTM with the given name.
|
ArrayList<String> |
getRefinementFixedModifications()
Return the refinement fixed modifications used for the second pass
search.
|
ArrayList<String> |
getRefinementVariableModifications()
Return the refinement variable modifications used for the second pass
search.
|
ArrayList<String> |
getSimilarNotFixedModifications(Double ptmMass)
Returns a list containing all not fixed modifications with the same mass.
|
ArrayList<String> |
getVariableModifications()
Returns the expected variable modification names included in this
profile.
|
void |
removeFixedModification(String modificationName)
Removes a modification from the list of fixed modifications.
|
void |
removeRefinementFixedModification(String modificationName)
Removes a fixed modification from the list of refinement modifications.
|
void |
removeRefinementVariableModification(String modificationName)
Removes a variable modification from the list of refinement
modifications.
|
void |
removeVariableModification(String modificationName)
Removes a modification from the list of variable modifications.
|
void |
setColor(String expectedModification,
Color color)
Sets a new color for the given expected modification.
|
public PtmSettings()
public PtmSettings(PtmSettings modificationProfile)
modificationProfile
- the modification profilepublic ArrayList<String> getVariableModifications()
public ArrayList<String> getFixedModifications()
public ArrayList<String> getRefinementVariableModifications()
public void clearVariableModifications()
public void clearFixedModifications()
public void clearRefinementModifications()
public ArrayList<String> getRefinementFixedModifications()
public ArrayList<String> getAllModifications()
public ArrayList<String> getAllNotFixedModifications()
public void addVariableModification(PTM modification)
modification
- The modification to addpublic void addRefinementVariableModification(PTM modification)
modification
- The modification to addpublic void addRefinementFixedModification(PTM modification)
modification
- The modification to addpublic void addFixedModification(PTM modification)
modification
- The modification to addpublic void setColor(String expectedModification, Color color)
expectedModification
- the name of the expected modificationcolor
- the new colorpublic Color getColor(String modification)
modification
- the name of the given expected modificationpublic HashMap<String,Color> getColors()
public Set<String> getBackedUpPtms()
public PTM getPtm(String modName)
modName
- the name of the PTM of interestpublic HashMap<String,PTM> getBackedUpPtmsMap()
public void removeVariableModification(String modificationName)
modificationName
- the name of the modificationpublic void removeFixedModification(String modificationName)
modificationName
- the name of the modificationpublic void removeRefinementVariableModification(String modificationName)
modificationName
- the name of the modificationpublic void removeRefinementFixedModification(String modificationName)
modificationName
- the name of the modificationpublic boolean contains(String modificationName)
modificationName
- the name of the modificationpublic ArrayList<String> getSimilarNotFixedModifications(Double ptmMass)
ptmMass
- the masspublic boolean equals(PtmSettings otherProfile)
otherProfile
- the profile to compare againstCopyright © 2016. All rights reserved.