public class AnnotationSettings extends Object implements Serializable
Constructor and Description |
---|
AnnotationSettings()
Constructor.
|
AnnotationSettings(SearchParameters searchParameters)
Constructor setting preferences from search parameters.
|
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.
|
Boolean |
areNeutralLossesSequenceAuto()
Returns whether neutral losses are considered only for amino acids of
interest or not.
|
void |
clearIonTypes()
Clears the ion types annotated.
|
void |
clearNeutralLosses()
Clears the considered neutral losses.
|
AnnotationSettings |
clone()
Clones the settings.
|
double |
getAnnotationIntensityLimit()
Returns the intensity percentile to consider for annotation.
|
int |
getDeNovoCharge()
Returns the charge to use for the fragment ions in the de novo
sequencing.
|
double |
getFragmentIonAccuracy()
Returns the fragment ion accuracy.
|
double |
getFragmentIonAccuracyInDa(Double refMass)
Returns the fragment ion accuracy in Da.
|
HashSet<Integer> |
getFragmentIonTypes()
Returns the type of peptide fragment ions annotated.
|
HashMap<Ion.IonType,HashSet<Integer>> |
getIonTypes()
Returns the type of ions annotated.
|
ArrayList<NeutralLoss> |
getNeutralLosses()
Returns the considered neutral losses.
|
Boolean |
getRelatedIons()
Indicates whether related ions should be annotated by default.
|
Boolean |
getReporterIons()
Indicates whether reporter ions should be annotated by default.
|
String |
getShortDescription()
Returns a short description of the parameters.
|
SpecificAnnotationSettings |
getSpecificAnnotationPreferences(String spectrumKey,
SpectrumIdentificationAssumption spectrumIdentificationAssumption,
SequenceMatchingPreferences sequenceMatchingPreferences,
SequenceMatchingPreferences ptmSequenceMatchingPreferences)
Returns the annotation preferences specific to a spectrum and an
identification assumption.
|
boolean |
isAutomaticAnnotation()
Returns whether the annotation settings should be automatically inferred.
|
boolean |
isFragmentIonPpm()
Indicates whether the fragment ion accuracy is in ppm.
|
boolean |
isHighResolutionAnnotation()
Returns true if the peak annotation should be based on the most accurate
mz value, false bases the annotation on the most intense peak.
|
boolean |
isSameAs(AnnotationSettings annotationSettings)
Returns a boolean indicating whether the given annotation settings are
the same as these ones.
|
void |
setAutomaticAnnotation(boolean automaticAnnotation)
Sets whether the annotation settings should be automatically inferred.
|
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 |
setFragmentIonPpm(boolean fragmentIonPpm)
Sets whether the fragment ion accuracy is in ppm.
|
void |
setHighResolutionAnnotation(boolean highResolutionAnnotation)
Set if the peak annotation should be based on the most accurate mz value,
or on the most intense peak.
|
void |
setIntensityLimit(double intensityLimit)
Sets the intensity percentile to consider for annotation.
|
void |
setNeutralLossesSequenceAuto(Boolean neutralLossesAuto)
Sets whether neutral losses are considered only for amino acids of
interest or not.
|
void |
setPreferencesFromSearchParameters(SearchParameters searchParameters)
Updates the annotation parameters based on search parameters.
|
void |
setRelatedIons(Boolean relatedIons)
Sets whether related ions should be annotated by default.
|
void |
setReporterIons(Boolean reporterIons)
Sets whether reporter ions should be annotated by default.
|
void |
setShowAllPeaks(boolean showAllPeaks)
Set if all peaks or just the annotated ones are to be shown.
|
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 annotated peaks.
|
boolean |
showAllPeaks()
If true, all peaks are shown, false displays the annotated peaks, and the
non-annotated in the background.
|
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 |
yAxisZoomExcludesBackgroundPeaks()
Returns true if the automatic y-axis zoom excludes background peaks.
|
public AnnotationSettings()
public AnnotationSettings(SearchParameters searchParameters)
searchParameters
- the search parameterspublic SpecificAnnotationSettings getSpecificAnnotationPreferences(String spectrumKey, SpectrumIdentificationAssumption spectrumIdentificationAssumption, SequenceMatchingPreferences sequenceMatchingPreferences, SequenceMatchingPreferences ptmSequenceMatchingPreferences) throws IOException, InterruptedException, ClassNotFoundException, SQLException
spectrumKey
- the key of the spectrum to annotatespectrumIdentificationAssumption
- the spectrum identification
assumption to annotate withsequenceMatchingPreferences
- the sequence matching preferences for
peptide to protein mappingptmSequenceMatchingPreferences
- the sequence matching preferences
for PTM to peptide mappingIOException
- exception thrown whenever an error occurred while
interacting with a file while mapping potential modification sitesInterruptedException
- exception thrown whenever a threading issue
occurred while mapping potential modification sitesClassNotFoundException
- exception thrown whenever an error
occurred while deserializing an object from the ProteinTreeSQLException
- exception thrown whenever an error occurred while
interacting with the ProteinTreepublic void setPreferencesFromSearchParameters(SearchParameters searchParameters)
searchParameters
- the search parameters where to take the
information frompublic Boolean areNeutralLossesSequenceAuto()
public void setNeutralLossesSequenceAuto(Boolean neutralLossesAuto)
neutralLossesAuto
- a boolean indicating whether neutral losses are
considered only for amino acids of interest or notpublic Boolean getReporterIons()
public void setReporterIons(Boolean reporterIons)
reporterIons
- a boolean indicating whether reporter ions should be
annotated by defaultpublic Boolean getRelatedIons()
public void setRelatedIons(Boolean relatedIons)
relatedIons
- a boolean indicating whether related ions should be
annotated by defaultpublic void clearNeutralLosses()
public ArrayList<NeutralLoss> getNeutralLosses()
public void addNeutralLoss(NeutralLoss neutralLoss)
neutralLoss
- a new neutral losspublic HashMap<Ion.IonType,HashSet<Integer>> getIonTypes()
public HashSet<Integer> getFragmentIonTypes()
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 clearIonTypes()
public void setAutomaticAnnotation(boolean automaticAnnotation)
automaticAnnotation
- a boolean indicating whether the annotation
settings should be automatically inferredpublic boolean isAutomaticAnnotation()
public double getFragmentIonAccuracy()
public double getFragmentIonAccuracyInDa(Double refMass)
refMass
- the reference mass to use for the ppm to Da conversionpublic void setFragmentIonAccuracy(double fragmentIonAccuracy)
fragmentIonAccuracy
- the fragment ion accuracypublic boolean isFragmentIonPpm()
public void setFragmentIonPpm(boolean fragmentIonPpm)
fragmentIonPpm
- a boolean indicating whether the fragment ion
accuracy is in ppmpublic double getAnnotationIntensityLimit()
public void setIntensityLimit(double intensityLimit)
intensityLimit
- the intensityLimit to setpublic boolean showAllPeaks()
public void setShowAllPeaks(boolean showAllPeaks)
showAllPeaks
- if all peaks are to be shownpublic boolean yAxisZoomExcludesBackgroundPeaks()
public void setYAxisZoomExcludesBackgroundPeaks(boolean yAxisZoomExcludesBackgroundPeaks)
yAxisZoomExcludesBackgroundPeaks
- if the automatic y-axis zoom only
considers the annotated peakspublic 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 sequencingpublic boolean isHighResolutionAnnotation()
public void setHighResolutionAnnotation(boolean highResolutionAnnotation)
highResolutionAnnotation
- the highResolutionAnnotation to setpublic AnnotationSettings clone()
public boolean isSameAs(AnnotationSettings annotationSettings)
annotationSettings
- the annotation settings to compare topublic String getShortDescription()
Copyright © 2016. All rights reserved.