Skip to content

Commit 80034e2

Browse files
authored
Example added for searching using higlass-python (#139)
* Example added for searching using higlass-python * Syntax updated * Update getting_started.rst * Update getting_started.rst - typo corrected
1 parent 993fb1f commit 80034e2

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

docs/getting_started.rst

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,44 @@ or loading an existing view config via URL to access a sub-track:
182182
# }
183183
184184
185+
186+
187+
Add Genome Position SearchBox
188+
-------------------
189+
190+
191+
192+
.. code-block:: python
193+
194+
import higlass as hg
195+
196+
mm10 = hg.remote(
197+
uid="QDutvmyiSrec5nX4pA5WGQ",
198+
server="//higlass.io/api/v1",
199+
)
200+
201+
view1 = hg.view(
202+
203+
mm10.track("gene-annotations",height=150).opts(
204+
minHeight = 24,
205+
),
206+
genomePositionSearchBox = hg.GenomePositionSearchBox(
207+
autocompleteServer="//higlass.io/api/v1",
208+
autocompleteId="OHJakQICQD6gTD7skx4EWA",
209+
chromInfoId="hg19",
210+
chromInfoServer="//higlass.io/api/v1",
211+
visible=True)
212+
)
213+
214+
#In order to get access to track sources from higlass.io data sources
215+
list_of_track_source_servers = [
216+
"//higlass.io/api/v1",
217+
"https://resgen.io/api/v1/gt/paper-data"
218+
]
219+
220+
view1.viewconf(trackSourceServers = list_of_track_source_servers, exportViewUrl = "/api/v1/viewconfs")
221+
222+
185223
View extent
186224
-----------
187225

0 commit comments

Comments
 (0)