LTMprep: Prepare the input data for LTM analysis

View source: R/LTMRmain.R

LTMprepR Documentation

Prepare the input data for LTM analysis

Description

This function can do quantile normalization, get the representative profile for rows with duplicated gene symbols, filter out genes with low expression values, and blunt the outliers of the given expression matrix.

Usage

LTMprep(
  prepD,
  quantNorm = TRUE,
  uniStyle = "mad",
  removeLowQuant = 0.1,
  bluntLowQuant = 0.025,
  bluntHighQuant = 0.975,
  digitsNum = 4,
  outFileSymbol = NULL,
  outDir = NULL
)

Arguments

prepD

a data frame. The first column is the gene symbol, and other columns are samples. One row per gene.

quantNorm

logical. Set TRUE will do quantile normalization across samples.

uniStyle

a character string. Select the way of getting the representative profile for rows with duplicated gene symbols. It must be "mad"(default), "sum", or "none", represent 'select the row with max mean absolute deviation', 'sum up duplicate rows' or 'there is no duplicate gene name, and skip the step of getting the representative profile'.

removeLowQuant

a numeric value. Filter out genes based on their median expression value. If the median expression value locate below the 0.25(default) quantile, this gene will be filtered out. Set it to 0 for keeping all the input genes.

bluntLowQuant

a numeric value. Blunt the outlier value across samples gene by gene. If an expression value is below the 0.025(default) quantile, this outlier value will be blunted.

bluntHighQuant

a numeric value. Blunt the outlier value across samples gene by gene. If an expression value is above the 0.975(default) quantile, this outlier value will be blunted.

digitsNum

an integer value. The integer indicates the number of decimal places to be used in the prepared data frame.

outFileSymbol

a character string. A prefix exists in the name of output file. Set it NULL(default) if prefer to return a data frame.

outDir

a character string. The name of directory used to store output file.

Value

a data fame prepared for LTM analysis

Examples

## please refer to the webpage of LTMR package

gangwug/LTMR documentation built on Dec. 30, 2022, 10:43 p.m.