GO-EXPORT-GRAPH(1p)
π GO-EXPORT-GRAPH(1p) β aka go-export-graph.pl π
okay bestie, buckle up, because this little script is literally the β¨ graph exporter β¨ of your dreams. it's a User Contributed Perl situation, and no cap, it just... exports a graph. that's the whole vibe.
π NAME π
go-export-graph.pl β exports a graph. yes that's it, that's the name, short and iconic, ate and left no crumbs π
β¨ SYNOPSIS β¨
go-export-graph.pl -w png ontology/gene_ontology.obo | display -
go-export-graph.pl ontology/gene_ontology.obo 'acc' GO:0007610
go-export-graph.pl ontology/so.obo 'name' 'protein'
look at her go π three whole ways to run it, all of them gorgeous.
π¦ DESCRIPTION π¦
so what does it actually do? it exports a graph as an indented ascii tree, PNG or OBO file. that's the tea π β three formats, one tiny script, main character energy fr fr.
πΈ ARGUMENTS πΈ
after the file name you can optionally specify query constraint pairs π like, you name a field and you give it a value, and the script filters on it. eg:
acc GO:0007610
name 'cysteine biosynthesis'
so it's <italic>field</italic> <italic>value</italic>, in pairs, and yes you can just keep going with them. so flexible of her π«Ά
π OPTIONS π
-wEXPORT_FORMAT β sets the export format. pick one oftext,oboorpng. that's the whole menu, no secret items, no hidden DLC π
π§ -use_cache π§
If this switch is specified, then caching mode is turned on. yes bestie, caching mode, it's giving speed β¨
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. so like, something.obo gets a lil something.obo.cache bestie hanging out next to it π
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. it literally checks the vibe (timestamps) and either reuses the cache or rebuilds it, no drama, no cap π₯
π DOCUMENTATION π
http://www.godatabase.org/dev β go read, iykyk π
π SEE ALSO π
go2fmt.plβ her sibling, also doing format things, obsessed π¦
quick reminder bestie:-use_cachewrites a whole extra.cachefile next to your original, so don't be surprised when a new file appears like "hi π" β that's just the cache doing its thing.
and that's the whole manual, periodt π written by the perl girlies, perl v5.36.0, dated 2023-12-18, documented as GO-EXPORT-GRAPH(1p) under User Contributed Perl Documentation. slay, go export a graph, you got this πβ¨π
π¦ 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