Open bruvellu opened 5 years ago
Hi @nelas,
I think you've uncovered a bug. Because of how the count/TPM data is pulled from the sleuth object, the order of the input data matrix to pheatmap
is not guaranteed to be the same as the order of the transcripts given to plot_transcript_heatmap
. I will add a line of code to make sure it is guaranteed, and then your strategy should work.
Hello,
I wanted to replace the transcript IDs for gene names in the heatmap generated by
plot_transcript_heatmap
. However, if I use thepheatmap
argumentlabels_row
as below, the gene names do not match the IDs. The rows are reordered by the heatmap function before the labels are applied.I have used this approach to control row ordering when calling
pheatmap
directly. What would be the best way to replace IDs by names withinplot_transcript_heatmap
?Thanks