addGeneExpressionMatrix throws error for multiome analysis - Error in as.vector(data) : no method for coercing this S4 class to a vector #2119
-
Hey everyone, I came across this error in my workflow. I understand the warnings and intend to work on them later. However, i need help sorting out the error please. I installed the "dev" branch of ArchR. Thank you for all the help in advance!
─ Session info ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ─ Packages ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── [1] /Library/Frameworks/R.framework/Versions/4.2/Resources/library ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Figured this out. Here is the what happened.. I used this response #507 (comment) seRNA <- import10xFeatureMatrix(input = files, names = names) #Works! running seRNA2 <- summarizedExperiment(seRNA) is basically squaring and creates issues in |
Beta Was this translation helpful? Give feedback.
Figured this out. Here is the what happened.. I used this response #507 (comment)
However, i didn't realize that the updated version directly provides a Summarized Experiment for import10xFeature. You don't need to use seRNA2 <- summarizedExperiment ... and can directly run,
seRNA <- import10xFeatureMatrix(input = files, names = names) #Works!
ArchR_proj <- addGeneExpressionMatrix(input=ArchR_proj, seRNA=seRNA, force = TRUE)
running seRNA2 <- summarizedExperiment(seRNA) is basically squaring and creates issues in
assay(seRNA) <- Matrix::Matrix(assay(seRNA), sparse=TRUE)