Closed yicheinchang closed 6 years ago
I figured out why those two functions not working.
My data set was originally a SCESet object (by scater 1.4). After upgrading to Bioconductor 3.6, I converted it to a SingleCellExperiment object (by using updateSCESet
) and then ran sc3. Everything looks fine after converting. However, somehow rowData missed "feature_symbol", one of the essential columns for sc3.
After manually putting it back, then those two plot functions work.
rowData(sce)$feature_symbol <- rownames(sce)
One quick suggestion.
Unless all input SingleCellExperiment object will have feature_symbol
, you may not want to hard-code the column name in function organise_de_genes
(in ShinyFunctions.R)
A solution could be
organise_de_genes <- function(object, k, p_val) {
de_genes <- rowData(object)[, paste0("sc3_", k, "_de_padj")]
names(de_genes) <- rownames(object)
de_genes <- de_genes[!is.na(de_genes)]
de_genes <- de_genes[de_genes < p_val]
de_genes <- de_genes[order(de_genes)]
return(de_genes)
}
Great! Many thanks for this investigation, I will fix it this week!
Ok, in the latest version of SC3
(1.7.2) it will check for feature_symbol
before running clustering, so there will be no problem in the downstream processing. I require this, because feature_symbol
is the default column that scater
writes to when using biomaRt
to convert gene ids to names. The changes will appear on Bioconductor in a couple of days.
@wikiselev Thank you!!! This solution is fine as long as a user will know how to 'fix' it (and make it work)
Hi,
Somehow sc3 doesn't like my data set :) Both
sc3_plot_de_genes
andsc3_plot_markers
are not not working. The command I used to run sc3 was provided in #45sc3_plot_de_genes
Error in seq.default(min(x, na.rm = T), max(x, na.rm = T), length.out = n + : 'from' must be a finite number
sc3_plot_markers
Error: subscript contains invalid names
session info
Thanks again.