Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with replacement length = 0? #2

Open
linnykos opened this issue Mar 14, 2019 · 1 comment
Open

Issue with replacement length = 0? #2

linnykos opened this issue Mar 14, 2019 · 1 comment

Comments

@linnykos
Copy link

linnykos commented Mar 14, 2019

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!

@ChenMengjie
Copy link
Owner

ChenMengjie commented Mar 14, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants