From a9feda8f5cb4b46e88387b58918ea6910b1ba7f7 Mon Sep 17 00:00:00 2001 From: Yue Cao Date: Thu, 11 Jan 2024 15:23:05 +1100 Subject: [PATCH] fix example bug --- DESCRIPTION | 2 +- R/utils.R | 3 +-- man/get_num_cell_per_spot.Rd | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 956ff4b..28adbdc 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: scFeatures Title: scFeatures: Multi-view representations of single-cell and spatial data for disease outcome prediction -Version: 1.3.1 +Version: 1.3.2 Authors@R: c( person(given = "Yue",family = "Cao", email = "yue.cao@sydney.edu.au", role=c("aut", "cre")), diff --git a/R/utils.R b/R/utils.R index 507cf16..a13afd5 100644 --- a/R/utils.R +++ b/R/utils.R @@ -213,8 +213,7 @@ bulk_sample <- function(alldata, ncores = 1) { #' #' data("example_scrnaseq" , package = "scFeatures") #' data <- example_scrnaseq -#' data$celltype <- NULL -#' +#' data <- list(data = data) #' number_of_cells <- get_num_cell_per_spot(data) #' #' diff --git a/man/get_num_cell_per_spot.Rd b/man/get_num_cell_per_spot.Rd index a97c308..7b6d48d 100644 --- a/man/get_num_cell_per_spot.Rd +++ b/man/get_num_cell_per_spot.Rd @@ -24,8 +24,7 @@ This value stored in the \code{number_cells} attribute. data("example_scrnaseq" , package = "scFeatures") data <- example_scrnaseq -data$celltype <- NULL - +data <- list(data = data) number_of_cells <- get_num_cell_per_spot(data)