@@ -0,0 +1,746 @@
+#!/usr/bin/env python%0A%0A%0Adef parse(afile, sep=' '):%0A    %0A    %22%22%22Parse contact file.%0A    @param  afile   contact file%0A    @param  sep     separator of contact file (default=' ')%0A    Ensures: Output is sorted by confidence score.%0A    @return %5B(score, residue a, residue b)%5D%0A    %22%22%22%0A%0A    contacts = %5B%5D%0A    for aline in afile:%0A        if aline.strip() != '':%0A            line_arr = aline.strip().split(sep)%0A            if line_arr%5B0%5D.startswith('E'):%0A                continue%0A            i = int(line_arr%5B0%5D)%0A            j = int(line_arr%5B1%5D)%0A            score = float(line_arr%5B-1%5D)%0A            if abs(i - j) %3E 4:%0A                contacts.append((score, i, j))%0A    afile.close()%0A%0A    contacts.sort(key=lambda x: x%5B0%5D, reverse=True)%0A    return contacts%0A

Add contact map parser.