Class ProteinFilter
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.identification.filtering.MatchFilter
com.compomics.util.experiment.identification.filtering.ProteinFilter
- All Implemented Interfaces:
Filter,Serializable
Protein filter.
- Author:
- Marc Vaudel, Harald Barsnes
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.compomics.util.experiment.identification.filtering.MatchFilter
MatchFilter.FilterType -
Field Summary
Fields inherited from class com.compomics.util.experiment.identification.filtering.MatchFilter
comparatorsMap, condition, description, exceptions, filterType, MANUAL_SELECTION, manualValidation, name, reportFailed, reportPassed, valuesMapFields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.ProteinFilter(String name) Constructor.ProteinFilter(String name, String description) Constructor.ProteinFilter(String name, String description, String condition, String reportPassed, String reportFailed) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetFilterItem(String itemName) Returns the filter item corresponding to the given name.protected MatchFiltergetNew()Returns a new empty filter.Returns the filter items accepted by this filter.booleanisValidated(String itemName, FilterItemComparator filterItemComparator, Object value, long matchKey, Identification identification, GeneMaps geneMaps, IdentificationFeaturesGenerator identificationFeaturesGenerator, IdentificationParameters identificationParameters, SequenceProvider sequenceProvider, ProteinDetailsProvider proteinDetailsProvider, SpectrumProvider spectrumProvider) Indicates whether the match designated by the match key validates the given item using the given comparator and value threshold.Methods inherited from class com.compomics.util.experiment.identification.filtering.MatchFilter
addException, addManualValidation, clear, clone, getComparatorForItem, getCondition, getDescription, getExceptions, getItemsNames, getManualValidation, getName, getPossibleFilterItemsNames, getReport, getType, getValue, isActive, isSameAs, isValidated, removeException, removeFilterItem, removeManualValidation, setActive, setComparatorForItem, setCondition, setDescription, setExceptions, setFilterItem, setManualValidation, setName, setReportFailed, setReportPassed, setType, setValueForItemMethods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Constructor Details
-
ProteinFilter
public ProteinFilter()Constructor. -
ProteinFilter
Constructor.- Parameters:
name- the name of the filter
-
ProteinFilter
Constructor.- Parameters:
name- the name of the filterdescription- the description of the filter
-
ProteinFilter
public ProteinFilter(String name, String description, String condition, String reportPassed, String reportFailed) Constructor.- Parameters:
name- the name of the filterdescription- the description of the filtercondition- a description of the condition to be met to pass the filterreportPassed- a report for when the filter is passedreportFailed- a report for when the filter is not passed
-
-
Method Details
-
getNew
Description copied from class:MatchFilterReturns a new empty filter.- Specified by:
getNewin classMatchFilter- Returns:
- a new empty filter
-
isValidated
public boolean isValidated(String itemName, FilterItemComparator filterItemComparator, Object value, long matchKey, Identification identification, GeneMaps geneMaps, IdentificationFeaturesGenerator identificationFeaturesGenerator, IdentificationParameters identificationParameters, SequenceProvider sequenceProvider, ProteinDetailsProvider proteinDetailsProvider, SpectrumProvider spectrumProvider) Description copied from class:MatchFilterIndicates whether the match designated by the match key validates the given item using the given comparator and value threshold.- Specified by:
isValidatedin classMatchFilter- Parameters:
itemName- the name of the item to filter onfilterItemComparator- the comparator to usevalue- the value to use as a thresholdmatchKey- the key of the match of interestidentification- the identification objects where to get identification matches fromgeneMaps- the gene mapsidentificationFeaturesGenerator- the identification feature generator where to get identification featuresidentificationParameters- the identification parameters usedsequenceProvider- the protein sequence providerproteinDetailsProvider- the protein details providerspectrumProvider- the spectrum provider- Returns:
- a boolean indicating whether the match designated by the protein key validates the given item using the given comparator and value threshold.
-
getPossibleFilterItems
Description copied from class:MatchFilterReturns the filter items accepted by this filter.- Specified by:
getPossibleFilterItemsin classMatchFilter- Returns:
- the filter items accepted by this filter
-
getFilterItem
Description copied from class:MatchFilterReturns the filter item corresponding to the given name.- Specified by:
getFilterItemin classMatchFilter- Parameters:
itemName- the name of the filter item- Returns:
- the filter item corresponding to the given name
-