Skip to content

Commit

Permalink
Add bam.iobio as a display application.
Browse files Browse the repository at this point in the history
  • Loading branch information
blankenberg committed Mar 15, 2016
1 parent 23c3300 commit 46728c5
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/datatypes_conf.xml.sample
Expand Up @@ -15,6 +15,7 @@
<display file="ensembl/ensembl_bam.xml" />
<display file="igv/bam.xml" />
<display file="igb/bam.xml" />
<display file="iobio/bam.xml" />
</datatype>
<datatype extension="cram" type="galaxy.datatypes.binary:CRAM" mimetype="application/octet-stream" display_in_upload="true" description="CRAM is a file format for highly efficient and tunable reference-based compression of alignment data." description_url="http://www.ebi.ac.uk/ena/software/cram-usage"/>
<datatype extension="bed" type="galaxy.datatypes.interval:Bed" display_in_upload="true" description="BED format provides a flexible way to define the data lines that are displayed in an annotation track. BED lines have three required columns and nine additional optional columns. The three required columns are chrom, chromStart and chromEnd." description_url="https://wiki.galaxyproject.org/Learn/Datatypes#Bed">
Expand Down
5 changes: 5 additions & 0 deletions config/tool_data_table_conf.xml.sample
Expand Up @@ -75,4 +75,9 @@
<columns>dbkey, name, value</columns>
<file path="tool-data/liftOver.loc" />
</table>
<!-- iobio bam servers -->
<table name="bam_iobio" comment_char="#">
<columns>value, name, url</columns>
<file path="tool-data/bam_iobio.loc" />
</table>
</tables>
8 changes: 8 additions & 0 deletions display_applications/iobio/bam.xml
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<display id="iobio_bam" version="1.0.0" name="display at bam.iobio">
<dynamic_links from_data_table="bam_iobio" skip_startswith="#" id="value" name="name">
<url>${url}?bam=${bam_file.qp}</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" />
</dynamic_links>
</display>
2 changes: 1 addition & 1 deletion lib/galaxy/datatypes/display_applications/application.py
Expand Up @@ -142,7 +142,7 @@ def __init__( self, elem, display_application, build_sites ):
max_col = max( id_col, name_col )
dynamic_params = {}
if data_table is not None:
max_col = max( [ max_col ] + data_table.columns.values() )
max_col = max( [ max_col ] + data_table.columns.values() )
for key, value in data_table.columns.items():
dynamic_params[key] = { 'column': value, 'split': False, 'separator': ',' }
for dynamic_param in elem.findall( 'dynamic_param' ):
Expand Down
3 changes: 3 additions & 0 deletions tool-data/bam_iobio.loc.sample
@@ -0,0 +1,3 @@
# Table used for listing bam.iobio servers
#<unique_id> <display_name> <url>
bam_iobio bam.iobio.io http://bam.iobio.io/

0 comments on commit 46728c5

Please sign in to comment.