comparison data_manager/data_manager.py @ 1:bf7b2c14cabc draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_dada2 commit a82e4981dac025c909244acd7127c215bdb519a7"
author iuc
date Thu, 05 Dec 2019 17:58:52 -0500
parents f57c13f5878b
children a6a81f921701
comparison
equal deleted inserted replaced
0:f57c13f5878b 1:bf7b2c14cabc
118 data_manager_entry['value'] = dataset 118 data_manager_entry['value'] = dataset
119 data_manager_entry['name'] = FILE2NAME[dataset] 119 data_manager_entry['name'] = FILE2NAME[dataset]
120 data_manager_entry['path'] = dataset + ".species" 120 data_manager_entry['path'] = dataset + ".species"
121 data_manager_json["data_tables"]["dada2_species"] = data_manager_entry 121 data_manager_json["data_tables"]["dada2_species"] = data_manager_entry
122 122
123 with file(outjson, 'w') as jf: 123 with open(outjson, 'w') as jf:
124 jf.write(json.dumps(data_manager_json)) 124 jf.write(json.dumps(data_manager_json, sort_keys=True))
125 125
126 126
127 if __name__ == '__main__': 127 if __name__ == '__main__':
128 parser = argparse.ArgumentParser(description='Create data manager json.') 128 parser = argparse.ArgumentParser(description='Create data manager json.')
129 parser.add_argument('--out', action='store', help='JSON filename') 129 parser.add_argument('--out', action='store', help='JSON filename')