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

Parralel Computing #2 #17

Open
Acaro12 opened this issue Dec 5, 2022 · 1 comment
Open

Parralel Computing #2 #17

Acaro12 opened this issue Dec 5, 2022 · 1 comment

Comments

@Acaro12
Copy link

Acaro12 commented Dec 5, 2022

Dear JEFworks team,

Thank you very much for the great package.

As described in #15 , the first part of the pipeline to detect spatial patterns can be parallelized. Since the downstream steps such as filterSpatialPatterns and spatialCrossCorMatrix do not work genewise, I expect the mentioned block-wise processing of gene groups cannot be applied here.
Could you think of another way to parallelize these downstream steps?
I am currently working on a dataset with ~25.000 spots and 7.000 genes.

Thank you in advance,
Best,

Christoph

@bmill3r
Copy link
Collaborator

bmill3r commented Dec 11, 2022

Hi Christoph,

Thanks so much for your interest in MERINGUE and for your question! I apologize for the delay in response and just wanted to let you know that we are thinking about it.

Actually, I believe that filterSpatialPatterns() should work gene wise as it is filtering for genes whose expression is driven by less than x% of cells (5% by default) so in that case the genes should be able to be subsetted in a similar fashion as #15.

However, with respect to spatialCrossCorMatrix(), each gene is compared to every other gene and so this might take more creative thinking. That said, I imagine many users would apply spatialCrossCorMatrix() to only the significant genes that also passed the LISA threshold in filterSpatialPatterns(). So perhaps the final list of significant genes here will be substantially smaller than the initial list of 7,000.

Hope this helps for now and will get back to you after we think about this a little deeper.

Thanks again,
Brendan

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