I am working on Single-cell dataset, I wanted to extract raw counts of clusters (Say cluster num 4,6,8) and save it as a csv file. but I am not able to do the same, I have used the following codes,
alldata_epi <- subset(alldata, idents = c(1,23,5,18,22,15)) counts <- [email protected][email protected]
but when I check the counts, it is not showing anything,
> counts [,1] [1,] NA >
Please let me know where I am going wrong.
Thanks and regards,