/display_applications/ucsc/interval_as_bed.xml
https://bitbucket.org/cistrome/cistrome-harvard/ · XML · 23 lines · 19 code · 0 blank · 4 comment · 0 complexity · ba51c213357e93834eaef9d9ed7092e7 MD5 · raw file
- <display id="ucsc_interval_as_bed" version="1.0.0" name="display at UCSC" inherit="True">
- <!-- Load links from file: one line to one link -->
- <dynamic_links from_file="tool-data/shared/ucsc/ucsc_build_sites.txt" skip_startswith="#" id="0" name="0">
- <!-- Define parameters by column from file, allow splitting on builds -->
- <dynamic_param name="site_id" value="0"/>
- <dynamic_param name="ucsc_link" value="1"/>
- <dynamic_param name="builds" value="2" split="True" separator="," />
- <!-- Filter out some of the links based upon matching site_id to a Galaxy application configuration parameter and by dataset dbkey -->
- <filter>${site_id in $APP.config.ucsc_display_sites}</filter>
- <filter>${dataset.dbkey in $builds}</filter>
- <!-- We define url and params as normal, but values defined in dynamic_param are available by specified name -->
- <url>${ucsc_link}db=${qp($bed_file.dbkey)}&position=${position.qp}&hgt.customText=${bed_file.qp}</url>
- <param type="data" name="bed_file" url="galaxy_${DATASET_HASH}.bed" format="bedstrict"/> <!-- Galaxy allows BED files to contain non-standard fields beyond the first 3 columns, UCSC does not: force use of converter which will make strict BED6+ file -->
- <param type="template" name="position" strip="True" >
- #set chrom, start, end = $bed_file.datatype.get_estimated_display_viewport( $bed_file )
- #if $chrom is not None:
- ${chrom}:${start}-${int( end ) + 1}
- #else:
- :-
- #end if
- </param>
- </dynamic_links>
- </display>