Difference between revisions of "Integration"

From GenomeView Manual
Jump to navigation Jump to search
(Undo revision 13010 by 78.38.101.2 (talk))
(Undo revision 13008 by 118.174.199.77 (talk))
Line 10: Line 10:
 
Very nice site!
 
Very nice site!
  
Very nice site!
+
==Present your data through a Java Web Start session (recommended)==
 +
A [[session file]] is a text file that contains instructions for GenomeView on which data to load and how to configure itself.
 +
 
 +
The basic set-up to start GenomeView with a [[session file]] is
 +
<nowiki>http://genomeview.org/start/launch.jnlp?--session <URL to the session file></nowiki>
 +
 
 +
 
 +
For example
 +
[http://genomeview.org/start/launch.jnlp?--session%20http://www.broadinstitute.org/software/genomeview/genomes/mtb_h37rv_v2/session.php http://genomeview.org/start/launch.jnlp?--session http://www.broadinstitute.org/software/genomeview/genomes/mtb_h37rv_v2/session.php]
  
 
==Embedding GenomeView as an applet==
 
==Embedding GenomeView as an applet==

Revision as of 17:09, 3 June 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!

Present your data through a Java Web Start session (recommended)

A session file is a text file that contains instructions for GenomeView on which data to load and how to configure itself.

The basic set-up to start GenomeView with a session file is

http://genomeview.org/start/launch.jnlp?--session <URL to the session file>


For example http://genomeview.org/start/launch.jnlp?--session http://www.broadinstitute.org/software/genomeview/genomes/mtb_h37rv_v2/session.php

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.