You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using DimPlot on a SeuratObject with multiple reductions that have the same key (for instance, PC_), the reduction parameter is ignored and the last inserted reduction is always the one showed.
The function does not take into account the reduction, only the name of the key, so it does not work as expected when you have multiple reductions with the same key.
nigiord
changed the title
BUG: DimPlot ignore the reduction parameter if multiple reductions have the same key
BUG: DimPlot ignores the reduction parameter if multiple reductions have the same key
May 5, 2025
Issue Description
When using DimPlot on a SeuratObject with multiple reductions that have the same key (for instance,
PC_
), the reduction parameter is ignored and the last inserted reduction is always the one showed.Reproducing Code Example
Error Message
No error message, but only PCA_REV is plotted whichever reduction you choose, even if the reductions are about different assays.
Additional Comments
Bug comes from the use of FetchData there:
seurat/R/visualization.R
Lines 909 to 914 in 9354a78
The function does not take into account the reduction, only the name of the key, so it does not work as expected when you have multiple reductions with the same key.
Session Info
The text was updated successfully, but these errors were encountered: