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

Fix cluster ordering in scanpy output

parent 8ad89fa9
No related branches found
No related tags found
No related merge requests found
......@@ -95,6 +95,12 @@ run_scanpy <- function(sce, pars) {
result <- dplyr::bind_cols(cluster, !!!out)
result <- dplyr::mutate(result, raw_statistic = 0)
# In the past the output from Scanpy grouped the results for each cluster
# together with genes ranked. At some point however this changed for an
# unknown reason, so we rectify this here. We DO NOT change the ranking of
# scanpy.
result <- dplyr::arrange(result, cluster)
# FIXME: Can we save the raw result in the anndata object?
list(time = time, result = result, raw_result = result, pars = pars)
}
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