Documentation
¶
Overview ¶
Package go-obograph is a golang library for handling OBO Graphs https://github.com/geneontology/obographs . It provides API for the following...
- Read JSON formatted OBO Graph file.
- Build an in memory and read only graph structure for extracting information.
- Persist the graph structure in arangodb database.
Example of a command line application to store OBO Graph in arangodb database
import (
"bufio"
"context"
"errors"
"fmt"
"log"
"os"
oboaction "github.com/dictyBase/go-obograph/command/action"
oboflag "github.com/dictyBase/go-obograph/command/flag"
"github.com/urfave/cli"
)
func main() {
app := cli.NewApp()
app.Name = "test cli for load obojson format file in arangodb"
app.Flags = []cli.Flag{
cli.StringFlag{
Name: "log-format",
Usage: "format of the logging out, either of json or text.",
Value: "json",
},
cli.StringFlag{
Name: "log-level",
Usage: "log level for the application",
Value: "error",
},
oboflag.OntologyFlags()...,
}
app.Action = oboaction.LoadOntologies
if err := app.Run(os.Args); err != nil {
log.Fatalf("error in running command %s", err)
}
}
Directories
¶
| Path | Synopsis |
|---|---|
|
command
|
|
|
Package graph provides primitives for building and accessing OBO Graphs(graph oriented ontology).
|
Package graph provides primitives for building and accessing OBO Graphs(graph oriented ontology). |
|
Package model provides various models for structuring extra information about terms, relationships and graphs in the OBO Graph.
|
Package model provides various models for structuring extra information about terms, relationships and graphs in the OBO Graph. |
|
Package schema provides type definitions for decoding OBO Graphs in JSON format
|
Package schema provides type definitions for decoding OBO Graphs in JSON format |
|
Package storage provides type definition for managing OBO graphs in a persistent storage
|
Package storage provides type definition for managing OBO graphs in a persistent storage |
Click to show internal directories.
Click to hide internal directories.