Skip to content

Commit 944bd9f

Browse files
committed
rebase.py
1 parent 62eac7a commit 944bd9f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Diff for: rebase.py

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import re
2+
import regex
3+
import json
4+
5+
# f = open('rebase.txt')
6+
# file = (f.read())
7+
#
8+
# enz_list = []
9+
#
10+
# name = regex.finditer(r'<1>.*', file)
11+
#
12+
# for i in name:
13+
# org = regex.search(r'<3>.*', file[i.end():])
14+
# site = regex.search(r'<5>.*', file[i.end():])
15+
# typ = regex.search(r'<8>.*', file[i.end():])
16+
# enzyme = [org.group(0)[3:], i.group(0)[3:], site.group(0)[3:], typ.group(0)[3:]]
17+
# enz_list.append(enzyme)
18+
#
19+
# open('./enz_list.json', 'w').write(json.dumps(enz_list))
20+
#
21+
with open('enz_list.json') as data_file:
22+
enz_list = json.load(data_file)
23+
# #
24+
for i in enz_list:
25+
if 'NIES-39' in i[0]:
26+
print i[3]

0 commit comments

Comments
 (0)