GO2FMT(1p)
๐ NAME ๐
okay bestie, welcome to the GO2FMT(1p) manual! this is all about go2fmt, go2obo_xml, go2owl, go2rdf_xml, and go2obo_text โ a conversion tool and its wrappers. periodt. โจ
๐ SYNOPSIS ๐
go2fmt.pl -w obo_xml -e errlog.xml ontology/*.ontology
go2fmt.pl -w obo_xml -e errlog.xml ontology/gene_ontology.obo
๐ DESCRIPTION ๐
okay so it parses any GO/OBO style ontology file and writes out as a different format. slay. ๐
๐ง ARGUMENTS ๐ง
-eERRFILE โ writes parse errors in XML. defaults toSTDERR(there should be no parse errors in well formed files, no cap).-pFORMAT โ determines which parser to use; if left unspecified, it will make a guess based on file suffix. see below for formats. ๐-w|writerFORMAT โ format for output โ see below for list.-|xsltXSLT โ the name or filename of an XSLT transform.
this can either be an absolute path to a file anywhere on the filesystem, or it can just be the name of the xslt; eg
go2fmt.pl -xslt oboxml_to_owl go.obo
if the name is specified, then first of all $GO_ROOT/xml/xsl/*.xsl will be searched; if GO_ROOT is not set, then the perl modules dir where GO is installed will be searched (the xslts will be installed here automatically if you follow the normal install process). ๐
๐พ -use_cache ๐พ
if this switch is specified, then caching mode is turned on. ๐ฅ
with caching mode, the first time you parse a file, then an additional file will be exported in a special format that is fast to parse. this file will have the same filename as the original file, except it will have the ".cache" suffix.
the next time you parse the file, this program will automatically check for the existence of the ".cache" file. if it exists, and is more recent than the file you specified, this is parsed instead. if it does not exist, it is rebuilt.
this will bring a speed improvement for some of the output formats below (such as pathlist). most output formats work with event-based parsing, so caching the object brings no benefit and will in fact be slower than bypassing the cache. ๐ญ
๐ฎ FORMATS ๐ฎ
writable formats are:
go_ontโ files with suffix".ontology". these store the ontology DAGs.go_defโ files with suffix".defs".go_xrefโ external database references for GO terms. files with suffix"2go"(egec2go,metacyc2go).go_assocโ annotations of genes or gene products using GO. files with prefix"gene-association.".obo_textโ files with suffix".obo". this is a new file format replacement for the existing GO flat file formats. it handles ontologies, definitions and xrefs (but not associations).obo_xmlโ files with suffix".obo.xml"or".obo-xml". this is the XML version of the OBO flat file format above.prologโ prolog facts โ you will need a prolog compiler/interpreter to use these. you can reason over these facts usingObolor the forthcomingBio-LPproject.tblโ simple (lossy) tabular representation.summaryโ can be used on both ontology files and association files.pathlistโ shows all paths to the root.owlโ OWL format (default: OWL-DL).- OWL is a W3C standard format for ontologies.
- you will need the XSL files from the full go-dev distribution to run this; see the XML section in <http://www.godatabase.org/dev>.
obj_yamlโ a YAML representation of aGO::Model::Graphobject.obj_storableโ a dump of the perlGO::Model::Graphobject. you needStorablefrom CPAN for this to work. this is intended to cache objects on the filesystem, for fast access. theobj_storablerepresentation may not be portable. ๐text_htmlโ a html-ified OBO output format.godb_prestoreโ XML that maps directly to the GODB relational schema (can then be loaded usingstag-storenode.pl).chadodb_prestoreโ XML that maps directly to the Chado relational schema (can then be loaded usingstag-storenode.pl).
๐ DOCUMENTATION ๐
okay bestie, the docs are at <http://www.godatabase.org/dev>. go off. ๐
๐ and that's the whole manual! this page came from perl v5.36.0, dated 2023-12-18, and it's the GO2FMT(1p) manual. mwah! โจ๐
๐ฆ where this page comes from
- debian trixie: libgo-perl 0.15-10 ยท Perl
- ubuntu noble: libgo-perl 0.15-10 ยท Perl
- ubuntu resolute: libgo-perl 0.15-10 ยท Perl
- ubuntu stonking: libgo-perl 0.15-10 ยท Perl
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms