cytoscape.data.ontology.readers
Class OBOFlatFileReader
java.lang.Object
cytoscape.data.ontology.readers.OBOFlatFileReader
- All Implemented Interfaces:
- OntologyReader
public class OBOFlatFileReader
- extends Object
- implements OntologyReader
OBO file reader.
This is a general OBO (Open Biomedical Ontologies:
http://obo.sourceforge.net/) flatfile reader.
In Cytoscape, This will be used mainly for reading gene ontology. However, it
is compatible with all files written in OBO format.
OBO files are available at:
http://obo.sourceforge.net/cgi-bin/table.cgi
- Since:
- Cytoscape 2.4
- Version:
- 0.7
- Author:
- Keiichiro Ono
ONTOLOGY_DAG_ROOT
public static final String ONTOLOGY_DAG_ROOT
- See Also:
- Constant Field Values
OBO_PREFIX
public static final String OBO_PREFIX
- See Also:
- Constant Field Values
OBOFlatFileReader
public OBOFlatFileReader(String fileName,
String name)
throws FileNotFoundException
- Parameters:
fileName
-
- Throws:
FileNotFoundException
OBOFlatFileReader
public OBOFlatFileReader(URL dataSource,
String name)
throws IOException
- Parameters:
dataSource
-
- Throws:
IOException
OBOFlatFileReader
public OBOFlatFileReader(InputStream oboStream,
String name)
- Parameters:
oboStream
- name
-
readOntology
public void readOntology()
throws IOException
- Specified by:
readOntology
in interface OntologyReader
- Throws:
IOException
getHeader
public Map<String,String> getHeader()
- Specified by:
getHeader
in interface OntologyReader
getTermsAttributes
public CyAttributes getTermsAttributes()
getDag
public CyNetwork getDag()
- Specified by:
getDag
in interface OntologyReader