From de5de2973cf1cbafaa3ac9e982c700f2e6376e35 Mon Sep 17 00:00:00 2001 From: Greg Von Kuster Date: Wed, 12 May 2010 14:50:25 -0400 Subject: [PATCH] Force modENCODE worm dbkey to be ce6 and modENCODE fly dbkey to be dm2. --- lib/galaxy/tools/__init__.py | 6 ++++++ tools/data_source/fly_modencode.xml | 2 +- tools/data_source/worm_modencode.xml | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/tools/__init__.py b/lib/galaxy/tools/__init__.py index 35ee159d60e..73f8431a9cd 100644 --- a/lib/galaxy/tools/__init__.py +++ b/lib/galaxy/tools/__init__.py @@ -1646,6 +1646,12 @@ class DataSourceTool( Tool ): data.name = param_dict.get( 'name', data.name ) data.info = param_dict.get( 'info', data.name ) data.dbkey = param_dict.get( 'dbkey', data.dbkey ) + # HACK to map modENCODEfly dbkey, which is always "fly" to be dm2 + # and modENCODEworm dbkey, which is always "worm" to be ce6 + if data.dbkey == 'fly': + data.dbkey = 'dm2' + elif data.dbkey == 'worm': + data.dbkey = 'ce6' data.extension = param_dict.get( 'data_type', data.extension ) #TODO: these should be possible as part of data_source.py and external set_meta, see the upload tool: if data.extension in [ 'txt', 'tabular' ]: diff --git a/tools/data_source/fly_modencode.xml b/tools/data_source/fly_modencode.xml index e377e0d7e0e..d96d1f2c55d 100644 --- a/tools/data_source/fly_modencode.xml +++ b/tools/data_source/fly_modencode.xml @@ -10,7 +10,7 @@ - + diff --git a/tools/data_source/worm_modencode.xml b/tools/data_source/worm_modencode.xml index 4087a789dfc..cfa02be5a53 100644 --- a/tools/data_source/worm_modencode.xml +++ b/tools/data_source/worm_modencode.xml @@ -10,7 +10,7 @@ - +