goobograph

package module
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2021 License: BSD-2-Clause Imports: 0 Imported by: 0

README

go-obograph

License
GitHub action Library documentation codecov
Maintainability Last commit
Funding Funding

A golang library for handling OBO Graphs

Misc badges

Technical debt Issues Issues Open Issues Closed Issues
Total PRS Open PRS Closed PRS Merged PRS
Commits Branches Tags
GitHub repo size GitHub code size in bytes Lines of Code

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL