Skip to content

Commit f980d1b

Browse files
committed
Bugfix in the convert.py script (find_ptm_sites)
1 parent f8c5581 commit f980d1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def find_ptm_sites(features):
196196
"meth", "acetyl"]
197197
ptms_dict = {i: [[] for j in range(4)] for i in ptms}
198198
for i, lineI in enumerate(features):
199-
if len(lineI.split()) > 3:
199+
if len(lineI.split()) > 3 and lineI.split()[3].isdigit():
200200
ptm, ptm_found = get_ptm_type(lineI)
201201
if ptm_found:
202202
if len(features) - i < 10:

0 commit comments

Comments
 (0)