Volcano Plot Output Inquiry: Graphs Facing Down
0
0
Entering edit mode
7 months ago
Pumla • 0

volcano plot results from rstudio

Hello Biostar community,

I've been encountering an unusual output in my volcano plots, and I'm seeking some insights from the community. Typically, all my graphs tend to come out facing downwards. I've used the following codes for analysis:

# Change resLFC to a dataframe
resLFC <- as.data.frame(resLFC)

# Label the genes
resLFC$diffexpressed <- "NO"

resLFC$diffexpressed[resLFC$log2FoldChange > 0.1 & resLFC$padj < 0.05] <- "UP"
resLFC$diffexpressed[resLFC$log2FoldChange < 0.1 & resLFC$padj < 0.05] <- "DOWN"

resLFC$delabel <- NA

ggplot(data = resLFC, aes(x = log2FoldChange, y = log10(pvalue), col = diffexpressed, label = delabel)) +
  geom_point() +
  theme_minimal() +
  geom_text_repel() +
  scale_color_manual(values = c('blue', 'black', 'red')) +
  theme(text = element_text(size = 20))

I would appreciate any insights or suggestions on why my volcano plots are consistently facing downwards and any potential adjustments or corrections to the code.

Thank you in advance for your assistance and expertise.

rstudio volcano-plot • 571 views
ADD COMMENT
3
Entering edit mode

It's -log10(pvalue), you miss the minus. Some people use indeed pvalue, but since you're filtering on padj, I would show -log10(padj) rather than pvalue. It's better to interpret in terms of common cutoffs.

ADD REPLY
0
Entering edit mode

what are common cutoffs?

ADD REPLY
0
Entering edit mode

Perhaps more concerning is why you have features (genes?) with small pvalue but fold-change very close to zero. It's also unusual that there is a gap between features with ~0 lfc and features with lfc ~ |2|. Not saying it's wrong, just unusual.

ADD REPLY

Login before adding your answer.

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