changeset 7:b3ffd5b0a73b draft

planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit c475b4222a15cdadc6085865f4d13426249fec25-dirty
author yhoogstrate
date Wed, 11 Nov 2015 03:57:28 -0500
parents 3b532dc3864b
children 9bb15c259010
files lib/galaxy/datatypes/completegenomics.py
diffstat 1 files changed, 13 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)