Hi, I found out something strange when using batch correction.
These are the two result from Muraro (pancreas) and MacParland (liver) datasets.
This is from Muraro

and this is from Macparland

Each had 4 and 5 donors respectively.
The commnad I used is the following:
RunGLMPCA(obj, X=model.matrix(as.formula('~factor(batch)'))
The result is less strange when I remove the batch covariate matrix X from the model but the result is without batch correction.
For example, the Muraro et al.'s pancreas dataset

the batch effect is present (in orange) but the overall result look less weird.
Any solutions possible at this time?
Hi, I found out something strange when using batch correction.


These are the two result from Muraro (pancreas) and MacParland (liver) datasets.
This is from Muraro
and this is from Macparland
Each had 4 and 5 donors respectively.
The commnad I used is the following:
RunGLMPCA(obj, X=model.matrix(as.formula('~factor(batch)'))The result is less strange when I remove the batch covariate matrix X from the model but the result is without batch correction.

For example, the Muraro et al.'s pancreas dataset
the batch effect is present (in orange) but the overall result look less weird.
Any solutions possible at this time?