countSTAT: Statistical tests for count data

Description Usage Arguments Details Value Author(s) Examples

Description

Differential expression tests for count data

Usage

1
2
countSTAT(omicsData, norm_factors = NULL, comparisons, control = NULL, test,
  pval_adjust = "BH", pval_thresh = 0.05)

Arguments

omicsData

an object of the class 'seqData' created by as.seqData.

norm_factors

Named vector of normalization parameters to put into DESeq2 or edgeR. If NULL, will use DESeq2's or edgeR's inbuilt normalization. Default is NULL.

comparisons

dictates which pairwise comparisons to make. 'all' will give the results for all pairwise comparisons, 'control' will give the results for all comparisons against a specified control group, or a list of specific comparisons to be made or terms for a paired test can be given.

control

only necessary when performing comparisons against control, name of the control group. default is NULL.

test

names of which differential expression test(s) to use, options are "dw" (DESeq2 analysis with Wald test), "dl" (DESeq2 analysis with LRT test), "dp" (DESeq2 analysis on paired data), "eq" (edgeR analysis with QCML test), "el" (edgeR analysis with LRT test), "ef" (edgeR analysis with QL F-test), and/or "ep" (edgeR analysis on paired data). At this point, cannot perform a paired analysis at the same time as the other tests.

pval_adjust

Name of which multiple comparisons adjustment to use. Options are "holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "FDR", and "none". See ?p.adjust for more information. The default is "BH".

pval_thresh

P-value threshold for significance. The default is 0.05.

Details

Perform pairwise differential abundance analysis of omicsData using DESeq2 and/or edgeR.

Value

A results object containing the log2 fold change (logFC), log-average concentration/abundance (logCPM), likelihood ratio (LR), exact p-value for differential expression using the negative binomial model (PValue), and the p-value adjusted for multiple testing (FDR) for every pairwise comparison and every feature.

Author(s)

Allison Thompson

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(mintJansson)
data(cDNA_hiseq_data)
mycdnadata <- group_designation(omicsData = cDNA_hiseq_data, main_effects = c("treatment"), time_course=NULL)
mycdnadata_norm <- normalize_data(omicsData = mycdnadata, norm_fn = "percentile")
mycdnadata_dw_results <- countSTAT(omicsData = mycdnadata_norm, comparisons = list(c("Neg","Plus")), control = NULL, test = "dw", pval_adjust = "none", pval_thresh = 0.05)
mycdnadata_all_results <- countSTAT(omicsData = mycdnadata_norm, comparisons = "all", control = NULL, test = c("dw","eq","el","ef"), pval_adjust = "BH", pval_thresh = 0.05)

## End(Not run)

pmartR/pmartRseq documentation built on May 25, 2019, 9:20 a.m.