public class GoDomains extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SEPARATOR
The separator used to separate line contents.
|
| Constructor and Description |
|---|
GoDomains()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDomain(String goAccession,
String goDomain)
Adds a go domain to the mapping.
|
String |
getTermDomain(String goAccession)
Returns the description of a GO term.
|
void |
laodMappingFromFile(File file,
WaitingHandler waitingHandler)
Reads go mappings from a file.
|
void |
saveMapping(File destinationFile)
Saves the mapping to the given file.
|
public static final String SEPARATOR
public void laodMappingFromFile(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 String getTermDomain(String goAccession)
goAccession - the accession number of the GO term of interestpublic void addDomain(String goAccession, String goDomain)
goAccession - the accession of the GO termgoDomain - the domain of the GO termpublic void saveMapping(File destinationFile) throws IOException
destinationFile - the destination fileIOException - exception thrown whenever an error occurred while
writing the fileCopyright © 2016. All rights reserved.