public class OBOParser extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
IGNORE_SYNONYMS
Ignore synonyms
|
static int |
PARSE_DEFINITIONS
Flag to keep the definitions
|
static int |
PARSE_INTERSECTIONS
Flag to keep the intersections
|
static int |
PARSE_XREFS
Flag to keep the xrefs
|
static int |
SETNAMEEQUALTOID
Takes the id as name, if the name is not present
|
| Constructor and Description |
|---|
OBOParser(IParserInput input)
Construct an obo parser.
|
OBOParser(IParserInput input,
int options)
Constructs an obo parser for a particular input.
|
| Modifier and Type | Method and Description |
|---|---|
String |
doParse()
The main parsing routine for the gene_ontology.obo file
|
String |
doParse(IOBOParserProgress progress)
The main parsing routine for the gene_ontology.obo file
|
ByteString |
getDataVersion() |
ByteString |
getDate() |
ByteString |
getFormatVersion() |
Set<Term> |
getTermMap() |
public static final int PARSE_DEFINITIONS
public static final int PARSE_XREFS
public static final int PARSE_INTERSECTIONS
public static final int SETNAMEEQUALTOID
public static final int IGNORE_SYNONYMS
public OBOParser(IParserInput input)
input - defines the input wrapping the stanza filepublic OBOParser(IParserInput input, int options)
input - defines the input wrapping the stanza filesoptions - defines some options.public String doParse() throws IOException, OBOParserException
OBOParserExceptionIOExceptionpublic String doParse(IOBOParserProgress progress) throws IOException, OBOParserException
progress - OBOParserExceptionIOExceptionpublic ByteString getFormatVersion()
public ByteString getDate()
public ByteString getDataVersion()
Copyright © 2017. All rights reserved.