Skip to content

Commit

Permalink
Fix typo and use seq_len
Browse files Browse the repository at this point in the history
  • Loading branch information
lahuuki committed Aug 6, 2024
1 parent f0d4c42 commit bc5634c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/make_test_sce.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#' @param n_cellType Number of cell types
#' @param n_donor Number of donors
#'
#' @return SingelCellExperiment object with randomly generated counts and colData
#' @return SingleCellExperiment object with randomly generated counts and colData
#' @export
#'
#' @examples
Expand All @@ -29,7 +29,7 @@ make_test_sce <- function(n_cell = 100, n_gene = 100, n_cellType = 4, n_donor =
)

width <- nchar(as.character(n_cell))
rownames(pd) <- paste0("S", stringr::str_pad(1:n_cell, width = width, pad = "0"))
rownames(pd) <- paste0("S", stringr::str_pad(seq_len(n_cell), width = width, pad = "0"))
SummarizedExperiment::colData(sce) <- pd

rownames(sce) <- paste0("G", seq(n_gene))
Expand Down
2 changes: 1 addition & 1 deletion man/make_test_sce.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bc5634c

Please sign in to comment.