# HG changeset patch # User yhoogstrate # Date 1447232248 18000 # Node ID b3ffd5b0a73b807df724a06aa12adb5b54db1593 # Parent 3b532dc3864b703ffdb3e6133923b05a9f91e3c6 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit c475b4222a15cdadc6085865f4d13426249fec25-dirty diff -r 3b532dc3864b -r b3ffd5b0a73b lib/galaxy/datatypes/completegenomics.py --- a/lib/galaxy/datatypes/completegenomics.py Wed Nov 11 03:55:01 2015 -0500 +++ b/lib/galaxy/datatypes/completegenomics.py Wed Nov 11 03:57:28 2015 -0500 @@ -33,6 +33,7 @@ """Returns formated html of peek""" return Tabular.make_html_table( self, dataset, column_names=self.column_names ) + class CG_MasterVar( Tabular ): file_ext = 'cg_mastervar' def __init__(self, **kwd): @@ -53,7 +54,8 @@ def display_peek( self, dataset ): """Returns formated html of peek""" return Tabular.make_html_table( self, dataset, column_names=self.column_names ) - + + class CG_Gene( Tabular ): file_ext = 'cg_gene' def __init__(self, **kwd): @@ -71,12 +73,21 @@ """Returns formated html of peek""" return Tabular.make_html_table( self, dataset, column_names=self.column_names ) + class CRR( Binary ): file_ext = "crr" def __init__(self, **kwd): Binary.__init__( self, **kwd ) - + + def set_peek( self, dataset, is_multi_byte=False ): + if not dataset.dataset.purged: + dataset.peek = 'CRR genome reference' + dataset.blurb = 'binary data' + else: + dataset.peek = 'file does not exist' + dataset.blurb = 'file purged from disk' + def sniff( self, filename ): try: header = open( filename ).read(4)