Skip to content
Snippets Groups Projects
Commit a4dca332 authored by Jeffrey Pullin's avatar Jeffrey Pullin
Browse files

Flip ranking of 'rank' metrics

parent af96b344
No related branches found
No related tags found
No related merge requests found
Pipeline #11385 passed
......@@ -86,7 +86,13 @@ run_scran <- function(sce, pars) {
p_value_adj = 0
)
x <- dplyr::arrange(x, dplyr::desc(raw_statistic))
# All statistics except rank are sorted in descending order.
if (substr(metric, 1, 4) != "rank") {
x <- dplyr::arrange(x, dplyr::desc(raw_statistic))
} else {
x <- dplyr::arrange(x, raw_statistic)
}
})
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment