diff --git a/lib/galaxy/datatypes/anvio.py b/lib/galaxy/datatypes/anvio.py index 18721fe379e..37c7a3c1256 100644 --- a/lib/galaxy/datatypes/anvio.py +++ b/lib/galaxy/datatypes/anvio.py @@ -13,7 +13,7 @@ from galaxy.datatypes.metadata import MetadataElement log = logging.getLogger(__name__) -class AnvioComposite( Html ): +class AnvioComposite(Html): """ Base class to use for Anvi'o composite datatypes. Generally consist of a sqlite database, plus optional additional files @@ -21,7 +21,7 @@ class AnvioComposite( Html ): file_ext = "anvio_composite" composite_type = 'auto_primary_file' - def generate_primary_file( self, dataset=None): + def generate_primary_file(self, dataset=None): """ This is called only at upload to write the html file cannot rename the datasets here - they come with the default unfortunately @@ -29,30 +29,30 @@ class AnvioComposite( Html ): defined_files = self.get_composite_files(dataset=dataset).items() rval = ["Files for Anvi'o Composite Dataset (%s)" % (self.file_ext)] if defined_files: - rval.append( "

This composite dataset is composed of the following defined files:

") + defined_files = map(lambda x: x[0], defined_files) extra_files = [] for (dirpath, dirnames, filenames) in os.walk(dataset.extra_files_path, followlinks=True): for filename in filenames: - rel_path = os.path.relpath( os.path.join( dirpath, filename ), dataset.extra_files_path) + rel_path = os.path.relpath(os.path.join(dirpath, filename), dataset.extra_files_path) if rel_path not in defined_files: - extra_files.append( rel_path ) + extra_files.append(rel_path) if extra_files: - rval.append( "

This composite dataset contains these undefined files: