public class GoMapping extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SEPARATOR
The separator used to separate line contents.
|
Constructor and Description |
---|
GoMapping()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
HashSet<String> |
getGoAccessions(String proteinAccession)
Returns the GO accessions linked to a given protein accession.
|
HashMap<String,String> |
getGoNamesMap()
Returns the GO accession to name map.
|
HashMap<String,HashSet<String>> |
getGoToProteinMap()
Returns the GO to protein accession map.
|
HashSet<String> |
getProteinAccessions(String goTermAccession)
Returns the protein accessions linked to a given GO term.
|
HashMap<String,HashSet<String>> |
getProteinToGoMap()
Returns the protein to GO accession map.
|
ArrayList<String> |
getSortedTermNames()
Returns a sorted list of all GO Terms names linked to proteins in the
proteinToGoMap.
|
String |
getTermAccession(String goName)
Returns the accession of a GO term.
|
String |
getTermName(String goAccession)
Returns the name of a GO term.
|
void |
loadMappingsFromFile(File file,
WaitingHandler waitingHandler)
Reads go mappings from a BioMart file.
|
public static final String SEPARATOR
public void loadMappingsFromFile(File file, WaitingHandler waitingHandler) throws IOException
file
- the file containing the GO mappingwaitingHandler
- a waiting handler allowing canceling of the
process.IOException
- if an exception occurs while reading the filepublic HashSet<String> getGoAccessions(String proteinAccession)
proteinAccession
- the accession of the protein of interestpublic HashSet<String> getProteinAccessions(String goTermAccession)
goTermAccession
- the accession of the GO termpublic String getTermName(String goAccession)
goAccession
- the accession number of the GO term of interestpublic String getTermAccession(String goName)
goName
- the name of the GO term of interestpublic HashMap<String,String> getGoNamesMap()
public HashMap<String,HashSet<String>> getProteinToGoMap()
public HashMap<String,HashSet<String>> getGoToProteinMap()
Copyright © 2016. All rights reserved.