Class GeneMaps
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.biology.genes.GeneMaps
- All Implemented Interfaces:
Serializable
The gene maps for a given project.
- Author:
- Marc Vaudel, Harald Barsnes
- See Also:
-
Field Summary
Fields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChromosome(String geneName) Returns the chromosome corresponding to a given gene name.getEnsemblId(String geneName) Returns the Ensembl ID corresponding to the given gene name.Returns the Ensembl version map.Returns the gene name to chromosome map.Returns the gene name to Ensembl ID map.getGoAccession(String goName) Returns the GO Term accession corresponding to the given name.Returns the GO to protein accession map.getGoNamesForProtein(String proteinAccession) Returns the go terms names for a protein accession.Returns the GO accession to names map.getGoTermsForProtein(String proteinAccession) Returns the go terms accessions for a protein accession.getNameForGoTerm(String goAccession) Returns the name of a GO term.getProteinsForGoTerm(String goAccession) Returns the protein accessions for a GO accession.Returns the protein to GO terms accession map.booleanIndicates whether the GO maps are populated.voidimportMaps(GeneMapping geneMapping) Imports the gene maps from a gene Mapping.voidsetEnsemblVersionsMap(HashMap<String, String> ensemblVersionsMap) Sets the Ensembl version map.voidsetGeneNameToChromosomeMap(HashMap<String, String> geneNameToChromosomeMap) Sets the gene name to chromosome map.voidsetGeneNameToEnsemblIdMap(HashMap<String, String> geneNameToEnsemblIdMap) Sets the gene name to Ensembl ID map.voidsetGoAccessionToProteinMap(HashMap<String, HashSet<String>> goAccessionToProteinMap) Sets the GO to protein accession map.voidsetGoNamesMap(HashMap<String, String> goNamesMap) Sets the GO accession to names map.voidImports the GO maps from a GO mapping.voidsetProteinToGoMap(HashMap<String, HashSet<String>> proteinToGoMap) Sets the protein to GO terms accession map.Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Constructor Details
-
GeneMaps
public GeneMaps()Creates new maps.
-
-
Method Details
-
importMaps
Imports the gene maps from a gene Mapping.- Parameters:
geneMapping- a gene mapping
-
setMaps
Imports the GO maps from a GO mapping.- Parameters:
goMapping- a go mapping
-
getEnsemblVersionsMap
Returns the Ensembl version map.- Returns:
- the Ensembl version map
-
setEnsemblVersionsMap
Sets the Ensembl version map.- Parameters:
ensemblVersionsMap- the Ensembl version map
-
getGeneNameToEnsemblIdMap
Returns the gene name to Ensembl ID map.- Returns:
- the gene name to Ensembl ID map
-
setGeneNameToEnsemblIdMap
Sets the gene name to Ensembl ID map.- Parameters:
geneNameToEnsemblIdMap- the gene name to Ensembl ID map
-
getGeneNameToChromosomeMap
Returns the gene name to chromosome map.- Returns:
- the gene name to chromosome map
-
setGeneNameToChromosomeMap
Sets the gene name to chromosome map.- Parameters:
geneNameToChromosomeMap- the gene name to chromosome map
-
getProteinToGoMap
Returns the protein to GO terms accession map.- Returns:
- the protein to GO terms accession map
-
setProteinToGoMap
Sets the protein to GO terms accession map.- Parameters:
proteinToGoMap- the protein to GO terms accession map
-
getGoAccessionToProteinMap
Returns the GO to protein accession map.- Returns:
- the GO to protein accession map
-
setGoAccessionToProteinMap
Sets the GO to protein accession map.- Parameters:
goAccessionToProteinMap- the GO to protein accession map
-
getGoNamesMap
Returns the GO accession to names map.- Returns:
- the GO accession to names map
-
setGoNamesMap
Sets the GO accession to names map.- Parameters:
goNamesMap- the GO accession to names map
-
getEnsemblId
Returns the Ensembl ID corresponding to the given gene name. Null if not found.- Parameters:
geneName- a gene name- Returns:
- the corresponding Ensembl ID
-
getChromosome
Returns the chromosome corresponding to a given gene name.- Parameters:
geneName- the gene name- Returns:
- the chromosome name
-
getGoTermsForProtein
Returns the go terms accessions for a protein accession. Null if not found.- Parameters:
proteinAccession- a protein accession- Returns:
- the go terms names
-
getProteinsForGoTerm
Returns the protein accessions for a GO accession. Null if not found.- Parameters:
goAccession- a GO term accession- Returns:
- the corresponding proteins
-
getNameForGoTerm
Returns the name of a GO term.- Parameters:
goAccession- the accession of the GO term.- Returns:
- the name of a GO term
-
getGoAccession
Returns the GO Term accession corresponding to the given name. Null if not found.- Parameters:
goName- the GO name- Returns:
- the corresponding accession
-
getGoNamesForProtein
Returns the go terms names for a protein accession. Null if not found.- Parameters:
proteinAccession- a protein accession- Returns:
- the go terms names
-
hasGoMappings
public boolean hasGoMappings()Indicates whether the GO maps are populated.- Returns:
- a boolean indicating whether the GO maps are populated
-