Skip to content

Commit 501aecb

Browse files
committed
Remove requirement that matrix_control list be given in convert_counts_matrix call.
1 parent 64a996a commit 501aecb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

R/matrix.R

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,12 +1083,9 @@ check_bpcells_counts_matrix_pair <- function(cds) {
10831083
#'
10841084
#' @export
10851085
convert_counts_matrix <- function(cds, matrix_control=list()) {
1086-
assertthat::assert_that(is.list(matrix_control) && length(matrix_control) > 0,
1086+
assertthat::assert_that(is.list(matrix_control),
10871087
msg = 'convert_counts_matrix: invalid matrix_control parameter')
10881088

1089-
assertthat::assert_that(!is.null(matrix_control[['matrix_class']]),
1090-
msg = 'convert_counts_matrix: matrix_control[[\'matrix_class\']] missing in matrix_control list.')
1091-
10921089
matrix_control_default <- tryCatch(set_matrix_control_default(matrix_control=matrix_control, control_type='unrestricted'),
10931090
error = function(c) { stop(paste0(trimws(c), '\n* error in convert_counts_matrix')) })
10941091

0 commit comments

Comments
 (0)