Description Usage Arguments Details Value Examples

View source: R/Linnorm.limma.R

This function first performs Linnorm transformation on the dataset. Then, it will perform limma for DEG analysis. Please cite both Linnorm and limma when you use this function for publications.

1 2 |

`datamatrix` |
The matrix or data frame that contains your dataset. Each row is a feature (or Gene) and each column is a sample (or replicate). Raw Counts, CPM, RPKM, FPKM or TPM are supported. Undefined values such as NA are not supported. It is not compatible with log transformed datasets. |

`design` |
A design matrix required for limma. Please see limma's documentation or our vignettes for more detail. |

`RowSamples` |
Logical. In the datamatrix, if each row is a sample and each row is a feature, set this to TRUE so that you don't need to transpose it. Linnorm works slightly faster with this argument set to TRUE, but it should be negligable for smaller datasets. Defaults to FALSE. |

`MZP` |
Double >=0, <= 1. Minimum non-Zero Portion Threshold for this function. Genes not satisfying this threshold will be removed from HVG anlaysis. For exmaple, if set to 0.3, genes without at least 30 percent of the samples being non-zero will be removed. Defaults to 0. |

`output` |
Character. "DEResults" or "Both". Set to "DEResults" to output a matrix that contains Differential Expression Analysis Results. Set to "Both" to output a list that contains both Differential Expression Analysis Results and the transformed data matrix. |

`noINF` |
Logical. Prevent generating INF in the fold change column by adding the estimated count of one. If it is set to FALSE, zero or INF will be generated if one of the conditions has zero expression. Defaults to TRUE. |

`robust` |
Logical. In the eBayes function of Limma, run with robust setting with TRUE or FALSE. Defaults to FALSE. |

`...` |
arguments that will be passed into Linnorm's transformation function. |

This function performs both Linnorm and limma for users who are interested in differential expression analysis.

If output is set to "DEResults", this function will output a matrix with Differntial Expression Analysis Results with the following columns:

logFC: Log 2 Fold Change

XPM: Average Expression. If input is raw count or CPM, this column has the CPM unit. If input is RPKM, FPKM or TPM, this column has the TPM unit.

t: moderated t-statistic

P.Value: p value

adj.P.Val: Adjusted p value. This is also called False Discovery Rate or q value.

B: log odds that the feature is differential

If output is set to Both, this function will output a list with the following objects:

DEResults: Differntial Expression Analysis Results as described above.

Linnorm: Linnorm transformed data matrix.

1 2 3 4 5 6 7 8 9 | ```
#Obtain example matrix:
data(LIHC)
#Create limma design matrix (first 5 columns are tumor, last 5 columns are normal)
designmatrix <- c(rep(1,5),rep(2,5))
designmatrix <- model.matrix(~ 0+factor(designmatrix))
colnames(designmatrix) <- c("group1", "group2")
rownames(designmatrix) <- colnames(LIHC)
#DEG analysis
DEGResults <- Linnorm.limma(LIHC, designmatrix)
``` |

Linnorm documentation built on Nov. 17, 2017, 11:50 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.