summaryrefslogtreecommitdiff
path: root/Code/getTF.py
diff options
context:
space:
mode:
authorHui Lan <lanhui@zjnu.edu.cn>2025-03-09 16:27:16 +0800
committerHui Lan <lanhui@zjnu.edu.cn>2025-03-09 16:27:16 +0800
commit92ef45014d95e029f227e9332ac0e2bb80541c83 (patch)
treee5fb2cc889c4e12164b67a33ab00cb1d49f2d748 /Code/getTF.py
parentd6b28e7a6e11de2622988488badc7a07c662e2c4 (diff)
parent837a291e6a1816920c7116410dd1e0df9fd3eaf7 (diff)
Sync changes made on my Ubuntu desktop machine i7-13700H
Diffstat (limited to 'Code/getTF.py')
-rw-r--r--Code/getTF.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/Code/getTF.py b/Code/getTF.py
new file mode 100644
index 0000000..1090bd2
--- /dev/null
+++ b/Code/getTF.py
@@ -0,0 +1,19 @@
+import json
+
+tfs = set()
+
+with open('../Data/information/target_tf.txt') as f:
+ for line in f:
+ line = line.strip()
+ lst = line.split('\t')
+ tf = lst[1]
+ tfs.add(tf)
+
+with open('../Data/information/target_tf_agris.txt') as f:
+ for line in f:
+ line = line.strip()
+ lst = line.split('\t')
+ tf = lst[1]
+ tfs.add(tf)
+
+print(json.dumps(sorted(list(tfs))))