Entering edit mode
3 days ago
Synat
•
0
Dear All,
Hope you are well. I have read the txt file from from single cell data using Seurat. However, when it comes to plotting percent mitochondria, i got zero. Try to fix, but not working. if anyone could have a look, that would be great. thank in advance!
#read raw txt file
ATC_data<- read.delim("Y:/read_txt_file/read-txt/GSM5814583_ATC08_UMI.txt",
header=TRUE, sep="\t")
GENE<- ATC_data[["GENE"]]
rownames(ATC_data)= GENE
ATC_data[["GENE"]]<-NULL
class(ATC_data)
ATC_data <-as.matrix (ATC_data)
class(ATC_data)
#create seurat obj
ACT_seurat_obj<- CreateSeuratObject(counts = ATC_data,
project = "ACT", min.cells = 3,
min.features = 200)
#mitochondria
ACT_seurat_obj<- PercentageFeatureSet(ACT_seurat_obj, pattern = "^MT-", col.name = "percent.mt")
VlnPlot(ACT_seurat_obj, features = c("nFeature_RNA", "nCount_RNA", "percent.mt"), ncol = 3)
Thanks, you very much. it worked well. I really appreciated !