GENOME LINK SDK, implemented in Go
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
v1
.gitignore
Gopkg.lock
Gopkg.toml
LICENSE
README.md

README.md

GENOME LINK Go

Go Documentation

GENOME LINK SDK, implemented in Go

Install

$ go get -u github.com/ikasamah/genomelink-go

Usage

import "github.com/ikasamah/genomelink-go/v1"

ctx := context.Background()
cli := genomelink.DefaultClient(ctx, "<YOUR_TOKEN>")

report, _ := cli.Report(ctx, genomelink.PhenotypeNameGeneticEyeColor, genomelink.PopulationEuropean)

fmt.Println(report.Summary.Text) // Tend to not have brown eyes

Run example

$ go run $GOPATH/src/github.com/ikasamah/genomelink-go/example/main.go
Report: Genetic eye color, 0, Tend to not have brown eyes
Sequence: "CACTAAGCACACAGAGAATAATGTCTAGAATCTGAGTGCCATGTTATCAAATTGTA..."

OAuth Example

See Official Document first, and register your app.

Run following.

$ go run $GOPATH/src/github.com/ikasamah/genomelink-go/example/oauth.go -client_id <CLIENT_ID> -client_secret <CLIENT_SECRET>

Then, access http://localhost:8080/ and click auth link to get your personal token.