Make this a new post. Please post some example data and expected output (image /data). In general, box plots are not ideal for genes with labels. May be you can use beeswarm plots or scatter plots.
Hi All
Can some help me with box plot? I used DESeq2 for DE analysis and now I want to plot box plots for some most highly DE genes. Since I am trying to see the difference of expression in sex (male/female) , I want box plot where there are two box plots for same gene in two condition (male/female) that could show the read counts on Y axis considering all samples (48 samples).Something like this-
I have a count table produced from DESeq2 and I have a 'coldata' which has annotation details (male/female) for all the samples.
2 answers
You'll want something like:
cnts = counts(dds, normalized=T)
d = data.frame(cnts=cnts[some_gene_of_interest, ], group=c(rep("male", 4), rep("female", 4)))
library(ggplot2)
ggplot(d, aes(x=group, y=cnts)) + geom_boxplot(aes(color=group))
As an aside, there's a plotCounts() function that comes with DESeq2 that's also handy.
Hi there, I have something similar to that but mine is just a count table in a .txt file that has six columns as follows:
Gene Id WT_1 WT_2 WT_3 MUT_1 MUT_2
GENE1 321 5454 6565 564 535
GENE2 ..... ...... ...... ..... .....
What I would like to do is just boxplot the data like this (see pic).
Where F1 F2 F3... have to be the name of my genes.
How can i do that?? Thanks in advance
Log in to answer this question.
You may want to post some example data.
How to add images to a Biostars post