Skip to content

Commit

Permalink
Edit the R docs a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
lcolladotor committed May 22, 2024
1 parent 2b3512f commit 460558b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion R/add_array_coords.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#' @examples
#' # For internal testing
#' \dontrun{
#' library(HDF5Array)
#' library("HDF5Array")
#' spe <- loadHDF5SummarizedExperiment("dev/test_data/spe_filtered")
#' sample_info <- readr::read_csv("dev/test_data/sample_info.csv")
#' coords_dir <- "dev/test_data"
Expand Down
2 changes: 1 addition & 1 deletion R/add_overlap_info.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#' @examples
#' # For internal testing
#' \dontrun{
#' library(HDF5Array)
#' library("HDF5Array")
#' spe <- loadHDF5SummarizedExperiment("dev/test_data/spe_filtered")
#' spe_new <- add_overlap_info(spe, metric_name = "sum_umi")
#' p_old <- spot_plot(
Expand Down
7 changes: 4 additions & 3 deletions R/spe_to_seurat.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#'
#' @examples
#'
#' # Grab an example SpatialExperiment and add dummy "transformed" versions of
#' # spatial coordinates, which are to be converted
#' ## Grab an example SpatialExperiment and add dummy "transformed" versions of
#' ## spatial coordinates, which are to be converted
#' spe <- if (!exists("spe")) {
#' spatialLIBD::fetch_data(type = "spatialDLPFC_Visium_example_subset")
#' }
Expand All @@ -32,8 +32,9 @@
#' spe$pxl_col_in_fullres_transformed <- SpatialExperiment::spatialCoords(spe)[, "pxl_col_in_fullres"]
#' colnames(spe) <- spe$key
#'
#' # Convert
#' ## Convert from a SpatialExperiment to a Seurat object
#' seur <- spe_to_seurat(spe)
#' seur
spe_to_seurat <- function(spe, verbose = TRUE) {
SPOT_DIAMETER <- 55e-6

Expand Down
2 changes: 1 addition & 1 deletion man/add_array_coords.Rd

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

2 changes: 1 addition & 1 deletion man/add_overlap_info.Rd

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

7 changes: 4 additions & 3 deletions man/spe_to_seurat.Rd

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

0 comments on commit 460558b

Please sign in to comment.