kevinblighe / EnhancedVolcano

Publication-ready volcano plots with enhanced colouring and labeling
412 stars 81 forks source link

pinpointing the gene of interest #7

Closed nhjk-23 closed 5 years ago

nhjk-23 commented 5 years ago

Hi Kevin,

First of all thank you for this very useful script. I'm really new in terms of using R for analysis, so sorry in advance if I don't provide enough information. Basically I wanted to make a volcanoplot, only highlighting my gene of interest:

EnhancedVolcano(topTab, lab=rownames(topTab), x="logFC", y="adj.P.Val", selectLab = c("Hoxa9", "Meis1"), pCutoff = 0.05, FCcutoff = 2.0, gridlines.major=FALSE, gridlines.minor=FALSE)

This worked fine and kind of did what I wanted. But the issue I had is, I couldn't pinpoint the exact dot of my genes (attached)

rplot07

I tried using the DrawConnectors=TRUE, EnhancedVolcano(topTab, lab=rownames(topTab), x="logFC", y="adj.P.Val", selectLab = c("Hoxa9", "Meis1"), pCutoff = 0.05, FCcutoff = 2.0, DrawConnectors = TRUE, widthConnectors = 5.0, colConnectors = "grey", gridlines.major=FALSE, gridlines.minor=FALSE)

but no line connector appeared on the plot. Is there any other way around this?

rplot08

Thanks!

kevinblighe commented 5 years ago

Hey, thank you for the comments. I had to look very close to see the gene labels! You may want to increase the size of the font with transcriptLabSize.

Regarding the connectors, it is currently programmed to draw them only when space becomes limiting. So, if you are labeling 50 genes, it will add connectors where necessary in order to utilise the most space possible. Note that, by increasing the transcriptLabSize, this may actually give you what you want because the labels of the 2 genes of interest will then clash.

My other recommendation for you is to install the development version via:

devtools::install_github('kevinblighe/EnhancedVolcano')

The development version contains most recent updates and will eventually be on the official Bioconductor release schedule when that is updated. In particular, take a look at this example, which goes over how you could assign a different shape to your genes of interest, thus helping to identify them: https://github.com/kevinblighe/EnhancedVolcano#over-ride-colour-andor-shape-scheme-with-custom-key-value-pairs

Kevin

nhjk-23 commented 5 years ago

Hi Kevin,

The development version worked like a charm. Managed to get a nice looking volcano plot! Awesome work! Thanks!

kevinblighe commented 5 years ago

Great! - thank you for the follow-up.