Fix a typo and a missing .items() from the change of storing list of result directories.
authorDiane Trout <diane@caltech.edu>
Mon, 16 Apr 2012 18:42:34 +0000 (11:42 -0700)
committerDiane Trout <diane@caltech.edu>
Mon, 16 Apr 2012 18:42:34 +0000 (11:42 -0700)
encode_submission/ucsc_gather.py

index 1cdf0118f6f990943adec84ab90492be44f360fe..0ed8f7e34d2885927a966ab11e2d3ac280818890 100644 (file)
@@ -56,7 +56,7 @@ def main(cmdline=None):
     model = get_model(opts.model, opts.db_path)
     mapper = None
     if opts.name:
-        mapper = UCSCSubmssion(opts.name, opts.daf,  model)
+        mapper = UCSCSubmission(opts.name, opts.daf,  model)
         if opts.library_url is not None:
             mapper.library_url = opts.library_url
         submission_uri = get_submission_uri(opts.name)
@@ -157,7 +157,7 @@ def make_parser():
 
 def make_all_ddfs(view_map, library_result_map, daf_name, make_condor=True, force=False):
     dag_fragment = []
-    for lib_id, result_dir in library_result_map:
+    for lib_id, result_dir in library_result_map.items():
         submissionNode = view_map.get_submission_node(result_dir)
         dag_fragment.extend(
             make_ddf(view_map, submissionNode, daf_name, make_condor, result_dir)