X-Git-Url: http://woldlab.caltech.edu/gitweb/?a=blobdiff_plain;f=htsworkflow%2Fpipelines%2Fretrieve_config.py;fp=htsworkflow%2Fpipelines%2Fretrieve_config.py;h=94d8f5036089a47daeaad4a4b3f44a58540d0555;hb=2ad045b9026e0cb9e7d3d325c26f900bf1cbe334;hp=42ff263d97d99e6f54a659b55b5d6dba0bf13fe2;hpb=61ce2870651f2f3d7d63d3f7efce2d4bd84cc92f;p=htsworkflow.git diff --git a/htsworkflow/pipelines/retrieve_config.py b/htsworkflow/pipelines/retrieve_config.py index 42ff263..94d8f50 100644 --- a/htsworkflow/pipelines/retrieve_config.py +++ b/htsworkflow/pipelines/retrieve_config.py @@ -322,15 +322,15 @@ def saveConfigFile(options): genome_map = constructMapperDict(available_genomes) LOGGER.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') - # LOGGER.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