Skip to content

Commit

Permalink
Add some examples to avoid BiocCheck ERROR https://github.com/LieberI…
Browse files Browse the repository at this point in the history
  • Loading branch information
lcolladotor committed May 22, 2024
1 parent 9630e43 commit 46d9511
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/add_array_coords.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
#' coords_dir <- "dev/test_data"
#' spe_new <- add_array_coords(spe, sample_info, coords_dir, overwrite = TRUE)
#' }
#'
#' ## TODO: add working examples
#' args(add_array_coords)
add_array_coords <- function(spe, sample_info, coords_dir, overwrite = TRUE) {
# 55-micrometer diameter for Visium spot; 100 micrometers between spots;
# 65-micrometer spot diameter used in 'spot_diameter_fullres' calculation
Expand Down
3 changes: 3 additions & 0 deletions R/add_overlap_info.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
#' print(p_old)
#' print(p_new)
#' }
#'
#' ## TODO: add working examples
#' args(add_overlap_info)
add_overlap_info <- function(spe, metric_name) {
# State assumptions about columns expected to be in the colData
expected_cols <- c(
Expand Down
3 changes: 3 additions & 0 deletions R/build_spe.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
#' metric_name <- "sum_umi"
#' spe <- build_spe(sample_info, coords_dir, metric_name)
#' }
#'
#' ## TODO: add working examples
#' args(build_spe)
build_spe <- function(sample_info, coords_dir, metric_name, count_type = "sparse") {
message("Building SpatialExperiment using capture area as sample ID")
spe <- read10xVisium(
Expand Down
3 changes: 3 additions & 0 deletions man/add_array_coords.Rd

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

3 changes: 3 additions & 0 deletions man/add_overlap_info.Rd

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

3 changes: 3 additions & 0 deletions man/build_spe.Rd

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

0 comments on commit 46d9511

Please sign in to comment.