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

STARmap data imputation code missing #132

Closed
tabdelaal opened this issue Nov 29, 2019 · 2 comments
Closed

STARmap data imputation code missing #132

tabdelaal opened this issue Nov 29, 2019 · 2 comments

Comments

@tabdelaal
Copy link

Hi,
I'm currently working on data integration between scRNAseq and spatial data, I want to test the performance of Liger to impute spatial genes. In the paper you mentioned how you did the imputation but I couldn't find the code for that. "We developed a simple method for predicting the spatial distributions of genes not measured in STARmap data. To do this, we simply compute a cross-dataset k-nearest neighbor graph in the aligned factor space. Then we set the value of each missing gene to the unweighted arithmetic mean of its k nearest neighbors in the other dataset. We used k = 50 for all analyses in the paper."

Can you share the code for this imputation? Thank you.

@vkozareva
Copy link
Collaborator

Hello! Have you tried using the imputeKNN function? It was created to capture this functionality. We can also publish a small walkthrough showing the usage of this function.

@tabdelaal
Copy link
Author

Thank you for your reply. I tried the function and it's working well.

Thanks again.

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