Fix detection of 2bit files when uploading them.

When 2bit files are uploaded, they were not detected as 2bit files:

Example:
  test.2bit
    empty
    format: twobit, database: hg19
    The uploaded binary file contains inappropriate content

This issue is solved by registering the TwoBit file format in:
  ./lib/galaxy/datatypes/binary.py
This commit is contained in:
Gert Hulselmans
2013-05-27 15:02:06 +02:00
parent 7c4c69fd3e
commit 8126d3f0fa
+2
View File
@@ -399,3 +399,5 @@ class TwoBit (Binary):
return dataset.peek
except:
return "Binary TwoBit format nucleotide file (%s)" % (data.nice_size(dataset.get_size()))
Binary.register_sniffable_binary_format("twobit", "twobit", TwoBit)