Visualize multiple variants following example code

18 views
Skip to first unread message

maver...@gmail.com

unread,
Jul 24, 2020, 11:54:54 AM7/24/20
to GenomePaint and ProteinPaint
Hi there, I was trying to embed proteinpaint into my web appp and visualize multiple variants. 

Thanks Xin for directing me to the online example (https://proteinpaint.stjude.org/examples/ds.mset.html). As I followed the tutorial, I can replicate the example, however, it did not display correctly for other genes in my case.

The js files was added as below
Screenshot_1.png

The example code works well:
Screenshot_2.png

But my code doesn't work with wrong display
Screenshot_3.png
Screenshot_4.png

the map.get(g) seems to be correct
Screenshot_5.png

Did I miss something there? 

Xin Zhou

unread,
Jul 24, 2020, 12:53:08 PM7/24/20
to GenomePaint and ProteinPaint
Could you remove the `block:true` and try it?

When `block` is set to true, it will show the genome browser view but not the gene view.

Xin

maver...@gmail.com

unread,
Jul 24, 2020, 1:08:03 PM7/24/20
to GenomePaint and ProteinPaint
Thanks! Removed block=true, display changed a bit, but the variant is not shown. screenshot and error msg attached as below.

Thanks for the help.


Screenshot_6.pngScreenshot_7.png


maver...@gmail.com

unread,
Jul 24, 2020, 1:10:30 PM7/24/20
to GenomePaint and ProteinPaint
Oops, I made a typo "dit" instead of "dt". Now it works.

Thanks a lot. This is a very useful feature for my case.

Xin Zhou

unread,
Jul 24, 2020, 1:25:34 PM7/24/20
to GenomePaint and ProteinPaint
OK great! Let us know any other issues.

Xin

Reply all
Reply to author
Forward
0 new messages