Integration

From GenomeView Manual
Revision as of 17:09, 3 June 2014 by Thomas Admin (talk | contribs) (Undo revision 13010 by 78.38.101.2 (talk))
Jump to navigation Jump to search

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

Support for the applet version of GenomeView is currently on hold due to ever changing Java support from the various browser and OS vendors. It is impossible to maintain any semblance of stability. All of the material below may or may not work.

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.