Skip to content

Commit

Permalink
Similar story, but now for plot_marker_express_List()
Browse files Browse the repository at this point in the history
  • Loading branch information
lcolladotor committed Aug 23, 2024
1 parent c12fe8b commit 01ceaff
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 25 deletions.
21 changes: 8 additions & 13 deletions R/plot_marker_express_List.R
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
#' Plot a nested list of genes as a multi-page pdf
#'
#' This function plots a nested list of genes as a multi-page PDF, one for each sub list.
#' A use case is plotting known marker genes for multiple cell types over cell type
#' clusters with unknown identities.
#' This function plots a nested list of genes as a multi-page PDF, one for each
#' sub list. A use case is plotting known marker genes for multiple cell types
#' over cell type clusters with unknown identities.
#'
#' @param sce [SummarizedExperiment-class][SummarizedExperiment::SummarizedExperiment-class] object
#' @param pdf_fn A `character()` of the pdf filename to plot to, if `NULL` returns all plots
#' @param gene_list A named list containing the names of genes to plot
#' @param cellType_col The `character()` name of `colData` column containing cell type for `sce` data
#' @param gene_name_col The `character()` name of `rowData` matching the gene name from `gene_list`
#' @param color_pal A named `character(1)` vector that contains a color pallet matching the values in `cellType_col`.
#' @param plot_points A logical indicating whether to plot points over the violin,
#' defaults to `FALSE` as these often become over plotted and quite large (especially when saved as PDF)
#' #' @inheritParams plot_marker_express_ALL
#' @param gene_list A named `list()` of `character()` vectors containing the
#' names of genes to plot.
#' @inheritParams plot_marker_express_ALL
#'
#' @return A pdf with violin plots for the expression of top marker genes for all cell types
#' @return A PDF file with violin plots for the expression of top marker genes
#' for all cell types.
#'
#' @export
#'
Expand Down
26 changes: 14 additions & 12 deletions man/plot_marker_express_List.Rd

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

0 comments on commit 01ceaff

Please sign in to comment.