com.compomics.util.experiment.identification
Class SearchParameters

java.lang.Object
  extended by com.compomics.util.experiment.identification.SearchParameters
All Implemented Interfaces:
Serializable

public class SearchParameters
extends Object
implements Serializable

This class groups the parameters used for identification.

Author:
Marc Vaudel
See Also:
Serialized Form

Nested Class Summary
static class SearchParameters.PrecursorAccuracyType
          Possible mass accuracy types.
 
Constructor Summary
SearchParameters()
          Constructor.
 
Method Summary
 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,Double> getFractionMolecularWeights()
          Returns the user provided molecular weights of the fractions.
 Double getFragmentIonAccuracy()
          Returns the ms2 ion m/z tolerance.
 Integer getHitListLength()
          Returns the length of the hitlist for OMSSA.
static SearchParameters getIdentificationParameters(File file)
          Loads the identification parameters from a serialized 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.
 Double getMaxEValue()
          Returns the maximal e-value searched for.
 Integer getMaxPeptideLength()
          Returns the maximal peptide length allowed.
 Charge getMinChargeSearched()
          Returns the minimal charge searched.
 Charge getMinimalChargeForMultipleChargedFragments()
          Returns the minimal precursor charge to account for multiply charged fragments in OMSSA.
 Integer getMinPeptideLength()
          Sets the minimal peptide length allowed.
 ModificationProfile getModificationProfile()
          Returns the modification profile of the project.
 Integer getnMissedCleavages()
          Returns the allowed number of missed cleavages.
 File getParametersFile()
          Returns the parameters file loaded.
 Double getPrecursorAccuracy()
          Returns the precursor tolerance.
 SearchParameters.PrecursorAccuracyType getPrecursorAccuracyType()
          Returns the precursor accuracy type.
static String[] getRewindIons()
          Returns the list of rewind ions.
 Boolean isEstimateCharge()
          Indicates whether the precursor charge shall be estimated for OMSSA.
 Boolean isPrecursorAccuracyTypePpm()
          Returns true if the current precursor accuracy type is ppm.
 Boolean isRemovePrecursor()
          Indicates whether the precursor shall be removed for OMSSA.
 Boolean isScalePrecursor()
          Indicates whether the precursor shall be scaled for OMSSA.
static void saveIdentificationParameters(SearchParameters identificationParameters, File file)
          saves the a modification profile from a serialized file.
 void setEnzyme(Enzyme enzyme)
          Sets the enzyme used for digestion.
 void setEstimateCharge(Boolean estimateCharge)
          Sets whether the precursor charge shall be estimated for OMSSA.
 void setFastaFile(File fastaFile)
          Sets the sequence database file used for identification.
 void setFractionMolecularWeights(HashMap<String,Double> fractionMolecularWeights)
          Set the user provided molecular weights of the fractions.
 void setFragmentIonAccuracy(Double fragmentIonMZTolerance)
          Sets the fragment ion m/z tolerance.
 void setHitListLength(Integer hitListLength)
          Sets the length of the hitlist for OMSSA.
 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 setMaxEValue(Double maxEValue)
          Sets the maximal e-value searched for.
 void setMaxPeptideLength(Integer maxPeptideLength)
          Sets the maximal peptide length allowed.
 void setMinChargeSearched(Charge minChargeSearched)
          Sets the minimal charge searched.
 void setMinimalChargeForMultipleChargedFragments(Charge minimalChargeForMultipleChargedFragments)
          Sets the minimal precursor charge to account for multiply charged fragments in OMSSA.
 void setMinPeptideLength(Integer minPeptideLength)
          Sets the minimal peptide length allowed.
 void setModificationProfile(ModificationProfile modificationProfile)
          Sets the modification profile of the project.
 void setnMissedCleavages(Integer nMissedCleavages)
          Sets the allowed number of missed cleavages.
 void setParametersFile(File parametersFile)
          Sets the parameter file loaded.
 void setPrecursorAccuracy(Double precursorTolerance)
          Sets the precursor tolerance.
 void setPrecursorAccuracyType(SearchParameters.PrecursorAccuracyType currentPrecursorAccuracyType)
          Sets the precursor accuracy type.
 void setRemovePrecursor(Boolean removePrecursor)
          Sets whether the precursor shall be removed for OMSSA
 void setScalePrecursor(Boolean scalePrecursor)
          Sets whether the precursor shall be scaled for OMSSA.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchParameters

public SearchParameters()
Constructor.

Method Detail

getModificationProfile

public ModificationProfile getModificationProfile()
Returns the modification profile of the project.

Returns:
the modification profile of the project

setModificationProfile

public void setModificationProfile(ModificationProfile modificationProfile)
Sets the modification profile of the project.

Parameters:
modificationProfile - The modification profile

getFragmentIonAccuracy

public Double getFragmentIonAccuracy()
Returns the ms2 ion m/z tolerance.

Returns:
the ms2 ion m/z tolerance

setFragmentIonAccuracy

public void setFragmentIonAccuracy(Double fragmentIonMZTolerance)
Sets the fragment ion m/z tolerance.

Parameters:
fragmentIonMZTolerance -

getEnzyme

public Enzyme getEnzyme()
Returns the enzyme used for digestion.

Returns:
the enzyme used for digestion

setEnzyme

public void setEnzyme(Enzyme enzyme)
Sets the enzyme used for digestion.

Parameters:
enzyme - the enzyme used for digestion

getParametersFile

public File getParametersFile()
Returns the parameters file loaded.

Returns:
the parameters file loaded

setParametersFile

public void setParametersFile(File parametersFile)
Sets the parameter file loaded.

Parameters:
parametersFile - the parameter file loaded

getFastaFile

public File getFastaFile()
Returns the sequence database file used for identification.

Returns:
the sequence database file used for identification

setFastaFile

public void setFastaFile(File fastaFile)
Sets the sequence database file used for identification.

Parameters:
fastaFile - the sequence database file used for identification

getnMissedCleavages

public Integer getnMissedCleavages()
Returns the allowed number of missed cleavages.

Returns:
the allowed number of missed cleavages

setnMissedCleavages

public void setnMissedCleavages(Integer nMissedCleavages)
Sets the allowed number of missed cleavages.

Parameters:
nMissedCleavages - the allowed number of missed cleavages

getIonSearched1

public Integer getIonSearched1()
Getter for the first kind of ion searched.

Returns:
the first kind of ion searched as an integer (see static fields of the PeptideFragmentIon class)

setIonSearched1

public void setIonSearched1(String ionSearched1)
Setter for the first kind of ion searched, indexed by its single letter code, for example "a".

Parameters:
ionSearched1 - the first kind of ion searched

getIonSearched2

public Integer getIonSearched2()
Getter for the second kind of ion searched.

Returns:
the second kind of ion searched as an integer (see static fields of the PeptideFragmentIon class)

setIonSearched2

public void setIonSearched2(String ionSearched2)
Setter for the second kind of ion searched, indexed by its single letter code, for example "a".

Parameters:
ionSearched2 - the second kind of ion searched

getIons

public static String[] getIons()
Getter for the list of ion symbols used.

Returns:
the list of ion symbols used

getForwardIons

public static String[] getForwardIons()
Returns the list of forward ions.

Returns:
the forwardIons

getRewindIons

public static String[] getRewindIons()
Returns the list of rewind ions.

Returns:
the rewindIons

getPrecursorAccuracy

public Double getPrecursorAccuracy()
Returns the precursor tolerance.

Returns:
the precursor tolerance

setPrecursorAccuracy

public void setPrecursorAccuracy(Double precursorTolerance)
Sets the precursor tolerance.

Parameters:
precursorTolerance - the precursor tolerance

getPrecursorAccuracyType

public SearchParameters.PrecursorAccuracyType getPrecursorAccuracyType()
Returns the precursor accuracy type.

Returns:
the precursor accuracy type

setPrecursorAccuracyType

public void setPrecursorAccuracyType(SearchParameters.PrecursorAccuracyType currentPrecursorAccuracyType)
Sets the precursor accuracy type.

Parameters:
currentPrecursorAccuracyType - the precursor accuracy type

isPrecursorAccuracyTypePpm

public Boolean isPrecursorAccuracyTypePpm()
Returns true if the current precursor accuracy type is ppm.

Returns:
true if the current precursor accuracy type is ppm

getFractionMolecularWeights

public HashMap<String,Double> getFractionMolecularWeights()
Returns the user provided molecular weights of the fractions. The key is the fraction file path.

Returns:
the user provided molecular weights of the fractions

setFractionMolecularWeights

public void setFractionMolecularWeights(HashMap<String,Double> fractionMolecularWeights)
Set the user provided molecular weights of the fractions. The key is the fraction file path.

Parameters:
fractionMolecularWeights - the fractionMolecularWeights to set

getMaxChargeSearched

public Charge getMaxChargeSearched()
Returns the maximal charge searched.

Returns:
the maximal charge searched

setMaxChargeSearched

public void setMaxChargeSearched(Charge maxChargeSearched)
Sets the maximal charge searched.

Parameters:
maxChargeSearched - the maximal charge searched

getMinChargeSearched

public Charge getMinChargeSearched()
Returns the minimal charge searched.

Returns:
the minimal charge searched

setMinChargeSearched

public void setMinChargeSearched(Charge minChargeSearched)
Sets the minimal charge searched.

Parameters:
minChargeSearched - the minimal charge searched

getMaxEValue

public Double getMaxEValue()
Returns the maximal e-value searched for.

Returns:
the maximal e-value searched for

setMaxEValue

public void setMaxEValue(Double maxEValue)
Sets the maximal e-value searched for.

Parameters:
maxEValue - the maximal e-value searched for

getHitListLength

public Integer getHitListLength()
Returns the length of the hitlist for OMSSA.

Returns:
the length of the hitlist for OMSSA

setHitListLength

public void setHitListLength(Integer hitListLength)
Sets the length of the hitlist for OMSSA.

Parameters:
hitListLength - the length of the hitlist for OMSSA

getMinimalChargeForMultipleChargedFragments

public Charge getMinimalChargeForMultipleChargedFragments()
Returns the minimal precursor charge to account for multiply charged fragments in OMSSA.

Returns:
the minimal precursor charge to account for multiply charged fragments in OMSSA

setMinimalChargeForMultipleChargedFragments

public void setMinimalChargeForMultipleChargedFragments(Charge minimalChargeForMultipleChargedFragments)
Sets the minimal precursor charge to account for multiply charged fragments in OMSSA.

Parameters:
minimalChargeForMultipleChargedFragments - the minimal precursor charge to account for multiply charged fragments in OMSSA

getMaxPeptideLength

public Integer getMaxPeptideLength()
Returns the maximal peptide length allowed.

Returns:
the maximal peptide length allowed

setMaxPeptideLength

public void setMaxPeptideLength(Integer maxPeptideLength)
Sets the maximal peptide length allowed.

Parameters:
maxPeptideLength - the maximal peptide length allowed

getMinPeptideLength

public Integer getMinPeptideLength()
Sets the minimal peptide length allowed.

Returns:
the minimal peptide length allowed

setMinPeptideLength

public void setMinPeptideLength(Integer minPeptideLength)
Sets the minimal peptide length allowed.

Parameters:
minPeptideLength - the minimal peptide length allowed

isEstimateCharge

public Boolean isEstimateCharge()
Indicates whether the precursor charge shall be estimated for OMSSA.

Returns:
a boolean indicating whether the precursor charge shall be estimated for OMSSA

setEstimateCharge

public void setEstimateCharge(Boolean estimateCharge)
Sets whether the precursor charge shall be estimated for OMSSA.

Parameters:
estimateCharge - a boolean indicating whether the precursor charge shall be estimated for OMSSA

isRemovePrecursor

public Boolean isRemovePrecursor()
Indicates whether the precursor shall be removed for OMSSA.

Returns:
a boolean indicating whether the precursor shall be removed for OMSSA

setRemovePrecursor

public void setRemovePrecursor(Boolean removePrecursor)
Sets whether the precursor shall be removed for OMSSA

Parameters:
removePrecursor - a boolean indicating whether the precursor shall be removed for OMSSA

isScalePrecursor

public Boolean isScalePrecursor()
Indicates whether the precursor shall be scaled for OMSSA.

Returns:
a boolean indicating whether the precursor shall be scaled for OMSSA

setScalePrecursor

public void setScalePrecursor(Boolean scalePrecursor)
Sets whether the precursor shall be scaled for OMSSA.

Parameters:
scalePrecursor - a boolean indicating whether the precursor shall be scaled for OMSSA

getIdentificationParameters

public static SearchParameters getIdentificationParameters(File file)
                                                    throws FileNotFoundException,
                                                           IOException,
                                                           ClassNotFoundException
Loads the identification parameters from a serialized file.

Parameters:
file - the file
Returns:
the modification file
Throws:
FileNotFoundException
IOException
ClassNotFoundException

saveIdentificationParameters

public static void saveIdentificationParameters(SearchParameters identificationParameters,
                                                File file)
                                         throws FileNotFoundException,
                                                IOException,
                                                ClassNotFoundException
saves the a modification profile from a serialized file.

Parameters:
identificationParameters -
file - the file
Throws:
FileNotFoundException
IOException
ClassNotFoundException


Copyright © 2012. All Rights Reserved.