Skip to content

Commit

Permalink
remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fgrunewald committed Oct 17, 2023
1 parent cae03e9 commit f01261b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions vermouth/rcsu/contact_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ def read_go_map(file_path):
lines = _file.readlines()

contacts = []
OV=0
rCSU=0
for line in lines:
tokens = line.strip().split()
if len(tokens) == 0:
Expand All @@ -49,14 +47,11 @@ def read_go_map(file_path):
if tokens[11] == "1":
# this is a OV contact we take it
contacts.append((int(tokens[5]), tokens[4], int(tokens[9]), tokens[8]))
OV+=1
if tokens[11] == "0" and tokens[14] == "1":
# this is a rCSU contact we take it
contacts.append((int(tokens[5]), tokens[4], int(tokens[9]), tokens[8]))
rCSU+=1

if len(contacts) == 0:
raise IOError("You contact map is empty. Are you sure it has the right formatting?")

print(len(contacts), OV, rCSU)
return contacts

0 comments on commit f01261b

Please sign in to comment.