Documentation
¶
Index ¶
- func ConnectDB() (*sqlx.DB, error)
- func GetDNA(pathways []pathdata, levels int) (map[string][]DNA, error)
- func GetTotalPathways(target_molecule string, levels int) ([]pathdata, error)
- func LoadSQLFile(path string) (string, error)
- func NameToId(name string) (int, error)
- func OrganismFilteredPathways(GBOrganism string, target_molecule string, levels int) ([]pathdata, error)
- type DNA
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTotalPathways ¶
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 ¶
Reads and loads SQL files as string
Types ¶
Click to show internal directories.
Click to hide internal directories.