Closed yicheinchang closed 7 years ago
Hi, you should provide the same sce
scater object to sc3_plot_de_genes
as in the first line of your code. Instead you have sc3_result
which is something different. Does this solve your problem?
Ouch!! My Bad!!
The code snippet I provided here is incorrect. In my actual run, I named the sc3
output sc3_result
and pass it to sc3_plot_de_genes
.
Then I need to look at your sc3_result
. Could you share it with me?
Same problem here. After check the function. It seems something related genes with p-value equal to zero. In following code, there will be "Inf" in row_ann object, which may introduce trouble for pheatmap function. Then I add de_genes[de_genes<(1e-17)] <- (1e-17)
before the following code, it works for me.
row_ann <- data.frame(log10_padj = -log10(de_genes))
rownames(row_ann) <- names(de_genes)
do.call(pheatmap::pheatmap, c(list(dataset[names(de_genes), , drop = FALSE], show_colnames = FALSE, cluster_rows = FALSE, cluster_cols = hc, cutree_cols = k, annotation_row = row_ann, cellheight = 10), list(annotation_col = ann)[add_ann_col]))
}
Great, many thanks for finding this out, guys. Could you please share a sample data with me so that I can reproduce? Can you send it to vk6@sanger.ac.uk?
Thanks a lot @huang-ying! I managed to reproduce the bug and fix it using your suggestion de_genes[de_genes < 1e-17] <- 1e-17
it is available on Github now, so you can reinstall SC3 from there. Thanks a lot for finding this out and for your help! I will close it now but fell free to reopen if something else comes up.
Cheers,
Vlad
Hi, I would like to run
sc3_plot_de_genes
but it threw an errorOther plot functions (
sc3_plot_markers
,sc3_plot_expression
etc.) seem to work. Could you please give me some advice?Thanks in advance,