scandal_mean_expression_frequency_plot: Mean gene expression distribution plot

Description Usage Arguments Value Author(s) See Also

View source: R/preprocess.R

Description

Computes the *log2(mean exression)* of each genes in x and plots a histogram depicting the distribution mean gene expression. Adds a vertical line demarcating the *expression cutoff*.

Usage

1
2
3
4
5
6
7
8
9
scandal_mean_expression_frequency_plot(
  x,
  expression_cutoff,
  sample_id,
  project_id = ".",
  show_plot = TRUE,
  save_to_file = TRUE,
  histogram_bin_width = 0.2
)

Arguments

x

an expression matrix.

expression_cutoff

a numeric representing the minimal log2 mean expression per gene below which a gene is considered lowly expressed.

sample_id

an ID of the sample being processed. Used for generating the filename and hence is mandatory.

project_id

a character identifier of the current project. Used for saving generated plot to the project's plots directory. Default is "." (current working directory).

show_plot

logical indicating if the plots should be printed to the graphics device. Allows saving the plots without printing to the graphics device by setting to FALSE. Default is TRUE.

save_to_file

logical indicating wether the plots should be saved to the plots directory. Default is TRUE.

histogram_bin_width

controls the width of each histogram bin. Default is 0.2.

Value

Invisibly returns the generated plot.

Author(s)

Avishay Spitzer

See Also

scandal_histogram_plot


dravishays/scandal documentation built on Jan. 8, 2020, 1:30 p.m.