mt_diffexprs: Calculate differential expression statistics by a grouping...

Description Usage Arguments Details Value Author(s) Examples

View source: R/mt_diffexprs.R

Description

mt_diffexprs

Usage

1

Arguments

obj

(required) An object of class 'mmt' (see mt_load) or 'ampvis2' (see amp_load).

group

(required) Character string defining the grouping variable to use for differential expression.

Genome

(optional) If provided, character string defining the grouping variable in mt$mtgene to perform genome-specific normalization (See details).

intercept

(optional) Specify the level of 'group' to be used as reference/intercept. Default is by alphabetical order.

row_labels

(optional) Specify columns of rowdata to print on heatmap.

order_var_by

(optional) How to order rows of heatmap. You can specify 1) "variance" or 2) one of the levels in group, which will order according to the absolute value of that level. (default: "variance")

row_show

(optional) The number of rows to show.

Details

Typically one would subset low-expression genes (use mt_subset) before performing the analysis, due to a low signal/noise ratio. This also drastically reduces computation times and improves stability of the parameter estimation. If the parameter Genome is set, a genome-specific normalization of the count matrix is performed prior to standard DESeq2 analysis. For more details see Klingenberg & Meinicke (2017).

Value

A list with 2 elements:

Author(s)

Thomas Yssing Michaelsen tym@bio.aau.dk

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 
# Load data.
data("example_mmt")

# Compute the statistics.
DE_mt <- mt_diffexprs(example_mmt,
  group      = "Type",
  row_labels = c("GeneID","product"),
  intercept  = "ANAMMOX")

# Extract results for given levels.
mt_res <- mt_dumpDE(DE_mt,nom = "ELECTRODE",denom = "SUSPENTION")

# Show the output.
mt_res$MAplot
mt_res$BOXplot
head(mt_res$Table)

## End(Not run)

TYMichaelsen/mmtravis documentation built on Aug. 5, 2019, 10:48 a.m.