How to label genes passing the p-value and fold change cut-offs in EnhancedVolcano?
1
0
Entering edit mode
24 months ago

Hi,

I have question on labelling of genes. I am interested to know if there is a way to label genes passing the p-value (purple dots) and fold change (green dots) cut-offs in EnhancedVolcano? I have shown an example below.

Thank you,

Toufiq

EnhancedVolcano volcano label R genes • 729 views
ADD COMMENT
3
Entering edit mode
24 months ago
iraun 6.2k

Using selectLab argument, try something like:

EnhancedVolcano(resLFC,
                 lab = rownames(resLFC),
                 selectLab=rownames(subset(resLFC, pvalue<0.05 & abs(log2FoldChange)>1)),
                 ...
               )
ADD COMMENT
0
Entering edit mode

iraun, excellent! Thank you very much. This worked.

ADD REPLY
1
Entering edit mode

Please use green check mark to accept the answer to provide closure to this thread. That is the proper way of marking a question answered.

ADD REPLY

Login before adding your answer.

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