summaryrefslogtreecommitdiff
path: root/Code/json_test.py
diff options
context:
space:
mode:
authorHui Lan <lanhui@zjnu.edu.cn>2019-12-04 19:03:19 +0800
committerHui Lan <lanhui@zjnu.edu.cn>2019-12-04 19:03:19 +0800
commit97fdefab064f63642fa3ece05b807d29b459df31 (patch)
treea058530023224f3e35b1783996f3530c80c04bc5 /Code/json_test.py
brain: add python and R code to local repository.
Diffstat (limited to 'Code/json_test.py')
-rw-r--r--Code/json_test.py8
1 files changed, 8 insertions, 0 deletions
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]