X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=blobdiff_plain;f=encode_submission%2Ftrackhub.py;fp=encode_submission%2Ftrackhub.py;h=c5c254358f972289bba132deae366c9dbcc897f9;hp=41f76d14f6d552f5a25eb0ee1bc74f9db32e18c6;hb=d9697c7e4a93736e5bb17bcc771c86ce377713c1;hpb=fccb5db3ee92df01d52a042208073d6c8084088f diff --git a/encode_submission/trackhub.py b/encode_submission/trackhub.py index 41f76d1..c5c2543 100644 --- a/encode_submission/trackhub.py +++ b/encode_submission/trackhub.py @@ -97,7 +97,7 @@ def main(cmdline=None): mapper.scan_submission_dirs(results) if opts.make_hub: - mapper.make_hub(results) + make_hub(results) if opts.sparql: sparql_query(model, opts.sparql) @@ -107,6 +107,18 @@ def main(cmdline=None): print writer.serialize_model_to_string(model) +def make_hub(results): + trackdb = mapper.make_hub(results) + manifest = mapper.make_manifest(results) + + trackstream = sys.stdout + #with open('trackDb.txt', 'w') as trackstream: + trackstream.write(trackdb) + + #with open('manifest.txt', 'w') as mainifeststream: + manifeststream = sys.stdout + mainifeststream.write(mainifest) + def make_parser(): parser = OptionParser()