comparedeg_scatter {SCdeconR}R Documentation

Generate a scatter plot comparing two differential expression results

Description

Generate a scatter plot of fold changes comparing two differential expression results, e.g. w/wo adjusting for cell proportion differences.

Usage

comparedeg_scatter(
  results1,
  results2,
  result_names = NULL,
  fc_cutoff,
  pval_cutoff,
  pvalflag = TRUE,
  interactive = FALSE
)

Arguments

results1

a data.frame containing differential expression results with five columns: "Gene name", "log2 fold change", "log2 average expression", "p value", "adjusted p value". The second element of the output from function run_de.

results2

similar to results1.

result_names

a vector of length 2 indicating the names of the two differential results. If NULL, names will be set to c("results1", "results2")

fc_cutoff

fold change cutoff to identify differential expressed genes.

pval_cutoff

p value cutoff to identify differential expressed genes.

pvalflag

a logical value indicating whether to use adjusted p value in selecting differential expressed genes.

interactive

a logical value indicating whether to generate an interactive plot.

Details

See examples from run_de.

Value

a ggplot object or plotly object if interactive is set to TRUE


[Package SCdeconR version 1.0.0 Index]