Subsetting Genes from Clusters
1
0
Entering edit mode
4.6 years ago
V ▴ 410

Hello,

I have a fairly simple question on Rstudio but im not sure how to get it done - really bad with handling columns and rows. I have the below which is a list of genes. What would be the way to extract all the genes that are significant in cluster 6? (as opposed to all the other clusters).

I was trying the below which didn't work necessarily, but that would be what I wanted to do. I'm only interested in the gene names not the other data like p_value etc.

cluster6genes <- row.names(subset(marker.genes, cluster = "6"))

Thanks!

Image is here :

https://ibb.co/TRqpbDv

rstudio seurat r dataframes • 1.2k views
ADD COMMENT
2
Entering edit mode
4.6 years ago
Haci ▴ 730

row.names(subset(marker.genes, cluster == 6))

ADD COMMENT
0
Entering edit mode

thank you, worked amazingly well :)

ADD REPLY
0
Entering edit mode

Moved to answer

ADD REPLY

Login before adding your answer.

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