summaryrefslogtreecommitdiff
path: root/Code/getTF.py
blob: 1090bd29b449f74b7d8f1f70e75347efe10035ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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))))