Mercurial > repos > iuc > sarscov2formatter
comparison test-data/test.py @ 1:e3a7995dce75 draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sarscov2formatter commit 1bd215457a39296c069caa6be30939f4f1bdadeb"
author | iuc |
---|---|
date | Fri, 20 Nov 2020 18:21:33 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:1c664ff29354 | 1:e3a7995dce75 |
---|---|
1 import json | |
2 | |
3 with open("meta.json") as jh: | |
4 data = json.load(jh) | |
5 | |
6 print("ID\tcollection_date\tcountry\tstate\tlocality") | |
7 for k in data: | |
8 collection_date = data[k]['collected'] | |
9 location = data[k]['location'] | |
10 print("%s\t%s\t%s\t%s\t%s" % (k, collection_date, location['country'], location['state'], location['locality'])) |