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

What's your thoughts on plate/batch-wise whitening for batch effect? #352

Open
hellowangqian opened this issue Aug 17, 2023 · 3 comments
Open

Comments

@hellowangqian
Copy link

I'm thinking about the batch effect handling part of the code. What it does in the code is quite simple: learning the parameters with all DMSO data and applying the whitening model to all data (DMSO and treatments). My question is why not do this plate-wisely or batch-wisely for such plate/batch-effect correction?

@hellowangqian hellowangqian changed the title What's your thoughts on plate-wise whitening for batch effect? What's your thoughts on plate/batch-wise whitening for batch effect? Aug 17, 2023
@Arkkienkeli
Copy link
Member

We do this transformation (sphering) after the features are extracted and aggregated to a well-level.
See example here.

@hellowangqian
Copy link
Author

Thanks for your prompt reply, but my question is: in step 4 of the example, the dataframe "wells" contain well-level data of all plates, why not do the sphering for each plate separately? The pseudo-code is as follows:

for plate in allPlates:
     do Sphereing on wells_from_this_plate
concatenate Sphered wells_from_each_plate 

@Arkkienkeli
Copy link
Member

We specifically correct for plate variation.
If you try to correct each plate separately, you are going to correct other confounding effects (for instance, well-position effects), though in this case you will have very few data points, so probably you will need to go down to image-level or single-cell level.
I don't think we tried it.

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