Skip to content

Commit

Permalink
small fix for last fix...
Browse files Browse the repository at this point in the history
  • Loading branch information
rickhelmus committed Sep 16, 2024
1 parent 97207cc commit 12a6c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils-compounds.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ addCompoundScore <- function(compounds, scoreName, updateScore, scoreWeight)
{
compounds@groupAnnotations <- Map(groupNames(compounds), annotations(compounds), f = function(grp, ann)
{
if (max(ann[[scoreName]] == 0))
if (max(ann[[scoreName]]) == 0)
return(ann)
ann <- copy(ann)
norm <- ann[[scoreName]] / max(ann[[scoreName]])
Expand Down

0 comments on commit 12a6c63

Please sign in to comment.