Skip to content

Commit 745b1cb

Browse files
authored
only use the reduction loadings specified by dims.to.integrate when reference is specified
1 parent 5c0a266 commit 745b1cb

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
@@ -1732,7 +1732,7 @@ IntegrateEmbeddings.IntegrationAnchorSet <- function(
17321732
suppressWarnings(expr = unintegrated[[new.reduction.name]] <- CreateDimReducObject(
17331733
embeddings = as.matrix(x = t(x = integrated.data)),
17341734
assay = intdr.assay,
1735-
loadings = Loadings(object = reductions),
1735+
loadings = Loadings(object = reductions)[,dims.to.integrate],
17361736
key = paste0(new.reduction.name.safe, "_")
17371737
))
17381738
unintegrated <- SetIntegrationData(

0 commit comments

Comments
 (0)