# HG changeset patch # User geert-vandeweyer # Date 1407160239 14400 # Node ID 27ec5b7e46aaa3e61af754a23b96d1c3a0ac83a8 # Parent 6eefa441d9c71bead15844b20672731bc77b411f Deleted selected files diff -r 6eefa441d9c7 -r 27ec5b7e46aa cuffquant.py --- a/cuffquant.py Mon Aug 04 09:50:30 2014 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ -""" -Cuffquant format class -""" -import logging -import re -import binascii - -from galaxy.datatypes.sniff import * -from galaxy.datatypes import data -from galaxy.datatypes.binary import Binary - -log = logging.getLogger(__name__) - -class Cuffquant( Binary ): - """Class describing a CuffQuant output file""" - file_ext = "cxb" - def sniff(self,filename): - # cuffquant cxb file is not documented. the file seems to start with 'serialization::' - try: - header = open(filename).read(23) - if header == 'serialization::': - return True - return False - except: - return False - - def set_peek( self, dataset, is_multi_byte=False): - if not dataset.dataset.purged: - dataset.peek = 'Cuffquant cxb file' - dataset.blurb = data.nice_size( dataset.get_size()) - else: - dataset.peek = 'file does not exist' - dataset.blurb = 'file purged from disk' - def display_peek (self,dataset): - try: - return dataset.peek - except: - return "Cuffquant output file (%s)" % ( data.nice_size( dataset.get_size() ) ) - -if hasattr(Binary, 'register_sniffable_binary_format'): - Binary.register_sniffable_binary_format('cxb', 'cxb', Cuffquant)