allow running ucsc_gather --fastq without specifying an analysis name or model
authorDiane Trout <diane@caltech.edu>
Wed, 22 Jun 2011 22:04:04 +0000 (15:04 -0700)
committerDiane Trout <diane@caltech.edu>
Wed, 22 Jun 2011 22:04:04 +0000 (15:04 -0700)
extra/ucsc_encode_submission/ucsc_gather.py

index 2b9ba85b4edf202fb951c76024711eccd5d76b52..6172df70a5b11947505bede7bc5a51dc9179754d 100755 (executable)
@@ -46,8 +46,10 @@ def main(cmdline=None):
     apidata = api.make_auth_from_opts(opts, parser)
 
     model = get_model(opts.load_model)
-    mapper = DAFMapper(opts.name, opts.daf,  model)
-    submission_uri = get_submission_uri(opts.name)
+    if opts.name:
+        mapper = DAFMapper(opts.name, opts.daf,  model)
+        submission_uri = get_submission_uri(opts.name)
+        
     if opts.load_rdf is not None:
         load_into_model(model, 'turtle', opts.load_rdf, submission_uri)