pathways

package
v0.0.0-...-9621b0d Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDB

func ConnectDB() (*sqlx.DB, error)

Easy database connector

func GetDNA

func GetDNA(pathways []pathdata, levels int) (map[string][]DNA, error)

func GetTotalPathways

func GetTotalPathways(target_molecule string, levels int) ([]pathdata, error)

Recursively searches throughout the database and fetches the pathways that lead to your target compound. This query excludes any compound that occurs more than 100 times in nodes. That parameter can change, but once we start including things like NADPH, ATP, H2O, we step into combinatorial explosions. id_path shows you the chain of equations starting from the top, and path shows you the actual compoounds that build up a path, which is usually just the most significant reactants and products.

func LoadSQLFile

func LoadSQLFile(path string) (string, error)

Reads and loads SQL files as string

func NameToId

func NameToId(name string) (int, error)

Gets id from compound name if it exists in ark

func OrganismFilteredPathways

func OrganismFilteredPathways(GBOrganism string, target_molecule string, levels int) ([]pathdata, error)

GetTotalPathways but limited to a single organism

Types

type DNA

type DNA struct {
	Id                         int
	Sequence, Seqhash, Genbank string
}

Jump to

Keyboard shortcuts

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