public class SearchParameters extends Object implements Serializable, MarshallableParameter
Modifier and Type | Class and Description |
---|---|
static class |
SearchParameters.MassAccuracyType
Possible mass accuracy types.
|
MarshallableParameter.Type
Constructor and Description |
---|
SearchParameters()
Constructor.
|
SearchParameters(SearchParameters searchParameters)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(SearchParameters otherSearchParameters)
Returns true if the search parameter objects have identical settings.
|
Set<Integer> |
getAlgorithms()
Returns the algorithms for which specific parameters are stored.
|
HashMap<Integer,IdentificationAlgorithmParameter> |
getAlgorithmSpecificParameters()
Returns the algorithm specific parameters in a map: algorithm as indexed
in the Advocate class > parameters.
|
Enzyme |
getEnzyme()
Returns the enzyme used for digestion.
|
File |
getFastaFile()
Returns the sequence database file used for identification.
|
static String[] |
getForwardIons()
Returns the list of forward ions.
|
HashMap<String,no.uib.jsparklines.data.XYDataPoint> |
getFractionMolecularWeightRanges()
Returns the user provided molecular weight ranges for the fractions.
|
SearchParameters.MassAccuracyType |
getFragmentAccuracyType()
Returns the fragment accuracy type.
|
Double |
getFragmentIonAccuracy()
Returns the MS2 ion m/z tolerance.
|
Double |
getFragmentIonAccuracyInDaltons(Double refMass)
Returns the absolute fragment ion tolerance in Dalton.
|
IdentificationAlgorithmParameter |
getIdentificationAlgorithmParameter(int algorithmID)
Returns the algorithm specific parameters, null if not found.
|
static SearchParameters |
getIdentificationParameters(File searchParametersFile)
Loads the identification parameters from a file.
|
static String[] |
getIons()
Getter for the list of ion symbols used.
|
Integer |
getIonSearched1()
Getter for the first kind of ion searched.
|
Integer |
getIonSearched2()
Getter for the second kind of ion searched.
|
Charge |
getMaxChargeSearched()
Returns the maximal charge searched.
|
Integer |
getMaxIsotopicCorrection()
Returns the maximal isotopic correction.
|
Charge |
getMinChargeSearched()
Returns the minimal charge searched.
|
Integer |
getMinIsotopicCorrection()
Returns the minimal isotopic correction.
|
Integer |
getnMissedCleavages()
Returns the allowed number of missed cleavages.
|
Double |
getPrecursorAccuracy()
Returns the precursor tolerance.
|
Double |
getPrecursorAccuracyDalton()
Returns the precursor tolerance in Dalton (for de novo searches).
|
SearchParameters.MassAccuracyType |
getPrecursorAccuracyType()
Returns the precursor accuracy type.
|
PtmSettings |
getPtmSettings()
Returns the PTM settings.
|
static String[] |
getRewindIons()
Returns the list of rewind ions.
|
String |
getShortDescription()
Returns a short description of the parameters.
|
MarshallableParameter.Type |
getType()
Returns the type of marshalled parameter from an unmarshalled object.
|
Boolean |
isPrecursorAccuracyTypePpm()
Returns true if the current precursor accuracy type is ppm.
|
static void |
saveIdentificationParameters(SearchParameters searchParameters,
File searchParametersFile)
Saves the identification parameters to a serialized file.
|
void |
saveIdentificationParametersAsTextFile(File file)
Saves the identification parameters as a human readable text file.
|
void |
setDefaultAdvancedSettings()
Set the advanced settings to the default values.
|
void |
setDefaultAdvancedSettings(SearchParameters searchParameters)
Set the advanced settings to the values in the given search parameters
object or to the default values of the advanced settings are not set for
a given advocate.
|
void |
setEnzyme(Enzyme enzyme)
Sets the enzyme used for digestion.
|
void |
setFastaFile(File fastaFile)
Sets the sequence database file used for identification.
|
void |
setFractionMolecularWeightRanges(HashMap<String,no.uib.jsparklines.data.XYDataPoint> fractionMolecularWeightRanges)
Set the user provided molecular weight ranges for the fractions.
|
void |
setFragmentAccuracyType(SearchParameters.MassAccuracyType fragmentAccuracyType)
Sets the fragment accuracy type.
|
void |
setFragmentIonAccuracy(Double fragmentIonMZTolerance)
Sets the fragment ion m/z tolerance.
|
void |
setIdentificationAlgorithmParameter(int algorithmID,
IdentificationAlgorithmParameter identificationAlgorithmParameter)
Adds identification algorithm specific parameters.
|
void |
setIonSearched1(String ionSearched1)
Setter for the first kind of ion searched, indexed by its single letter
code, for example "a".
|
void |
setIonSearched2(String ionSearched2)
Setter for the second kind of ion searched, indexed by its single letter
code, for example "a".
|
void |
setMaxChargeSearched(Charge maxChargeSearched)
Sets the maximal charge searched.
|
void |
setMaxIsotopicCorrection(Integer maxIsotopicCorrection)
Sets the maximal isotopic correction.
|
void |
setMinChargeSearched(Charge minChargeSearched)
Sets the minimal charge searched.
|
void |
setMinIsotopicCorrection(Integer minIsotopicCorrection)
Sets the minimal isotopic correction.
|
void |
setnMissedCleavages(Integer nMissedCleavages)
Sets the allowed number of missed cleavages.
|
void |
setPrecursorAccuracy(Double precursorTolerance)
Sets the precursor tolerance.
|
void |
setPrecursorAccuracyDalton(Double precursorToleranceDalton)
Sets the precursor tolerance in Dalton (for de novo searches).
|
void |
setPrecursorAccuracyType(SearchParameters.MassAccuracyType precursorAccuracyType)
Sets the precursor accuracy type.
|
void |
setPtmSettings(PtmSettings ptmSettings)
Sets the PTM settings.
|
void |
setType()
Sets the parameters type.
|
String |
toString() |
String |
toString(boolean html)
Returns the search parameters as a string.
|
public SearchParameters()
public SearchParameters(SearchParameters searchParameters)
searchParameters
- the search parameter to base the search
parameters on.public void setDefaultAdvancedSettings()
public void setDefaultAdvancedSettings(SearchParameters searchParameters)
searchParameters
- the search parameter to extract the advanced
settings frompublic PtmSettings getPtmSettings()
public void setPtmSettings(PtmSettings ptmSettings)
ptmSettings
- the PTM settingspublic Double getFragmentIonAccuracy()
public Double getFragmentIonAccuracyInDaltons(Double refMass)
refMass
- the reference mass to use for the conversion of tolerances in ppm.public void setFragmentIonAccuracy(Double fragmentIonMZTolerance)
fragmentIonMZTolerance
- the fragment ion m/z tolerancepublic Enzyme getEnzyme()
public void setEnzyme(Enzyme enzyme)
enzyme
- the enzyme used for digestionpublic File getFastaFile()
public void setFastaFile(File fastaFile)
fastaFile
- the sequence database file used for identificationpublic Integer getnMissedCleavages()
public void setnMissedCleavages(Integer nMissedCleavages)
nMissedCleavages
- the allowed number of missed cleavagespublic Integer getIonSearched1()
public void setIonSearched1(String ionSearched1)
ionSearched1
- the first kind of ion searchedpublic Integer getIonSearched2()
public void setIonSearched2(String ionSearched2)
ionSearched2
- the second kind of ion searchedpublic static String[] getIons()
public static String[] getForwardIons()
public static String[] getRewindIons()
public Double getPrecursorAccuracy()
public void setPrecursorAccuracy(Double precursorTolerance)
precursorTolerance
- the precursor tolerancepublic Double getPrecursorAccuracyDalton()
public void setPrecursorAccuracyDalton(Double precursorToleranceDalton)
precursorToleranceDalton
- the precursor tolerancepublic SearchParameters.MassAccuracyType getPrecursorAccuracyType()
public void setPrecursorAccuracyType(SearchParameters.MassAccuracyType precursorAccuracyType)
precursorAccuracyType
- the precursor accuracy typepublic SearchParameters.MassAccuracyType getFragmentAccuracyType()
public void setFragmentAccuracyType(SearchParameters.MassAccuracyType fragmentAccuracyType)
fragmentAccuracyType
- the fragment accuracy typepublic Boolean isPrecursorAccuracyTypePpm()
public HashMap<String,no.uib.jsparklines.data.XYDataPoint> getFractionMolecularWeightRanges()
public void setFractionMolecularWeightRanges(HashMap<String,no.uib.jsparklines.data.XYDataPoint> fractionMolecularWeightRanges)
fractionMolecularWeightRanges
- the fractionMolecularWeightRanges to
setpublic Charge getMaxChargeSearched()
public void setMaxChargeSearched(Charge maxChargeSearched)
maxChargeSearched
- the maximal charge searchedpublic Charge getMinChargeSearched()
public void setMinChargeSearched(Charge minChargeSearched)
minChargeSearched
- the minimal charge searchedpublic HashMap<Integer,IdentificationAlgorithmParameter> getAlgorithmSpecificParameters()
public IdentificationAlgorithmParameter getIdentificationAlgorithmParameter(int algorithmID)
algorithmID
- the index of the search engine as indexed in the
Advocate classpublic void setIdentificationAlgorithmParameter(int algorithmID, IdentificationAlgorithmParameter identificationAlgorithmParameter)
algorithmID
- the algorithm id as indexed in the Advocate classidentificationAlgorithmParameter
- the specific parameterspublic Set<Integer> getAlgorithms()
public Integer getMinIsotopicCorrection()
public void setMinIsotopicCorrection(Integer minIsotopicCorrection)
minIsotopicCorrection
- the minimal isotopic correctionpublic Integer getMaxIsotopicCorrection()
public void setMaxIsotopicCorrection(Integer maxIsotopicCorrection)
maxIsotopicCorrection
- the maximal isotopic correctionpublic static SearchParameters getIdentificationParameters(File searchParametersFile) throws IOException, ClassNotFoundException
searchParametersFile
- the search parameter fileIOException
- if an IOException occursClassNotFoundException
- if a ClassNotFoundException occurspublic static void saveIdentificationParameters(SearchParameters searchParameters, File searchParametersFile) throws IOException
searchParameters
- the identification parameterssearchParametersFile
- the fileIOException
- if an IOException occurspublic void saveIdentificationParametersAsTextFile(File file) throws IOException
file
- the fileIOException
- if an IOException occurspublic String getShortDescription()
public String toString(boolean html)
html
- use HTML formattingpublic boolean equals(SearchParameters otherSearchParameters)
otherSearchParameters
- the parameters to compare topublic void setType()
MarshallableParameter
setType
in interface MarshallableParameter
public MarshallableParameter.Type getType()
MarshallableParameter
getType
in interface MarshallableParameter
Copyright © 2016. All rights reserved.