library(symphony)
# For the sake of an easy to get a `query` object
rmarkdown::render('vignettes/quickstart_tutorial.Rmd')
labels = sample(1:5, size = nrow(query$meta_data), replace = TRUE)
calcPerClusterMappingMetric(reference, query, query_cluster_labels = labels)
Calculating mapping confidence for 6 query clusters
Error in base::rowMeans(x, na.rm = na.rm, dims = dims, ...) :
'x' must be an array of at least two dimensions
The PCA matrix is subset with an arbitrary index, and if the index has length one, R "helpfully" coerces it to a vector. Issue arises regardless of the value of u.
calcPerClusterMappingMetric
works with typical data.The PCA matrix is subset with an arbitrary index, and if the index has length one, R "helpfully" coerces it to a vector. Issue arises regardless of the value of
u
.https://github.com/immunogenomics/symphony/blob/d9d50dc041e423bc175b9d48301d2b9121e423ab/R/confidenceScores.R#L83