Spatial-eXpression-R: Cell type identification (including cell type mixtures) and cell type-specific differential expression for spatial transcriptomics
GNU General Public License v3.0
310
stars
73
forks
source link
"Cannot assign an object of class 'numeric' to the slot @‘counts’ in an object of class 'SpatialRNA'; is(value, 'dgCMatrix') is not TRUE." #218
> myRCTD <- create.RCTD(puck, reference, max_cores = 4)
Begin: process_cell_type_info
process_cell_type_info: number of cells in reference: 5481
process_cell_type_info: number of genes in reference: 14594
VEIN CAPI ARTERY Tip EC Pre-artery Stalk cell
470 1892 319 558 945 1297
End: process_cell_type_info
Error in (function (cl, name, valueClass) :
"Cannot assign an object of class 'numeric' to the slot @‘counts’ in an object of class 'SpatialRNA'; is(value, 'dgCMatrix') is not TRUE."
I do check my counts in puck is dgCMatrix.
> str(counts)
Formal class 'dgCMatrix' [package "Matrix"] with 6 slots
..@ i : int [1:89570] 2 4 0 1 2 5 0 2 4 5 ...
..@ p : int [1:26313] 0 2 6 10 14 16 19 21 25 29 ...
..@ Dim : int [1:2] 6 26312
..@ Dimnames:List of 2
.. ..$ : chr [1:6] "Bsg" "Col4a1" "Glul" "Lcn2" ...
.. ..$ : chr [1:26312] "cell3" "cell7" "cell8" "cell9" ...
..@ x : num [1:89570] 16 2 3 1 6 1 4 5 3 2 ...
..@ factors : list()
Hi, great tool! However, when I run
I do check my counts in puck is dgCMatrix.
Full code:
Thank you very much!