manzt / pygv

a minimal, scriptable genome browser for python
Apache License 2.0
48 stars 0 forks source link

[idea] Context API #2

Open manzt opened 6 months ago

manzt commented 6 months ago
with pygv.Config() as c:

    c.ref("hg19")
    c.locus("chr8:128,750,948-128,751,025")

    with c.track(url, index=".tbi") as t:
        t.name = "foo"
        t.sort(chr="chr8", position=128750986, option="BASE", direction="ASC")

c.browser()