Yes generate regular gerald config file.
[htsworkflow.git] / htsworkflow / pipelines / retrieve_config.py
index 2292cb9fca955485d9faf42cbb5274fd57ced1b4..48b581e72be8aecc329b90fe204f818c5295d174 100644 (file)
@@ -320,15 +320,15 @@ def saveConfigFile(options):
   genome_map = constructMapperDict(available_genomes)
   logging.debug('available genomes: %s' % ( unicode( genome_map.keys() ),))
 
-  #config = format_gerald_config(options, flowcell_info, genome_map)
-  #
-  #if options.output_filepath is not None:
-  #    outstream = open(options.output_filepath, 'w')
-  #    logging.info('Writing config file to %s' % (options.output_filepath,))
-  #else:
-  #    outstream = sys.stdout
-  #
-  #outstream.write(config)
+  config = format_gerald_config(options, flowcell_info, genome_map)
+
+  if options.output_filepath is not None:
+      outstream = open(options.output_filepath, 'w')
+      logging.info('Writing config file to %s' % (options.output_filepath,))
+  else:
+      outstream = sys.stdout
+
+  outstream.write(config)
 
   if options.sample_sheet is None:
       pass