diff --git a/backend/foldmasonmsa.go b/backend/foldmasonmsa.go index 2ab4a4b..be55603 100644 --- a/backend/foldmasonmsa.go +++ b/backend/foldmasonmsa.go @@ -27,6 +27,13 @@ func (r FoldMasonMSAJob) Hash() Id { return Id(base64.URLEncoding.WithPadding(base64.NoPadding).EncodeToString(bs)) } +func (r FoldMasonMSAJob) Rank() float64 { + if len(r.Queries) == 0 { + return 0 + } + return float64(len(r.Queries) * len(r.Queries[0])) +} + func (r FoldMasonMSAJob) WritePDB(path string) error { var pdbDir = filepath.Join(path, "pdbs") os.Mkdir(pdbDir, os.ModePerm)