Hi Mengjie,
I have been using VIPER for a few days, and it's been great. However, I get this strange error when I try running it on data I downsample myself, and I was wondering if you had thoughts about what might be the issue or how to resolve it.
The following code works fine (1014 cells, 542 genes)
df <- read.csv("https://raw.githubusercontent.com/linnylin92/VIPER/master/data/singlecell.csv", row.names = 1)
res <- VIPER::VIPER(df, num = 5000, percentage.cutoff = 0.1, minbool = FALSE, alpha = 1,
report = FALSE, outdir = NULL, prefix = NULL)
However, the following code gives me an error (where df2 is now my downsampled variant of df)
df2 <- read.csv("https://raw.githubusercontent.com/linnylin92/VIPER/master/data/singlecell_downsample.csv", row.names = 1)
res <- VIPER::VIPER(df2, num = 5000, percentage.cutoff = 0.1, minbool = FALSE, alpha = 1,
report = FALSE, outdir = NULL, prefix = NULL)
The error I receive is Error in imputation_by_samples_posterior_expectation(data, selected_logxx, : Evaluation error: replacement has length zero. Is there an implicit requirement (or a documentation thing I missed) stating something such as the minimum number of zeros each gene/cell must have?
Thanks for your help!
Hi Mengjie,
I have been using VIPER for a few days, and it's been great. However, I get this strange error when I try running it on data I downsample myself, and I was wondering if you had thoughts about what might be the issue or how to resolve it.
The following code works fine (1014 cells, 542 genes)
However, the following code gives me an error (where
df2is now my downsampled variant ofdf)The error I receive is
Error in imputation_by_samples_posterior_expectation(data, selected_logxx, : Evaluation error: replacement has length zero.Is there an implicit requirement (or a documentation thing I missed) stating something such as the minimum number of zeros each gene/cell must have?Thanks for your help!