Skip to content

Commit

Permalink
bug fix in BbcontactsIO
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Simkovic committed May 11, 2017
1 parent 0e1e8f4 commit f063cfc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conkit/io/BbcontactsIO.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def read(self, f_handle, f_id="bbcontacts"):
else:
# bbcontacts reverse residue numbering so swap
_, _, _, raw_score, _, _, res2_seq, res1_seq = line.split()
if any(value == "NA" for value in [raw_score, res2_seq, res1_seq]):
continue
contact = Contact(int(res1_seq), int(res2_seq), float(raw_score))
contact_map.add(contact)

Expand Down

0 comments on commit f063cfc

Please sign in to comment.