Skip to content

Commit

Permalink
Fix roxygen for some functions. Inherit parameters in a couple cases …
Browse files Browse the repository at this point in the history
…instead of just copying
  • Loading branch information
Nick-Eagles committed Nov 2, 2023
1 parent d1cb211 commit d504136
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 15 deletions.
24 changes: 9 additions & 15 deletions R/multi_gene.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#'
#' @export
#' @author Nicholas J. Eagles
#' @import SpatialExperiment SummarizedExperiment rlang
#' @import SpatialExperiment SummarizedExperiment
#' @family Spot plots summarizing expression of multiple genes simultaneously
#'
#' @examples
Expand Down Expand Up @@ -76,24 +76,14 @@ spot_plot_z_score = function(
#' computed of how many \code{genes} have nonzero expression, and this quantity
#' is plotted across the entire capture area.
#'
#' @param spe A \code{SpatialExperiment} with colData column \code{exclude_overlapping},
#' passed to \code{spatialLIBD::vis_gene} or \code{spatialLIBD::vis_clus}
#' @param genes character() of gene names to plot in combination, expected to be
#' in \code{rownames(spe)}
#' @param sample_id character(1) passed to \code{sampleid} in
#' \code{spatialLIBD::vis_gene} or \code{spatialLIBD::vis_clus}. Assumed to be a
#' donor, possibly consisting of several capture areas to plot at once
#' @param assayname character(1) passed to \code{spatialLIBD::vis_gene}
#' @param minCount numeric(1) passed to passed to \code{spatialLIBD::vis_gene}
#' @param ... Parameters accepted by \code{spot_plot}, excluding
#' \code{is_discrete} or \code{var_name}, which are handled internally
#' @inheritParams spot_plot_z_score
#'
#' @return A \code{ggplot} object containing a "spot plot" of the specified
#' sample and genes
#'
#' @export
#' @author Nicholas J. Eagles
#' @import SpatialExperiment SummarizedExperiment rlang
#' @import SpatialExperiment SummarizedExperiment
#' @family Spot plots summarizing expression of multiple genes simultaneously
#'
#' @examples
Expand Down Expand Up @@ -136,8 +126,12 @@ spot_plot_sparsity = function(
return(p)
}

# Check the validity of arguments passed to plotting functions defined in
# this script
#' Check the validity of arguments passed to \code{multi_gene.R} plotting functions
#'
#' @author Nicholas J. Eagles
#' @inheritParams spot_plot_z_score
#' @import SpatialExperiment SummarizedExperiment rlang
#' @return NULL
.multi_gene_validity_check = function(
spe, genes, sample_id, assayname, minCount, ...
) {
Expand Down
32 changes: 32 additions & 0 deletions man/dot-multi_gene_validity_check.Rd

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

0 comments on commit d504136

Please sign in to comment.