How do I change size of gene names displayed on plotHeatmap from scater R Package
1
0
Entering edit mode
4.8 years ago
gsr9999 ▴ 310

Dear BioStar Leaders,

I am using plotHeatmap function from R's scater 1.14.6 package, and my Differentially expressed genes list is 110 genes, and my HeatMap shows gene symbols/names where they overlap with each other, and they are not legible.

Is there a parameter in plotHeatmap function of scater package, that I can use to change or reduce the size of gene names displayed on my heat map ? (or) if I can scale my heat map to make my genes clearly visible ?

My Single Cell RNA Seq Heat Map is here :

My Single Cell RNA Seq HeatMap

R RNA-Seq rna-seq gene next-gen • 4.4k views
ADD COMMENT
3
Entering edit mode
4.8 years ago

Pass the fontsize_row parameter to your plotHeatmap call and adjust accordingly. May have to play around with it to get the right size.

That function uses pheatmap on the backend, and passes extra parameters not recognized by plotHeatmap directly to the pheatmap call if you want to adjust further.

ADD COMMENT
0
Entering edit mode

Thank you jared.andrews07

ADD REPLY
0
Entering edit mode

@gsr9999

Hello, Unrelated question! How do you group based on your cluster and batch in plotHeatmap function.

Thank you

ADD REPLY
0
Entering edit mode

You are more likely to get an answer by posting a new question with appropriate details rather than tacking on to an old thread.

Regardless, the annotation_col parameter is what you need to provide.

As an aside, dittoHeatmap from the dittoSeq package is made to work with single cell data and is easier to use.

ADD REPLY

Login before adding your answer.

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