I'm working on bioinformatic data, and the object I have generated so far in a large dgTMatrix which I'm trying to export into a csv file I could open and check regardless of the size.
I'm working with R, and when I write the line
write.csv(A.data, "Adata.csv")
I get the following error:
Error in as.data.frame.default(x[[i]], optional = TRUE) : cannot coerce class "structure("dgTMatrix", package = "Matrix")" to a data.frame
From what I understand, a dgTMatrix might not be directly convertible into a classic table, but I cannot find what extra step I need to nail to be able to have my csv file in the end.
Any help and pointers would be greatly appreciated!
Length Class Mode 1 seurat S4
- PaulineM