Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs v2: Search Box #100

Open
manzt opened this issue Feb 21, 2023 · 1 comment
Open

docs v2: Search Box #100

manzt opened this issue Feb 21, 2023 · 1 comment

Comments

@manzt
Copy link
Member

manzt commented Feb 21, 2023

From the pior docs:

Search box
-----------

Views can have a search box which shows the current genomic position and lets users search for genes. In order for the current position to be shown, we need to pass in a chromsizes track. For gene search to be enabled, we have to pass in a gene annotations track:

chromosomes = Track(tilesetUid='N12wVGG9SPiTkk03yUayUw',
           server='https://higlass.io/api/v1',
           type='horizontal-chromosome-labels')
genes = Track(tilesetUid='OHJakQICQD6gTD7skx4EWA',
           server='https://higlass.io/api/v1',
           type='horizontal-gene-annotations')

(d,s,v) = higlass.display([
    View(
            [chromosomes, genes],
            chrominfo=chromosomes,
            geneinfo=genes,
        )
])
d
@manzt
Copy link
Member Author

manzt commented Feb 21, 2023

We don't currently have a utility API for setting up the geneinfo and chrominfo for the viewconf object. Should be easy enough to add some API that supports passing a tileset or track: e.g.,:

import higlass as hg

hg.view(...).viewconf().info(
  genes=tileset, # or track?
  chromosomes=tileset, # or track?
)

Thoughts, @nvictus ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant