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

argument confidence in knnPredict.Seurat #19

Closed
klaramagdalena opened this issue Nov 29, 2021 · 2 comments
Closed

argument confidence in knnPredict.Seurat #19

klaramagdalena opened this issue Nov 29, 2021 · 2 comments

Comments

@klaramagdalena
Copy link

Hi,
thanks for the really nice tool!

I am running the seurat adjusted workflow and wanted saw that the argument 'confidence = TRUE' does not work for the knnPredict.Seurat() function.

Does anyone now another way of getting to this information?
Thanks a lot!

Best,
Klara

@joycekang
Copy link
Collaborator

Hi Klara,

Sorry that we haven't implemented this in the Seurat function yet -

If you want a workaround, we use the class:knn function for prediction under the hood (see code here), and get the prediction confidence scores from setting prob = TRUE. You could do the same, just making sure to use the harmonyPCs as the predictors for k-NN. Also note that that particular function is stochastic when there are ties, so you should set a seed.

Joyce

@klaramagdalena
Copy link
Author

Hi Joyce,

thanks a lot, it worked! :)

Klara

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