From d8279f0e5cf77a8536467f9a943a5a5c18913fa0 Mon Sep 17 00:00:00 2001 From: Greg Von Kuster Date: Wed, 27 Jul 2011 16:14:15 -0400 Subject: [PATCH] Add an altered version of Jelle Scholtalbers' enhancement code to support uploding various image data types. I've moved some of the code components around from Jelle's version, and added some fixes. The cod ein the new image_util.py file enables detections of images types without the need to create a new Image() class. I've also added baseline support of the HDF5 data type in this change set, but it is currently required to be in the unsniffable_data_types list. --- datatypes_conf.xml.sample | 41 +++++++- lib/galaxy/datatypes/binary.py | 24 ++++- lib/galaxy/datatypes/checkers.py | 22 +++++ lib/galaxy/datatypes/images.py | 124 +++++++++++++++++++++++- lib/galaxy/datatypes/util/image_util.py | 76 +++++++++++++++ test/functional/test_get_data.py | 2 +- tools/data_source/upload.py | 26 +++-- 7 files changed, 295 insertions(+), 20 deletions(-) create mode 100644 lib/galaxy/datatypes/util/image_util.py diff --git a/datatypes_conf.xml.sample b/datatypes_conf.xml.sample index 79d610819e6..c3e16ab19f2 100644 --- a/datatypes_conf.xml.sample +++ b/datatypes_conf.xml.sample @@ -72,9 +72,10 @@ - + + @@ -90,7 +91,21 @@ - + + + + + + + + + + + + + + + @@ -102,7 +117,7 @@ - + @@ -116,7 +131,7 @@ - + @@ -304,6 +319,24 @@ + + + + + + + + + + + + + + + + + +