Commit 0620c0ba authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

sort protein names in PPI name construction

this makes the PPI name reproducible regardless of order
in the form data
WIP on #194
parent 32956bcd
......@@ -453,8 +453,8 @@ class Ppi(AutoFillableModel):
]
)
partner_protein_names = all_protein_names - bound_protein_names
bound_str = ",".join(bound_protein_names)
partner_str = ",".join(partner_protein_names)
bound_str = ",".join(sorted(bound_protein_names))
partner_str = ",".join(sorted(partner_protein_names))
name = bound_str
if partner_str != "":
name += " / " + partner_str
......
Supports Markdown
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