Package eu.isas.reporter.calculation
Class QuantificationFilter
java.lang.Object
eu.isas.reporter.calculation.QuantificationFilter
This class indicates whether identification features or ratios are valid
according to the user settings.
- Author:
- Marc Vaudel, Harald Barsnes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisPeptideValid(RatioEstimationSettings ratioEstimationSettings, com.compomics.util.experiment.identification.Identification identification, com.compomics.util.parameters.identification.search.SearchParameters searchParameters, com.compomics.util.experiment.identification.matches.PeptideMatch peptideMatch) Filters the peptide to be used for quantification according to the user quantification preferences.static booleanisProteinValid(RatioEstimationSettings ratioEstimationSettings, com.compomics.util.experiment.identification.Identification identification, long matchKey) Filters the protein to be used for quantification according to the user quantification preferences.static booleanisPsmValid(RatioEstimationSettings ratioEstimationSettings, com.compomics.util.experiment.identification.Identification identification, long matchKey) Filters the PSMs to be used for quantification according to the user quantification preferences.static booleanisRatioValid(RatioEstimationSettings ratioEstimationSettings, Double ratio) Filters out NaN and 0 ratios.
-
Constructor Details
-
QuantificationFilter
public QuantificationFilter()
-
-
Method Details
-
isRatioValid
Filters out NaN and 0 ratios.- Parameters:
ratioEstimationSettings- the ratio estimation settingsratio- the ratio of interest- Returns:
- true if the ratio is not NaN and should be accounted for according to the user settings
-
isPsmValid
public static boolean isPsmValid(RatioEstimationSettings ratioEstimationSettings, com.compomics.util.experiment.identification.Identification identification, long matchKey) Filters the PSMs to be used for quantification according to the user quantification preferences.- Parameters:
ratioEstimationSettings- the ratio estimation settingsidentification- the identification where to get the information frommatchKey- the key of the match of interest- Returns:
- true if the PSM can be used for quantification
-
isPeptideValid
public static boolean isPeptideValid(RatioEstimationSettings ratioEstimationSettings, com.compomics.util.experiment.identification.Identification identification, com.compomics.util.parameters.identification.search.SearchParameters searchParameters, com.compomics.util.experiment.identification.matches.PeptideMatch peptideMatch) Filters the peptide to be used for quantification according to the user quantification preferences.- Parameters:
ratioEstimationSettings- the ratio estimation settingsidentification- the identification where to get the information fromsearchParameters- the identification parameterspeptideMatch- the match of interest- Returns:
- true if the PSM can be used for quantification
-
isProteinValid
public static boolean isProteinValid(RatioEstimationSettings ratioEstimationSettings, com.compomics.util.experiment.identification.Identification identification, long matchKey) throws SQLException, IOException, ClassNotFoundException, InterruptedException Filters the protein to be used for quantification according to the user quantification preferences.- Parameters:
ratioEstimationSettings- the ratio estimation settingsidentification- the identification where to get the information frommatchKey- the key of the match of interest- Returns:
- true if the PSM can be used for quantification
- Throws:
SQLException- thrown if an SQLException occursIOException- thrown if an IOExceptionClassNotFoundException- thrown if a ClassNotFoundExceptionInterruptedException- thrown if an InterruptedException
-