R/cmd-cellranger.R

#' Run cellranger
#' @param subcmd Sub-Command of cellranger.
#' @param ... `r rd_dots("cellranger")`.
#' @param cellranger `r rd_cmd("cellranger")`.
#' @inherit exec return
#' @seealso
#' `r rd_seealso()`
#' @family command
#' @export
cellranger <- make_command(
    "cellranger",
    function(subcmd = NULL, ..., cellranger = NULL) {
        assert_string(subcmd, allow_empty = FALSE, allow_null = TRUE)
        assert_string(cellranger, allow_empty = FALSE, allow_null = TRUE)
        CellRanger$new(cmd = cellranger, ..., subcmd = subcmd)
    }
)

CellRanger <- R6Class(
    "CellRanger",
    inherit = Command,
    private = list(
        alias = function() "cellranger",
        setup_help_params = function() "--help",
        combine_params = function(subcmd) {
            c(subcmd, super$combine_params())
        }
    )
)

Try the blit package in your browser

Any scripts or data that you put into this service are public.

blit documentation built on April 12, 2025, 1:16 a.m.