This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to label genes passing the p-value and fold change cut-offs in EnhancedVolcano?

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

1 answer

Using selectLab argument, try something like:

EnhancedVolcano(resLFC,
                 lab = rownames(resLFC),
                 selectLab=rownames(subset(resLFC, pvalue<0.05 & abs(log2FoldChange)>1)),
                 ...
               )

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.

Log in to answer this question.