Skip to content

Commit

Permalink
I cannot have calculate_for_pca_dimensions bigger than top
Browse files Browse the repository at this point in the history
  • Loading branch information
stemangiola committed Oct 28, 2023
1 parent 749ce37 commit 67b61d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -2259,7 +2259,7 @@ get_reduced_dimensions_UMAP_bulk <-
of_samples = TRUE,
transform = log1p,
scale = TRUE,
calculate_for_pca_dimensions = 20,
calculate_for_pca_dimensions = min(20, top),
...) {

if(!is.null(calculate_for_pca_dimensions) & (
Expand Down
2 changes: 1 addition & 1 deletion R/functions_SE.R
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ get_reduced_dimensions_UMAP_bulk_SE <-
of_samples = TRUE,
transform = log1p,
scale = NULL, # This is only a dummy argument for making it compatibble with PCA
calculate_for_pca_dimensions = 20,
calculate_for_pca_dimensions = min(20, top),
...) {
# Comply with CRAN NOTES
. = NULL
Expand Down

0 comments on commit 67b61d5

Please sign in to comment.