Description Usage Arguments Details Value Note Examples

Calculate aFold for each gene and general sd

1 2 | ```
aFoldcomplexDesign(nncounts, design, condA, condB = NULL, lmodel = TRUE,
preval = 0.05, qforkappa = 0, priorgenesd, ...)
``` |

`nncounts` |
matrix for read count. |

`design` |
a numeric matrix for expriment, with samples and factors in rows and colnums, respectively. |

`condA` |
a vector of factors for DE analysis, which could be redundant. |

`condB` |
a vector of factors for DE analysis, which could be redundant, default is null. If not provide, the DE analysis will switch to assess difference across factors in condA (analysis of variance). If provide, DE analysis will focus on contrast between condB and condA (condB-condA). |

`lmodel` |
switch of fit linear model from limma-lmFit under design, default is TRUE. If TRUE, a gene-specific residual varaince will be estimated from (satuarated model - reduced model). Satuarated model includes all factors in design matrix and reduced model includes factors in condA+condB. |

`preval` |
pre-defined scale control for variance normalization, default is 0.05, a large value generally increases the fold-changes (decreases penalty of variances) under low expression. |

`qforkappa` |
quantile for estimating kappa(>=qforkappa), default is 0 (without trimming of data). Please set up a value in [0,1) if you want to trim the low expressed data. |

`priorgenesd` |
prior value for general SD of fold change, if provided, the estimation of general SD will be replaced by this value. |

`...` |
parameters passed to lmFit in limma |

shifted and calculate a set of parameters from normalized counts table

A list with log2 foldchange, general SD (gene-specific SD if lmodel is TRUE) for calculating pvalue, variance stablized counts and basemean

This function should run after `normalFactors`

.

1 2 3 4 5 6 7 |

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.