sctransform icon indicating copy to clipboard operation
sctransform copied to clipboard

Error in get_residuals(), 'log_umi' not found

Open frederikziebell opened this issue 4 years ago • 1 comments

Running

vst_out <- vst(pbmc)
get_residuals(vst_out, pbmc)

gives Error in eval(predvars, data, env) : object 'log_umi' not found on sctransform version 0.3.

frederikziebell avatar Oct 02 '20 09:10 frederikziebell

Thank you for reporting this. Yes, the example is broken - I will fix that. It should be

vst_out <- vst(pbmc, return_cell_attr = TRUE)
pearson_res <- get_residuals(vst_out, pbmc)

ChristophH avatar Oct 02 '20 10:10 ChristophH