Add gene expression boxplot from plotCounts to each row of oncoprint via ComplexHeatmap
0
0
Entering edit mode
15 months ago
bioinfo8 ▴ 230

Hi,

I have a oncoprint generated using oncoPrint() from ComplexHeatmap R package for variants for 20 genes from WGS data for 4 groups/phenotypes. Then, I ran differential gene expression for 2 groups and used plotCounts() from DESeq2 R package inside for loop to get 20 boxplots showing expression between 2 groups.

Now, I want to add those boxplots to each row in the oncoprint similar to what's shown here and I believe it is possible via following but I am struggling on how/which output from plotCounts for loop I should input to anno_boxplot():

top_annotation = HeatmapAnnotation(
                          boxplot = anno_boxplot(...output from plotcounts for loop....)

oncoPrint(mat, top_annotation = top_annotation)

Please advise.

Thanks.

R ComplexHeatmap oncoprint • 483 views
ADD COMMENT

Login before adding your answer.

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