Skip to content

Commit 577c139

Browse files
lldelisleanashen
authored andcommitted
only use the reduction loadings specified by dims.to.integrate when reference is specified
1 parent e3478f7 commit 577c139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/integration.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1796,7 +1796,7 @@ IntegrateEmbeddings.IntegrationAnchorSet <- function(
17961796
suppressWarnings(expr = unintegrated[[new.reduction.name]] <- CreateDimReducObject(
17971797
embeddings = as.matrix(x = t(x = integrated.data)),
17981798
assay = intdr.assay,
1799-
loadings = Loadings(object = reductions),
1799+
loadings = Loadings(object = reductions)[,dims.to.integrate],
18001800
key = paste0(new.reduction.name.safe, "_")
18011801
))
18021802
unintegrated <- SetIntegrationData(

0 commit comments

Comments
 (0)