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

Some problems when using ESCO to estimate parameters from real data. #5

Open
duohongrui opened this issue Sep 23, 2022 · 0 comments
Open

Comments

@duohongrui
Copy link

Hi, ESCO is an essential tool to simulate datasets with cell groups. But recently, I encountered some problems when using ESCO to estimate parameters from read data.
The first problem

data <- matrix(rpois(2000*40,2),2000,40)
params <- ESCO::escoEstimate(data,
                             dirname = tempdir(),
                             group = TRUE,
                             cellinfo = paste0("group",
                                               sample(1:3, 40, replace = T)))
Error in validObject(object) : 
  invalid class “escoParams” object: : group.probs must sum to 1

The second problem

Error in manageparam(start.arg = start, fix.arg = fix.arg, obs = data, : 
Error in if (any(x < 0)) stop("values must be positive to fit an gamma distribution") : 
missing value where TRUE/FALSE needed

This failing fitting of real data to the gamma distribution contributes to the problem. There is a solution to this problem which was fixed in original Splatter package.

Can you check these problems and fix them? Thanks very much!

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

1 participant