Add a log message to for debugging
[htsworkflow.git] / encode_submission / geo_gather.py
index 5d6bf1142f193c3c88a566270ed6579b4f58273c..9db286d37b6326e1b576e1045a3c04b5e92beabe 100644 (file)
@@ -77,6 +77,7 @@ 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,
@@ -84,6 +85,8 @@ def main(cmdline=None):
         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: