Commit 0243d85f authored by Benjamin  BARDIAUX's avatar Benjamin BARDIAUX
Browse files

fix(conbox): sort conio contact list by score

parent 8a05794a
...@@ -476,6 +476,9 @@ class MapFile(RegexFile): ...@@ -476,6 +476,9 @@ class MapFile(RegexFile):
conmap.sequence = Sequence("sequence_id", conmap.sequence = Sequence("sequence_id",
protein.aa_sequence.sequence) protein.aa_sequence.sequence)
conmap.assign_sequence_register() conmap.assign_sequence_register()
if self.sort:
conmap.sort(self.sort, reverse=True, inplace=True)
for contact in conmap: for contact in conmap:
conkeys = tuple(sorted([contact.res1_seq, conkeys = tuple(sorted([contact.res1_seq,
contact.res2_seq])) contact.res2_seq]))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment