X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=blobdiff_plain;f=encode_submission%2Ftrackhub.py;h=fb0cea8771dcbc25b11dc95654e1e12ed62d2eb9;hp=4fea5cc827eca6ef7aa08c39642e6bd4aa1dac0b;hb=6f05ae54b482745afbacc8da7d9cc31f9b067d23;hpb=51e86a29e203304a36f0aca00ab535c93800cbaa diff --git a/encode_submission/trackhub.py b/encode_submission/trackhub.py index 4fea5cc..fb0cea8 100644 --- a/encode_submission/trackhub.py +++ b/encode_submission/trackhub.py @@ -96,7 +96,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) @@ -106,6 +106,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()