-
Notifications
You must be signed in to change notification settings - Fork 25
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
Simulate batch effect and condition effect simutaneously. #8
Comments
Hi Larry, You can check the vignette scDesign3 Introduction. You will need to use the "step-by-step" strategy. The function extract_para will return the mean matrix of each gene's expected expression in each cell. Then, you can add your own batch effects on it! The only tricky thing is that you need to specify the batch effects for each gene. In our paper, we belive that gene Best regards, |
Dear Dongyuan, Thank you for your response! I ran a demo following your suggestions but not quite sure whether it is correct. I firstly followed the step-by-step strategy to simulate two dataset A and B (run simu_new twice). And I used following code to simulate the batch effect based on a log-normal distribution,
After generating the batch effect, they will be added to logcounts of dataset B via following code,
I wonder whether this could be regarded as a valid procedure to introduce the batch effect to one dataset. Best Regards, |
Hi Larry, Best, |
Hi,
Thank you for presenting this excellent package. I wonder whether it is possible to simulate the batch effect and condition effect simultaneously. For example, if I use the ifnb reference to simulate the condition effect, can I also simulate some batch effect without providing the reference for batch effect simultaneously?
Best,
Larry
The text was updated successfully, but these errors were encountered: