10 p = arvados.current_job()['script_parameters']
15 c = subst.do_substitution(p, c)
19 merged += arvados.CollectionReader(c).manifest_text()
22 cr = arvados.CollectionReader(c[0:i])
28 for s in cr.all_streams():
29 if s.name() == stream:
31 merged += s.files()[fn].as_manifest()
33 crm = arvados.CollectionReader(merged)
35 combined = crm.manifest_text(strip=True)
37 m = hashlib.new('md5')
40 uuid = "{}+{}".format(m.hexdigest(), len(combined))
42 collection = arvados.api().collections().create(
45 'manifest_text': crm.manifest_text(),
49 l = arvados.api().links().create(body={
53 "link_class": "provenance",
57 arvados.current_task().set_output(uuid)