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

Example added for searching using higlass-python #139

Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions docs/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,45 @@ or loading an existing view config via URL to access a sub-track:
# }




Add Genome Position SearchBox
-------------------



.. code-block:: python

import higlass as hg
search_box_obj = hg.GenomePositionSearchBox(
autocompleteServer="//higlass.io/api/v1",
autocompleteId="OHJakQICQD6gTD7skx4EWA",
chromInfoId="hg19",
chromInfoServer="//higlass.io/api/v1",
visible=True)

mm10 = hg.remote(
uid="QDutvmyiSrec5nX4pA5WGQ",
server="//higlass.io/api/v1",
)

view1 = hg.view(

mm10.track("gene-annotations",height=150).opts(
minHeight = 24,
),
genomePositionSearchBox = search
)

#In order to get access to track sources from higlass.io data sources
list_of_track_source_servers = [
"//higlass.io/api/v1",
"https://resgen.io/api/v1/gt/paper-data"
]

view1.viewconf(trackSourceServers = list_of_track_source_servers, exportViewUrl = "/api/v1/viewconfs")
smitkadvani marked this conversation as resolved.
Show resolved Hide resolved


View extent
-----------

Expand Down