mapper.scan_submission_dirs(results)
if opts.make_hub:
- mapper.make_hub(results)
+ make_hub(results)
if opts.sparql:
sparql_query(model, opts.sparql)
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()
context = Context({
'samples': samples,
})
- print str(soft_template.render(context))
+ return str(soft_template.render(context))
+
+ def make_mainifest(self, result_map):
+ pass
def get_sample_metadata(self, analysis_node):
"""Gather information for filling out sample section of a SOFT file
})
results = self.execute_query(query_template, context)
- return results
\ No newline at end of file
+ return results