plot_pseudotime_heatmap, Error in xj[i] : invalid subscript type 'list'

Hi,
Trying to generate a heatmap with a Monocle function called " plot_pseudotime_heatmap". But, I could not succeed due to the following error.

Moncle pacckages verson"2.16.0"

#Clustering Genes by Pseudotemporal Expression Pattern

loading required libraries

library(Seurat)
library(cowplot)
library(monocle)
library(RColorBrewer)
library(pheatmap)
library(dplyr)
library(ComplexHeatmap)

my_pseudotime_de %>% arrange(qval) %>% head() %>% select(gene_short_name) -> gene_to_cluster
gene_to_cluster <gene_to_cluster$gene_short_name

my_pseudotime_cluster <- plot_pseudotime_heatmap(Monocle_object[gene_to_cluster,],
num_clusters = 3,
cores = 8,
show_rownames = TRUE,
return_heatmap = TRUE)

What does gene_to_cluster look like? What are the sizes of Monocle_object and Monocle_object[gene_to_cluster,]?

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.