Difference between revisions of "Integration"

From GenomeView Manual
Jump to navigation Jump to search
m (Reverted edits by Thomas Admin (talk) to last revision by 78.38.101.2)
(Undo revision 13010 by 78.38.101.2 (talk))
Line 12: Line 12:
 
Very nice site!
 
Very nice site!
  
Very nice site!
+
==Embedding GenomeView as an applet==
 +
<div style="color:red">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.</div>
 +
 
 +
The key code that needs to be included in the body of your web page is:
 +
 
 +
<pre>
 +
&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.java.com/js/deployJava.js&quot;&gt;&lt;/script&gt;
 +
&lt;script type=&quot;text/javascript&quot; src=&quot;http://genomeview.org/start/genomeview.js&quot;&gt;&lt;/script&gt;
 +
 
 +
&lt;script type=&quot;text/javascript&quot;&gt;
 +
    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);
 +
&lt;/script&gt;
 +
</pre>
 +
 
 +
<p>The <code>gv_url</code> 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.
 +
 
 +
<p>The configuration file you want to use, can be specified using the <code>gv_config</code> option.
 +
 
 +
<p>All other data that you want to have loaded can be specified in a space separated list in <code>gv_extra</code>. These data sets will be loaded in parallel.
 +
 
 +
<p>The location that will initially be visible, can be set by <code>gv_location</code>. The position is in the format &lt;entry&gt;:&lt;start position&gt;:&lt;end position&gt; The entry part is optional can be omitted in which case it becomes &lt;start position&gt;:&lt;end position&gt;
 +
 
 +
<p><em>Note: we strongly recommend you use the genomeview.js we provide as that's the one we keep up to date with progressing releases.</em>

Revision as of 16: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!

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.