I would like to use SpatialCPie for the cluster identification for 10X visium spatial transcriptome data. Raw data was analysed in space-ranger pipeline. Next, processed data was stored in seurat object and prepared the count and spot matrix as follows :
data1_C1 <- object.list[1]
counts_data <- data1_C1$C1@assays$SCT@counts
head(counts_data) ## structure of count data
6 x XXX sparse Matrix of class "dgCMatrix"
[[ suppressing XXXX column names ‘AAACAGAGCGACTCCT-1’, ‘AAACCGGGTAGGTACC-1’, ‘AAACCGTTCGTCCAGG-1’ ... ]]
I got the same error and it went away after providing the argument spotCoordinates. Also counts needs to be a matrix and not dgCMatrix; as.matrix(counts).
Hello
I would like to use SpatialCPie for the cluster identification for 10X visium spatial transcriptome data. Raw data was analysed in space-ranger pipeline. Next, processed data was stored in seurat object and prepared the count and spot matrix as follows :
AL627309.5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LINC01409 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LINC01128 . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 . . . . . . LINC00115 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LINC02593 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SAMD11 . . . . . . . . . . . 1 . . . . . . . . . . . . . . . . . . . . . .
Until the pre-processing step, everything works fine. But I am getting error at final step of the analysis.
Error: invalid
%<-%
right-hand side, incorrect number of valuesI would appreciate all the suggestions.