Open ziyuan-ma opened 4 months ago
hi @ziyuan-ma , A new layer
has been added to Seurat V5, and the slot
slot used to extract gene expression data in previous versions seems to no longer work in V5. The old version of slot
is used in the author's parameters and does not apply to V5. If the author doesn't have time to follow up, I will submit a PR to fix this problem. If this warning ⚠️ does not affect your results, you don't have to care. If there is an impact, you can copy the source code and put it in:
# get cells mean gene expression
mean_gene_exp <- as.matrix(
data.frame(
Seurat::AverageExpression(object,
features = markerGene,
group.by = group.by,
assays = assays,
slot = slot
)
)
)
Modify to:
# get cells mean gene expression
mean_gene_exp <- as.matrix(
data.frame(
Seurat::AverageExpression(object,
features = markerGene,
group.by = group.by,
assays = assays,
layer = "yourSeuratObjLayerName" || "data"
)
)
)
Thanks, I will fix this.
Now you can re-install scRNAtoolVis and try averageHeatmap on Seruat V5.
Hello, thanks for developing this wonderful visualization package! I have encountered some issues passing the Seurat v5 object to
AverageHeatmap()
function. Could you please advise how should I pull data from thedata
layer instead of from slot? Thank you!