Closed scottgigante-immunai closed 1 year ago
The PCR metric uses adata.X to compute the metric before integration, which combats overwrites. The metric value for combat scaled returns 0, thus it tries to compute 0/0. Combat should probably be in the _feature subtask and not the _embedding one
It should be in both, no? PCA on the features then? I think the solution would more be to distinguish the place the corrected features and the original features are stored consistently. Could you do that?
So this is an issue for all feature outputs then, no? Also combat unscaled, and seurat for example?
I think the PR I linked fixes that. It places the original feature matrix in adata_pre.X and not the corrected one
Would that overwrite the combat results?
I don't think so -- the function edited in #784 is only for batch_integration_embed
Unclear why. See raw results output at https://github.com/openproblems-bio/openproblems/actions/runs/3463236911. cc @LuckyMD