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

error modeling knn takes up all cores #51

Open
dtm2117 opened this issue Sep 14, 2017 · 9 comments
Open

error modeling knn takes up all cores #51

dtm2117 opened this issue Sep 14, 2017 · 9 comments

Comments

@dtm2117
Copy link

dtm2117 commented Sep 14, 2017

Hello,

I am trying to run the error modeling step on a sample with thousands of cells. I've increased K and min.nonfailed. But I find that even if I set n.cores = 1 , I have threads running on every core of the cluster. Furthermore I've never had the error modeling step finish.

Any thoughts on this issue?

@pkharchenko
Copy link
Contributor

pkharchenko commented Sep 21, 2017 via email

@dtm2117
Copy link
Author

dtm2117 commented Sep 21, 2017

Here is the command:
knn <- knn.error.models(cd_new_nodup, k = ncol(cd)/2, n.cores = 12, min.count.threshold = 1, min.nonfailed = 20, max.model.plots = 10)

dim of the matrix is ~ 13k genes but 4k cells. I've filtered out any genes that have no expression.

@dtm2117
Copy link
Author

dtm2117 commented Sep 21, 2017

This is UMI data also

@pkharchenko
Copy link
Contributor

pkharchenko commented Sep 21, 2017 via email

@dtm2117
Copy link
Author

dtm2117 commented Sep 21, 2017

Ok, I will try this. On the scde help page it says that k may need to be increased for 1000s of cells, which is why I kept the denominator low.

Can't run that command because the pagoda library is not installed apparently. I thought it was installed along with SCDE package?

@dtm2117
Copy link
Author

dtm2117 commented Sep 21, 2017

When running scde:::papply( 1:1e2, function(x) rnorm(1e3), n.cores=12)
It finishes in about 2 seconds, and can't tell the core usage.

@pkharchenko
Copy link
Contributor

pkharchenko commented Sep 21, 2017 via email

@dtm2117
Copy link
Author

dtm2117 commented Sep 21, 2017

after increasing rnorm, it seems to be running on 12 cores only.

@dtm2117
Copy link
Author

dtm2117 commented Sep 26, 2017

While the scde:::papply( 1:1e2, function(x) rnorm(1e3), n.cores=12) runs on only 12 cores, the knn parameter still uses all cores.

Any ideas on why the discrepancy?

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