Skip to content

Commit 2699f8e

Browse files
committed
Fix error when running with zero projections
Signed-off-by: David DeTomaso <davedeto@gmail.com>
1 parent 461e372 commit 2699f8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/Projections.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ generateProjectionsInner <- function(expr, latentSpace, projection_genes=NULL, p
3636
projections[["PCA: 1,3"]] <- latentSpace[, c(1, 3)]
3737
projections[["PCA: 2,3"]] <- latentSpace[, c(2, 3)]
3838
N <- length(methodList)
39-
for (i in seq(N)){
39+
for (i in seq_len(N)){
4040
method <- names(methodList)[i]
4141
message(
4242
sprintf(" Running method %i/%i: %s ...", i, N, method)

0 commit comments

Comments
 (0)