Creating an Object
1
0
Entering edit mode
5.3 years ago

Hi, I'm having trouble with creating objects for each group. Here's what I've done so far

>group1 <- grep("old",rownames(cells@meta.data))
>group2<- grep("young",rownames(cells@meta.data))
>cells[group1]
>cells[group2]

What should I use for counts?

>group1_object <- CreateSeuratObject(counts =    , project = "group1")

Thank you.

R • 1.2k views
ADD COMMENT
1
Entering edit mode
5.3 years ago

I would suggest you start by make one Seurat object which you do joint QC and filtering on and a joint clustering (like described in this vignette). To do the sub-clustering you can simply (since you are using Seurat 3 (not Seurat2 or earlier)) use the subset() or the SplitObject() function to respectively subset or create a list with the different Seurat subsets (nice if you subsequently want to do the same analysis to all datasets). You can find example code of how both works here.

ADD COMMENT

Login before adding your answer.

Traffic: 1677 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6