File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments