harmony icon indicating copy to clipboard operation
harmony copied to clipboard

Bug: dims.use is not working

Open andreaskapou opened this issue 3 years ago • 0 comments

Hi,

Just to note that there is a bug in your code and the dims.use parameter is ignored inside the code and never subsets the embedding matrix. This was brought as an issue earlier ( #82 ).

The issue is that you never subset the embedding matrix you extract with the dims.use parameter. You just need to add this line in the RunHarmony.R file (in all functions for Seurat, SCE etc):

embedding <- embedding[, dims.use]

for instance after line https://github.com/immunogenomics/harmony/blob/master/R/RunHarmony.R#L120 for the Seurat specific function.

Best, Andreas

andreaskapou avatar Mar 25 '22 12:03 andreaskapou