mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
100 lines
4.8 KiB
XML
100 lines
4.8 KiB
XML
<?xml version="1.0"?>
|
|
<display id="igv_bam" version="1.0.0" name="display with IGV">
|
|
|
|
<!-- Load links from file: one line to one link -->
|
|
<dynamic_links site_type="igv" skip_startswith="#" id="0" name="1">
|
|
|
|
<!-- Define parameters by column from file, allow splitting on builds -->
|
|
<dynamic_param name="site_id" value="0"/>
|
|
<dynamic_param name="site_name" value="1"/>
|
|
<dynamic_param name="site_link" value="2"/>
|
|
<dynamic_param name="site_dbkeys" value="3" split="True" separator="," />
|
|
<dynamic_param name="site_organisms" value="4" split="True" separator="," />
|
|
|
|
<!-- Filter out some of the links based upon matching site_dbkeys to dataset dbkey -->
|
|
<filter>${$site_id.startswith( 'local_' ) or $dataset.dbkey in $site_dbkeys}</filter>
|
|
|
|
<!-- We define url and params as normal, but values defined in dynamic_param are available by specified name -->
|
|
<url>${redirect_url}</url>
|
|
|
|
<param type="data" name="bam_file" url="galaxy_${DATASET_HASH}.bam" />
|
|
<param type="data" name="bai_file" url="galaxy_${DATASET_HASH}.bam.bai" metadata="bam_index" />
|
|
<param type="template" name="site_organism" strip="True" >
|
|
#if ($dataset.dbkey in $site_dbkeys)
|
|
$site_organisms[ $site_dbkeys.index( $bam_file.dbkey ) ]
|
|
#else:
|
|
$bam_file.dbkey
|
|
#end if
|
|
</param>
|
|
|
|
<param type="template" name="jnlp" url="galaxy_${DATASET_HASH}.jnlp" viewable="True" mimetype="application/x-java-jnlp-file"><?xml version="1.0" encoding="utf-8"?>
|
|
<jnlp
|
|
spec="1.0+"
|
|
codebase="${site_link}">
|
|
<information>
|
|
<title>IGV 1.5</title>
|
|
<vendor>The Broad Institute</vendor>
|
|
<homepage href="http://www.broadinstitute.org/igv"/>
|
|
<description>IGV Software</description>
|
|
<description kind="short">IGV</description>
|
|
</information>
|
|
<security>
|
|
<all-permissions/>
|
|
</security>
|
|
<resources>
|
|
|
|
<j2se version="1.5+" initial-heap-size="256m" max-heap-size="1100m"/>
|
|
<jar href="igv.jar" download="eager" main="true"/>
|
|
<jar href="batik-codec.jar" download="eager"/>
|
|
<property name="apple.laf.useScreenMenuBar" value="true"/>
|
|
<property name="com.apple.mrj.application.growbox.intrudes" value="false"/>
|
|
<property name="com.apple.mrj.application.live-resize" value="true"/>
|
|
<property name="com.apple.macos.smallTabs" value="true"/>
|
|
</resources>
|
|
|
|
<resources os="Mac" arch="i386">
|
|
<property name="apple.awt.graphics.UseQuartz" value="false"/>
|
|
<nativelib href="hdfnative-macintel.jar"/>
|
|
</resources>
|
|
|
|
<resources os="Mac" arch="ppc">
|
|
<property name="apple.awt.graphics.UseQuartz" value="false"/>
|
|
<nativelib href="hdfnative-macppc.jar"/>
|
|
</resources>
|
|
|
|
<resources os="Mac" arch="PowerPC">
|
|
<property name="apple.awt.graphics.UseQuartz" value="false"/>
|
|
<nativelib href="hdfnative-macppc.jar"/>
|
|
</resources>
|
|
|
|
<resources os="Windows">
|
|
<property name="sun.java2d.noddraw" value="true"/>
|
|
<nativelib href="hdfnative-win.jar"/>
|
|
</resources>
|
|
|
|
<resources os="Linux">
|
|
<nativelib href="hdfnative-linux64.jar"/>
|
|
</resources>
|
|
|
|
<application-desc main-class="org.broad.igv.ui.IGVMainFrame">
|
|
<argument>-g</argument>
|
|
<argument>${site_organism}</argument>
|
|
<argument>${bam_file.url}</argument>
|
|
</application-desc>
|
|
</jnlp>
|
|
</param>
|
|
<param type="template" name="redirect_url" strip="True" >
|
|
#if $site_id.startswith( 'local_' )
|
|
${site_link}?file=${bam_file.qp}&genome=${site_organism}&merge=true&name=${qp( $bam_file.name )}
|
|
#elif $site_id.startswith( 'web_link_' ):
|
|
${site_link}?sessionURL=${bam_file.qp}&genome=${site_organism}&merge=true&name=${qp( $bam_file.name )}
|
|
#else:
|
|
${jnlp.url}
|
|
#end if
|
|
</param>
|
|
</dynamic_links>
|
|
|
|
|
|
</display>
|
|
<!-- Dan Blankenberg -->
|