Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 5382a32

Browse files
authored
Merge pull request #7 from haddocking/rvhonorato-patch-1
Add try/except to catch non standard residues
2 parents 2da728a + 7e6d30d commit 5382a32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/whiscy2bfactor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ def parse_whiscy_scores(file_name):
5151
for line in input:
5252
line = line.rstrip(os.linesep)
5353
if line and line.startswith("ATOM "):
54-
res = STANDARD_TYPES[line[17:20].strip()]
55-
res_num = line[22:26].strip()
56-
res_id = "{}{}".format(res, res_num)
5754
try:
55+
res = STANDARD_TYPES[line[17:20].strip()]
56+
res_num = line[22:26].strip()
57+
res_id = "{}{}".format(res, res_num)
5858
score = scores[res_id]
5959
if args.norm:
6060
# Normalized Score = 100 * WHISCYSCORE + 50

0 commit comments

Comments
 (0)