Difference between revisions of "Integration"
Line 10: | Line 10: | ||
Very nice site! | Very nice site! | ||
− | + | Very nice site! | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Embedding GenomeView as an applet== | ==Embedding GenomeView as an applet== |
Revision as of 08:18, 20 May 2014
http://genomeview.org/content/integration
Other topics that may be of interest: <a href="/content/integrating-genomeview-editor">Integrating as editor</a> and <a href="/content/communicating-genomeview">Communicating with GenomeView</a>
This page tries to explain how to integrate GenomeView in your website with your data. You can either make it available through Java Webstart, or as an applet. Whenever possible we recommend using Java Web Start as it has better cross-platform and cross-browser support.
I loved your blog article. Really Cool. aaccddgedddgdaek
Very nice site!
Very nice site!
Embedding GenomeView as an applet
The key code that needs to be included in the body of your web page is:
<script type="text/javascript" src="http://www.java.com/js/deployJava.js"></script> <script type="text/javascript" src="http://genomeview.org/start/genomeview.js"></script> <script type="text/javascript"> var gv_url = null; var gv_config = 'http://genomeview.org/jsdemo/democonfig.txt'; var gv_extra = null; var gv_location = null; startGV(gv_url,gv_location,gv_config,gv_extra,500,400); </script>
The gv_url
can be used to pre-load a reference sequence. This file will be loaded first and only then will GenomeView proceed with loading additional data.
The configuration file you want to use, can be specified using the gv_config
option.
All other data that you want to have loaded can be specified in a space separated list in gv_extra
. These data sets will be loaded in parallel.
The location that will initially be visible, can be set by gv_location
. The position is in the format <entry>:<start position>:<end position> The entry part is optional can be omitted in which case it becomes <start position>:<end position>
Note: we strongly recommend you use the genomeview.js we provide as that's the one we keep up to date with progressing releases.