Entering edit mode
2.1 years ago
sandy
•
0
Good afternoon,
I got a problem when I trying to load my scrna seq data into R on linux. My file type is .txt file. And my code similar to this: library(Seurat) library(Matrix) TPM <- read.table("All_Embryo_TPM.txt", sep = "\t", header = TRUE) TPM <- as.matrix(TPM) TPM <- as(TPM, "sparseMatrix")
CreateSeuratObject
data.object <- CreateSeuratObject(counts = TPM, project = "test", min.cells = 3, min.features = 200). But r said: Error: unexpected input in "data.object <- CreateSeuratObject(counts = p399011, project = “". Please help me out.
I have no problem with your code with a random dataset so could you share an example your data with
dput(head(TPM))
?