Package eu.isas.reporter.settings
Class ClusteringSettings
java.lang.Object
eu.isas.reporter.settings.ClusteringSettings
- All Implemented Interfaces:
Serializable
Settings for the clustering.
- Author:
- Marc Vaudel
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPeptideClass(String className) Adds a class to the selected classes.voidaddProteinClass(String className) Adds a class to the selected classes.voidaddPsmClass(String className) Adds a class to the selected classes.voidClears the peptide classes.voidClears the protein classes.voidClears the peptide classes.Returns the classes color coding.Returns the color corresponding to a cluster class.com.compomics.util.math.clustering.settings.KMeansClusteringSettingsReturns the k-means clustering settings.getNonSelectedColor(String clusterClass) Returns the color for a non-selected line of this class.getPeptideClassKey(String name) Returns the class key corresponding to the given name.Returns a map of the possible keys indexed by their toString() representation.Returns the possible peptide classes names.Returns the possible protein classes names.Returns the possible PSM classes names.getProteinClassKey(String name) Returns the class key corresponding to the given name.Returns a map of the possible keys indexed by their toString() representation.getPsmClassKey(String name) Returns the class key corresponding to the given name.Returns a map of the possible keys indexed by their toString() representation.Returns the selected peptide cluster classes represented by their toString() method.Returns the selected protein cluster classes represented by their toString() method.Returns the selected PSM cluster classes represented by their toString() method.voidsetClassesColors(HashMap<String, Color> classesColors) Sets the classes color coding.voidSets the cluster class color.voidsetKMeansClusteringSettings(com.compomics.util.math.clustering.settings.KMeansClusteringSettings kMeansClusteringSettings) Sets the k-means clustering settings.voidsetPeptideClassKeys(ArrayList<PeptideClusterClassKey> clusterClassKeys) Sets the cluster class keys.voidsetProteinClassKeys(ArrayList<ProteinClusterClassKey> clusterClassKeys) Sets the cluster class keys.voidsetPsmClassKeys(ArrayList<PsmClusterClassKey> clusterClassKeys) Sets the cluster class keys.voidsetSelectedPeptideClasses(ArrayList<String> selectedPeptideClasses) Sets the selected peptide cluster classes represented by their toString() method.voidsetSelectedProteinClasses(ArrayList<String> selectedProteinClasses) Sets the selected protein cluster classes represented by their toString() method.voidsetSelectedPsmClasses(ArrayList<String> selectedPsmClasses) Sets the selected PSM cluster classes represented by their toString() method.
-
Constructor Details
-
ClusteringSettings
public ClusteringSettings()Constructor.
-
-
Method Details
-
getSelectedProteinClasses
Returns the selected protein cluster classes represented by their toString() method.- Returns:
- the selected protein cluster classes
-
setSelectedProteinClasses
Sets the selected protein cluster classes represented by their toString() method.- Parameters:
selectedProteinClasses- the selected protein cluster classes
-
addProteinClass
Adds a class to the selected classes.- Parameters:
className- the class name
-
clearProteinClasses
public void clearProteinClasses()Clears the protein classes. -
getSelectedPeptideClasses
Returns the selected peptide cluster classes represented by their toString() method.- Returns:
- the selected peptide cluster classes
-
setSelectedPeptideClasses
Sets the selected peptide cluster classes represented by their toString() method.- Parameters:
selectedPeptideClasses- the selected peptide cluster classes
-
addPeptideClass
Adds a class to the selected classes.- Parameters:
className- the class name
-
clearPeptideClasses
public void clearPeptideClasses()Clears the peptide classes. -
getSelectedPsmClasses
Returns the selected PSM cluster classes represented by their toString() method.- Returns:
- the selected PSM cluster classes
-
setSelectedPsmClasses
Sets the selected PSM cluster classes represented by their toString() method.- Parameters:
selectedPsmClasses- the selected PSM cluster classes
-
addPsmClass
Adds a class to the selected classes.- Parameters:
className- the class name
-
clearPsmClasses
public void clearPsmClasses()Clears the peptide classes. -
getColor
Returns the color corresponding to a cluster class.- Parameters:
clusterClass- the cluster class- Returns:
- the corresponding color
-
getNonSelectedColor
Returns the color for a non-selected line of this class.- Parameters:
clusterClass- the cluster class- Returns:
- the color for a non-selected line of this class
-
setColor
Sets the cluster class color.- Parameters:
clusterClass- the cluster class representation as Stringcolor- the cluster class color
-
getKMeansClusteringSettings
public com.compomics.util.math.clustering.settings.KMeansClusteringSettings getKMeansClusteringSettings()Returns the k-means clustering settings.- Returns:
- the k-means clustering settings
-
setKMeansClusteringSettings
public void setKMeansClusteringSettings(com.compomics.util.math.clustering.settings.KMeansClusteringSettings kMeansClusteringSettings) Sets the k-means clustering settings.- Parameters:
kMeansClusteringSettings- the k-means clustering settings
-
getPossibleProteinClasses
Returns the possible protein classes names.- Returns:
- the possible protein classes names
-
getProteinClassKey
Returns the class key corresponding to the given name.- Parameters:
name- the name- Returns:
- the class key corresponding to the given name
-
setProteinClassKeys
Sets the cluster class keys.- Parameters:
clusterClassKeys- the cluster class keys
-
getProteinKeysMap
Returns a map of the possible keys indexed by their toString() representation.- Returns:
- a map of the possible keys
-
getPossiblePeptideClasses
Returns the possible peptide classes names.- Returns:
- the possible peptide classes names
-
getPeptideClassKey
Returns the class key corresponding to the given name.- Parameters:
name- the name- Returns:
- the class key corresponding to the given name
-
setPeptideClassKeys
Sets the cluster class keys.- Parameters:
clusterClassKeys- the cluster class keys
-
getPeptideKeysMap
Returns a map of the possible keys indexed by their toString() representation.- Returns:
- a map of the possible keys
-
getPossiblePsmClasses
Returns the possible PSM classes names.- Returns:
- the possible PSM classes names
-
getPsmClassKey
Returns the class key corresponding to the given name.- Parameters:
name- the name- Returns:
- the class key corresponding to the given name
-
setPsmClassKeys
Sets the cluster class keys.- Parameters:
clusterClassKeys- the cluster class keys
-
getPsmKeysMap
Returns a map of the possible keys indexed by their toString() representation.- Returns:
- a map of the possible keys
-
getClassesColors
Returns the classes color coding.- Returns:
- the classes color coding
-
setClassesColors
Sets the classes color coding.- Parameters:
classesColors- the classes color coding
-