draw_expression_levels: Draw gene expression levels

View source: R/fct_viz.R

draw_expression_levelsR Documentation

Draw gene expression levels

Description

The normalized counts of the desired genes in the specified conditions are shown. Please limit the number of input genes for readability reasons (up to 10 genes).

Usage

draw_expression_levels(
  data,
  genes,
  conds = unique(stringr::str_split_fixed(colnames(data), "_", 2)[, 1]),
  gene.name.size = 12
)

Arguments

data

normalized expression dataframe, with genes as rownames and conditions as colnames.

genes

character vector of genes to be plotted (must be contained in the rownames of data)

conds

conditions to be shown on expression levels (must be contained in the column names of data before the _rep suffix). Default : all conditions.

gene.name.size

size of the facet plot title font for each gene. Default : 12

Examples

genes <- sample(abiotic_stresses$heat_DEGs, 4)
conditions <- c("C", "M", 'H', 'SH')
DIANE::draw_expression_levels(abiotic_stresses$normalized_counts,
genes = genes, conds = conditions)

OceaneCsn/DIANE documentation built on Jan. 10, 2024, 6:43 p.m.