Class GeneParameters
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.parameters.identification.advanced.GeneParameters
- All Implemented Interfaces:
Serializable
Contains methods for downloading gene and GO mappings.
- Author:
- Harald Barsnes, Marc Vaudel
- See Also:
-
Field Summary
Fields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new GenePreferences object.GeneParameters(GeneParameters genePreferences) Creates new gene preferences based on a GenePreferences object. -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(GeneParameters genePreferences) Compares these preferences to other preferences.Indicates whether the gene mappings should be automatically updated.Returns the Latin name of the species selected as background species.Returns a short description of the parameters.Returns a boolean indicating whether gene mappings should be used.voidsetAutoUpdate(Boolean autoUpdate) Sets whether the gene mappings should be automatically updated.voidsetBackgroundSpecies(String selectedBackgroundSpecies) Sets the taxon of the species selected as background species.voidsetBackgroundSpeciesFromFastaSummary(FastaSummary fastaSummary) Set the background species to the most common species in the FASTA file.voidsetUseGeneMapping(Boolean useGeneMapping) Sets whether gene mappings should be used.Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Constructor Details
-
GeneParameters
public GeneParameters()Create a new GenePreferences object. -
GeneParameters
Creates new gene preferences based on a GenePreferences object.- Parameters:
genePreferences- the gene preferences
-
-
Method Details
-
getUseGeneMapping
Returns a boolean indicating whether gene mappings should be used.- Returns:
- a boolean indicating whether gene mappings should be used
-
setUseGeneMapping
Sets whether gene mappings should be used.- Parameters:
useGeneMapping- a boolean indicating whether gene mappings should be used
-
getAutoUpdate
Indicates whether the gene mappings should be automatically updated.- Returns:
- a boolean indicating whether the gene mappings should be automatically updated
-
setAutoUpdate
Sets whether the gene mappings should be automatically updated.- Parameters:
autoUpdate- a boolean indicating whether the gene mappings should be automatically updated
-
equals
Compares these preferences to other preferences.- Parameters:
genePreferences- other preferences to compare to.- Returns:
- a boolean indicating whether the other preferences are the same as these ones.
-
getBackgroundSpecies
Returns the Latin name of the species selected as background species.- Returns:
- the Latin name of the species selected as background species
-
setBackgroundSpecies
Sets the taxon of the species selected as background species.- Parameters:
selectedBackgroundSpecies- the Latin name of the species selected as background species
-
setBackgroundSpeciesFromFastaSummary
Set the background species to the most common species in the FASTA file.- Parameters:
fastaSummary- the FASTA summary
-
getShortDescription
Returns a short description of the parameters.- Returns:
- a short description of the parameters
-