Problem with Seurat package in PercentageFeatureSet function #8863
Unanswered
Yousef-Genetics
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I encountered a problem when calculating the mitochondrial genome level in my samples. This is my code
count <- Read10X("GSM4909254/")
srobj <- CreateAssayObject(counts = count, project = "GSM4909254",
min.cells = 3, min.features = 200)
head(srobj)
srobj[["MTpercent"]] <- PercentageFeatureSet( srobj, pattern = "^MT-")
srobj$MTpercent
png(filename = "srobj.png", width = 1900,height = 1500,res = 200)
VlnPlot(object = srobj,features = c("nFeature_RNA", "nCount_RNA","MTpercent"),
ncol = 3,cols = 3,pt.size = 1)
dev. Off()
This is the error I get :
srobj[["MTpercent"]] <- PercentageFeatureSet( srobj, pattern = "^MT-")
Warning: The following arguments are not used: assay
Error in
[.data.frame
(slot(object = x, name = "meta.features"), , i, :undefined columns selected
and When I try to create a VlnPlot, I only get a white picture and the following warning:
Error in UseMethod(generic = "FetchData", object = object) :
no applicable method for 'FetchData' applied to an object of class "Assay"
Beta Was this translation helpful? Give feedback.
All reactions