public class AnnotationPreferences
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
AnnotationPreferences()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addIonType(Ion.IonType ionType)
Adds a new ion type to annotate.
|
void |
addIonType(Ion.IonType ionType,
int subType)
Adds a new ion type and subtype to annotate.
|
void |
addNeutralLoss(NeutralLoss neutralLoss)
Adds a neutral loss.
|
void |
addSelectedCharge(int selectedCharge)
Add a charge to take into account when annotating the spectrum.
|
boolean |
areNeutralLossesSequenceDependant()
Returns whether neutral losses are considered only for amino acids of
interest or not.
|
void |
clearCharges()
Clears the selected charges.
|
void |
clearIonTypes()
Clears the ion types annotated.
|
void |
clearNeutralLosses()
Clears the considered neutral losses.
|
double |
getAnnotationIntensityLimit()
Returns the intensity limit.
|
int |
getCurrentPrecursorCharge()
Returns the current precursor charge.
|
int |
getDeNovoCharge()
Returns the charge to use for the fragment ions in the de novo
sequencing.
|
double |
getFragmentIonAccuracy()
Returns the fragment ion accuracy.
|
java.util.ArrayList<java.lang.Integer> |
getFragmentIonTypes()
Returns the type of peptide fragment ions annotated.
|
java.util.HashMap<Ion.IonType,java.util.ArrayList<java.lang.Integer>> |
getIonTypes()
Returns the type of ions annotated.
|
NeutralLossesMap |
getNeutralLosses()
Returns the considered neutral losses.
|
java.util.ArrayList<java.lang.Integer> |
getValidatedCharges()
Returns the fragment ion charges considered for the desired precursor
charge.
|
void |
resetAutomaticAnnotation()
Updates the neutral losses and charge annotation settings.
|
void |
setAnnotationLevel(double intensityLimit)
Sets the annotation level.
|
void |
setCurrentSettings(Peptide currentPeptide,
int currentPrecursorCharge,
boolean newSpectrum)
Sets the annotation settings for the current peptide and precursor
charge.
|
void |
setDeNovoCharge(int deNovoCharge)
Set the charge to use for the fragment ions in the de novo sequencing
|
void |
setFragmentIonAccuracy(double fragmentIonAccuracy)
Sets the fragment ion accuracy.
|
void |
setIntensityIonTable(boolean intensityIonTable)
Set if the intensity or m/z ion table should be shown.
|
void |
setNeutralLossesSequenceDependant(boolean neutralLossesSequenceDependant)
Set whether neutral losses are considered only for amino acids of
interest or not.
|
void |
setPreferencesFromSearchParamaers(SearchParameters searchParameters)
Updates the annotation parameters based on the search parameters
|
void |
setShowAllPeaks(boolean showAllPeaks)
Set if all peaks or just the annotated ones are to be shown.
|
void |
setShowBars(boolean showBars)
Set if the bars in the bubble plot are to be shown or not.
|
void |
setShowForwardIonDeNovoTags(boolean showForwardIonDeNovoTags)
Set if the automatic forward ion de novo tags are to be shown.
|
void |
setShowRewindIonDeNovoTags(boolean showRewindIonDeNovoTags)
Set if the automatic rewind ion de novo tags are to be shown.
|
void |
setYAxisZoomExcludesBackgroundPeaks(boolean yAxisZoomExcludesBackgroundPeaks)
Set if the automatic y-axis zoom only considers the anotated peaks.
|
boolean |
showAllPeaks()
If true, all peaks are shown, false displays the annotated peaks, and the
non-annotated in the background.
|
boolean |
showBars()
If true, bars are shown in the bubble plot highlighting the ions.
|
boolean |
showForwardIonDeNovoTags()
Returns true if the automatic forward ion de novo tags are to be shown.
|
boolean |
showRewindIonDeNovoTags()
Returns true if the automatic rewind ion de novo tags are to be shown.
|
boolean |
useAutomaticAnnotation()
Returns whether PeptideShaker should automatically set the annotations.
|
void |
useAutomaticAnnotation(boolean automaticAnnotation)
Sets whether the default PeptideShaker annotation should be used.
|
boolean |
useIntensityIonTable()
If true, the ion table is shown as an intensity versionm, false displays
the standard Mascot version.
|
boolean |
yAxisZoomExcludesBackgroundPeaks()
Returns true if the automatic y-axis zoom excludes background peaks.
|
public void setPreferencesFromSearchParamaers(SearchParameters searchParameters)
searchParameters
- the search parameters where to take the
information frompublic void setCurrentSettings(Peptide currentPeptide, int currentPrecursorCharge, boolean newSpectrum) throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.InterruptedException, java.io.FileNotFoundException, java.lang.ClassNotFoundException
currentPeptide
- currentPrecursorCharge
- newSpectrum
- java.io.IOException
- exception thrown whenever an error occurred while
reading a protein sequencejava.lang.IllegalArgumentException
- exception thrown whenever an error
occurred while reading a protein sequencejava.lang.InterruptedException
- exception thrown whenever an error occurred
while reading a protein sequencejava.io.FileNotFoundException
java.lang.ClassNotFoundException
public void resetAutomaticAnnotation() throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.InterruptedException, java.io.FileNotFoundException, java.lang.ClassNotFoundException
java.io.IOException
- exception thrown whenever an error occurred while
reading a protein sequencejava.lang.IllegalArgumentException
- exception thrown whenever an error
occurred while reading a protein sequencejava.lang.InterruptedException
- exception thrown whenever an error occurred
while reading a protein sequencejava.io.FileNotFoundException
java.lang.ClassNotFoundException
public boolean areNeutralLossesSequenceDependant()
public void setNeutralLossesSequenceDependant(boolean neutralLossesSequenceDependant)
neutralLossesSequenceDependant
- public java.util.ArrayList<java.lang.Integer> getValidatedCharges()
public void clearCharges()
public void addSelectedCharge(int selectedCharge)
selectedCharge
- a charge to take into account when annotating the
spectrumpublic void clearNeutralLosses()
public NeutralLossesMap getNeutralLosses()
public void addNeutralLoss(NeutralLoss neutralLoss)
neutralLoss
- a new neutral losspublic java.util.HashMap<Ion.IonType,java.util.ArrayList<java.lang.Integer>> getIonTypes()
public java.util.ArrayList<java.lang.Integer> getFragmentIonTypes()
public void clearIonTypes()
public void addIonType(Ion.IonType ionType, int subType)
ionType
- a new ion type to annotatesubType
- the ion sub typepublic void addIonType(Ion.IonType ionType)
ionType
- a new ion type to annotatepublic void useAutomaticAnnotation(boolean automaticAnnotation)
automaticAnnotation
- a boolean indicating whether the default
PeptideShaker annotation should be usedpublic boolean useAutomaticAnnotation()
public double getFragmentIonAccuracy()
public void setFragmentIonAccuracy(double fragmentIonAccuracy)
fragmentIonAccuracy
- the fragment ion accuracypublic int getCurrentPrecursorCharge()
public double getAnnotationIntensityLimit()
public void setAnnotationLevel(double intensityLimit)
intensityLimit
- the intensityLimit to setpublic boolean showAllPeaks()
public void setShowAllPeaks(boolean showAllPeaks)
showAllPeaks
- public boolean showBars()
public void setShowBars(boolean showBars)
showBars
- public boolean useIntensityIonTable()
public void setIntensityIonTable(boolean intensityIonTable)
intensityIonTable
- public boolean yAxisZoomExcludesBackgroundPeaks()
public void setYAxisZoomExcludesBackgroundPeaks(boolean yAxisZoomExcludesBackgroundPeaks)
yAxisZoomExcludesBackgroundPeaks
- public boolean showForwardIonDeNovoTags()
public void setShowForwardIonDeNovoTags(boolean showForwardIonDeNovoTags)
showForwardIonDeNovoTags
- the showForwardIonDeNovoTags to setpublic boolean showRewindIonDeNovoTags()
public void setShowRewindIonDeNovoTags(boolean showRewindIonDeNovoTags)
showRewindIonDeNovoTags
- the showRewindIonDeNovoTags to setpublic int getDeNovoCharge()
public void setDeNovoCharge(int deNovoCharge)
deNovoCharge
- the charge to use for the fragment ions in the de
novo sequencingCopyright © 2013. All Rights Reserved.