I'm trying to load in some output from CR count 7.1.0 and it can't automatically load the cluster information even though it's exactly where it's supposed to be in v7 CellRanger outputs. I'm definitely using SoupX 1.6.1.
> for (i in 1:length(sc)) {
+ sc[[i]] <- autoEstCont(sc[[i]], soupQuantile = 0.5)
+ sc[[i]] <- adjustCounts(sc[[i]])
+ }
Error in autoEstCont(sc[[i]], soupQuantile = 0.5) :
Clustering information must be supplied, run setClusters first.
I am, however, able to get the cluster info using setClusters:
clusters <- lapply(Sys.glob(paste0("code/03-count/*/outs/analysis/clustering/gene_expression_graphclust/clusters.csv")), read.csv)
for (i in 1:length(sc)) {
sc[[i]] <- setClusters(sc[[i]], clusters[[i]]$Cluster)
}
I'm using R 4.1.2. Here's my session_info in case you need it:
I have the same issue with Cell Ranger 7, and the work around provided by aseyedia works just fine (thank you!), but I would like to see this get fixed too. Thanks!
I'm trying to load in some output from CR
count
7.1.0 and it can't automatically load the cluster information even though it's exactly where it's supposed to be in v7 CellRanger outputs. I'm definitely using SoupX 1.6.1.https://github.com/constantAmateur/SoupX/blob/8d89492306a7e82a79a3c0588b806d5127f2003c/R/load10X.R#L64
I am, however, able to get the cluster info using
setClusters
:I'm using R 4.1.2. Here's my
session_info
in case you need it: