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.
To present your data in GenomeView optimally, there are a number of things you have to keep in mind.
Please follow the recommendation in the recommended file formats page.
You will want to <a href="/content/preparing-fasta-files">index your reference sequence</a> to reduce loading times.
You may want to index annotation files, but this is not recommended unless they are over 10 Mb when compressed with gzip because you will loose structural information.
To load an indexed file, you point GenomeView to the main file and GenomeView will try to find the index by itself.
<p>GenomeView supports GZIP compression transparently on all non-indexed file formats, i.e. compression and indexing are mutually exclusive. However as part of the indexing process, many file formats will be compressed.
<p>Short read data <p>Depending on what information you want to get out of the visualization, there are basically two ways to load short read data. The first one is the <a href="/content/short-read-track">Short Read Track</a> which will give you a detailed view with all individual reads. The second one is the <a href="/content/pile-track">Pile up track</a> which will give a more of a summary view/ coverage plot based on your sequence reads.
<p><a href="/content/preparing-short-read-alignments">Instructions to prepare data for the short read track</a>
<p><a href="/content/preparing-pileup">Instructions to prepare data for the pile up track</a>
The fastest and simplest way to get started and with integrating GenomeView with your data is by directly constructing a webstart link.
The next step is constructing your URL to load sequence and features. Below a sample URL, which will load some sequence with annotation and some short reads. It will start with the [100000,200000] region visible.
http://genomeview.org/start/launch.jnlp?--position 100000:200000 --url http://www.broadinstitute.org/software/genomeview/demo/c_elegans/IV.fasta http://www.broadinstitute.org/software/genomeview/demo/c_elegans/IV.gff.gz http://www.broadinstitute.org/software/genomeview/demo/c_elegans/uwgs-rw_L2_FC6218_3.CHROMOSOME_IV.sorted.bam.bai
Pasting this URL in your browser will start GenomeView with data from C. elegans loaded.
Command line options to GenomeView can be added after the question mark after the installation URL.
The formalized version of the integration URL looks like this:
http://genomeview.org/start/launch.jnlp?[command line options for GenomeView separated with spaces]
Important: You should use the JNLP file we provide as it will integrate the parameters into the start-up parameters of the webstart application.
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>
Embedding GenomeView as an applet
The key code that needs to be included in the body of your web page is:
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.
<p>The configuration file you want to use, can be specified using the
<p>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.
<p>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>