Color labeled points in Enhanced Volcano
1
0
Entering edit mode
4.4 years ago
rbronste ▴ 420

Hi I may have missed this but I saw every way to differentially color points based on FC or pval etc, but how do you differentially color just the labeled points? Thanks!

volcano plot EnhancedVolcano • 4.3k views
ADD COMMENT
2
Entering edit mode
4.4 years ago

Hey,

If you mean to colour differently the points that are labeled automatically internally via ggrepel, then that is not possible in the current setup, and would likely involve a major overhaul of the internal coding.

If, however, you mean to colour points based on labels that you are supplying via the selectLab parameter, the you can neither do that directly; however, you can set-up a key-value pairing like I do here: Over-ride colouring scheme with custom key-value pairs

So, you would have to create a key-value pairing that distinguishes the points that you are asking it to label specifically.

Kevin

ADD COMMENT
0
Entering edit mode

Yes Im asking about the latter, points labeled via selectLab.

So is the key-value pairing possible if the points are spread around in different FC and pval quadrants? Thanks.

ADD REPLY
1
Entering edit mode

Indeed, it is independent of FC and p-value. If the point that you are labeling is in a very crowded space, though, then it may not become visible, depending on when it is placed in the plot space. This package just utilises the ggplot2 engine; so, it goes from the first to last row from your input data-frame when plotting. If your point is being crowded out, you can simply put it last in your input data-frame in order to ensure that it is always plot last (and on top of other points in the vicinity).

ADD REPLY
0
Entering edit mode

Great thanks for info! One final questions as regards p-value, is there a way to use the FDR output of DESeq2 instead of p-value as a cutoff in the plot?

ADD REPLY
1
Entering edit mode

Oh yeh, I mean, you can select any column for plotting on the y-axis; so, you can simply choose the FDR-adjusted p-values. In this case, the cut-off line will simply be drawn at -log10(cutoff).

There is no distinction made between adjusted and un-adjusted, really.

ADD REPLY

Login before adding your answer.

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