Cluster using known marker genes (Seurat)
1
0
Entering edit mode
4.1 years ago
V ▴ 380

Hello,

Using the seurat pipeline (v3) is there a way to cluster using known marker genes, or a set of genes that you pass into the package as opposed to the variable genes which are the ones used in the vignette? If so how? If anyone could provide a coded example that would be amazing.

Thank you!!

seurat single cell rnaseq rstudio rnaset • 2.9k views
ADD COMMENT
1
Entering edit mode
4.1 years ago

While running the RunPCA function instead of VariableFeatures(object = obj) provide a list of marker genes you are interested in.

Code example:

pbmc <- RunPCA(pbmc, features = c('LYZ','CCL3','CCL5','CCL4','IL8','HLA-DRB1'))
ADD COMMENT
0
Entering edit mode

Thank you. Sorry naive question coming up.

If this was a long gene list compiled with 1000+ genes, would the appropriate way to pass it in be a csv file? So something like:

e.g

genes <- genelist.csv

MySeurat <- RunPCA(MySeurat, features  = genes))
ADD REPLY
0
Entering edit mode

You have modify the first line of the code.

genes <- read.csv('genelist.csv')[,1]
ADD REPLY

Login before adding your answer.

Traffic: 1609 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