GO-EXPORT-GRAPH(1p)

πŸ“¦
version 0.15 Β· 2 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 πŸ’…

  • -w EXPORT_FORMAT β€” sets the export format. pick one of text, obo or png. 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_cache writes a whole extra .cache file 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