Skip to content

Commit

Permalink
Add missing Rank for foldmason jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Jul 30, 2024
1 parent 1932eff commit c9eaaaf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions backend/foldmasonmsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c9eaaaf

Please sign in to comment.