From 97fdefab064f63642fa3ece05b807d29b459df31 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Wed, 4 Dec 2019 19:03:19 +0800 Subject: brain: add python and R code to local repository. --- Code/json_test.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Code/json_test.py (limited to 'Code/json_test.py') diff --git a/Code/json_test.py b/Code/json_test.py new file mode 100644 index 0000000..c4ca7bd --- /dev/null +++ b/Code/json_test.py @@ -0,0 +1,8 @@ +import json +old_json = '../Data/information/rnaseq_info_database.json' # generated by parse_xml.py +with open(old_json) as json_data: + json_dict = json.load(json_data) + for k in json_dict: + print(k) + # if k in tissue_dict: + # json_dict[k]['tissue'] = tissue_dict[k] -- cgit v1.2.1