Add a log message to for debugging
[htsworkflow.git] / encode_submission / geo_gather.py
index a2901058371ecec871224076f94362a3eaf6ce43..9db286d37b6326e1b576e1045a3c04b5e92beabe 100644 (file)
@@ -77,12 +77,16 @@ def main(cmdline=None):
         results.make_tree_from(opts.make_tree_from)
 
     if opts.fastq:
+        logger.info("Building fastq extraction scripts")
         flowcells = os.path.join(opts.sequence, 'flowcells')
         extractor = CondorFastqExtract(opts.host, flowcells,
+                                       model=opts.model,
                                        force=opts.force)
         extractor.create_scripts(results)
 
     if opts.scan_submission:
+        if opts.name is None:
+            parser.error("Please define a submission name")
         mapper.scan_submission_dirs(results)
 
     if opts.make_soft: