//GetTotalPathways but limited to a single organism
GetTotalPathways but limited to a single organism
// GetTotalPathways but limited to a single organism
func OrganismFilteredPathways(GBOrganism string, target_molecule string, levels int) ([]pathdata, error) {
	query, err := LoadSQLFile("./queries/organism_filtered_pathways.sql")
	if err != nil {
		return nil, err
	}
	db, err := ConnectDB()
	if err != nil {
		return nil, err
	}
	target_id, err := NameToId(target_molecule)
	if err != nil {
		return nil, err
	}
	result := []pathdata{}
	err = db.Select(&result, query, GBOrganism, target_id, levels)
	if err != nil {
		return result, err
	}
	db.Close()
	return result, err
}
func OrganismFilteredPathways ( GBOrganism string , target_molecule string , levels int ) ( [ ] pathdata , error ) { query , err := LoadSQLFile ( " " ) if err != nil { return nil , err } db , err := ConnectDB ( ) if err != nil { return nil , err } target_id , err := NameToId ( target_molecule ) if err != nil { return nil , err } result := [ ] pathdata { } err = db . Select ( & result , query , GBOrganism , target_id , levels ) if err != nil { return result , err } db . Close ( ) return result , err }
GetTotalPathways but limited to a single organism
GetTotalPathways but limited to a single organism