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

Integration & Subset #194

Open
galaxyeee opened this issue Jun 13, 2024 · 0 comments
Open

Integration & Subset #194

galaxyeee opened this issue Jun 13, 2024 · 0 comments

Comments

@galaxyeee
Copy link

galaxyeee commented Jun 13, 2024

Hi,
Thank you for developing SCTransform.

I have read the several issues, and I want to check if I understand them correctly. I am using public data that integrates data from 10 patients into one dataset. The differences in nCount_RNA among patients seem to affect cell type proportions, so I plan to regress them out.

  1. I understand that if the differences between samples include biological differences, it is better to perform SCTransform after integration. Is this correct?
    If so, should I use seu_snRNA <- SCTransform(seu_snRNA, vars.to.regress = "nCount_RNA", verbose = FALSE) to regress out the differences, and then perform batch correction using a package like Harmony? Or should I use vars.to.regress = c("orig.ident", "nCount_RNA") instead?

  2. If it is better to perform SCTransform on each sample separately, should I add vars.to.regress = "nCount_RNA" in the following code as shown on https://satijalab.org/seurat/archive/v3.0/integration.html#sctransform?

for (i in 1:length(pancreas.list)) {
    pancreas.list[[i]] <- SCTransform(pancreas.list[[i]], verbose = FALSE)
}
  1. Finally, if I subset the data after integration, should I perform SCT again, or can I proceed directly with RunPCA?

Thank you for your assistance.

Best,
EUNHA

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

1 participant