Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
brgew committed May 23, 2024
1 parent 4f76260 commit 16e629e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/preprocess_cds.R
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ preprocess_cds <- function(cds,
if( build_nn_index ) {
nn_index <- make_nn_index(subject_matrix=SingleCellExperiment::reducedDims(cds)[[method]], nn_control=nn_control, verbose=verbose)
cds <- tryCatch(set_cds_nn_index(cds=cds, reduction_method=method, nn_index=nn_index, verbose=verbose),
error - function(c) { stop(paste0(trimws(c), '\n* error in preprocess_cds')) })
error = function(c) { stop(paste0(trimws(c), '\n* error in preprocess_cds')) })
}
else
cds <- tryCatch(clear_cds_nn_index(cds=cds, reduction_method=method, nn_method='all'),
Expand Down

0 comments on commit 16e629e

Please sign in to comment.