URL query parameters in JBrowse2
1
0
Entering edit mode
14 months ago
alslonik ▴ 320

I would like to present a jbrowse2 linear view of two reference sequences side by side and not quite sure how to do it via url query parameters or via config.json. I want a simple linear genome view for two orthologous sequences in two species, that I will be able to link to it, from my database website. Is it possible?

JBrowse2 • 794 views
ADD COMMENT
2
Entering edit mode
14 months ago
alslonik ▴ 320

Posting here the answer I received on Jbrowse2 Github for the sake of those who will need the same:

There are a couple options for this in jbrowse 2 it is actually a bit hard to present two different species "side by side" you can do it as "top and bottom" though relatively easily

you can either

a) use two different linear genome views, showing two different assemblies b) use a single synteny view, showing the two different assemblies

here is an example of (a) using just two linear genome views

https://jbrowse.org/code/jb2/main/?config=test_data%2Fconfig_demo.json&session=spec-{"views":[{"assembly":"hg19","loc":"17:41,196,294..41,277,363","type":"LinearGenomeView","tracks":["ncbi_gff_hg19"]},{"assembly":"hg38","loc":"17:43,044,294..43,125,363","type":"LinearGenomeView","tracks":["ncbi_refseq_109_hg38_latest"]}]}

here is an example of (b) using the synteny view

https://jbrowse.org/code/jb2/main/?config=test_data%2Fconfig_demo.json&session=spec-{"views":[{"type":"LinearSyntenyView","tracks":["hg19ToHg38.over.chain.gz-1645073157673"],"views":[{"assembly":"hg19","loc":"17:41,196,294..41,277,363","type":"LinearGenomeView","tracks":["ncbi_gff_hg19"]},{"assembly":"hg38","loc":"17:43,044,294..43,125,363","type":"LinearGenomeView","tracks":["ncbi_refseq_109_hg38_latest"]}]}]}

more info on the url prams here https://jbrowse.org/jb2/docs/urlparams/

you can also in some cases use a gene name in the &loc= paramter if you added text indexing, but hope this helps.

note that these url parameters are not available if you use embedded.

ADD COMMENT

Login before adding your answer.

Traffic: 3848 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6