Execute DESeq2 DGE default analysis is configured to read only kallisto files, and count data
Source:R/runDeseq2.R
runDeseq2.RdExecute DESeq2 DGE default analysis is configured to read only kallisto files, and count data
Usage
runDeseq2(
countMatrix,
groupName,
numberReplics,
controlGroup,
contrastGroup,
fitTypeParam = "local"
)Arguments
- countMatrix
original table count or abundance data
- groupName
list of text, name of samples or treatment
- numberReplics
number of replicate (technical or biological) by sample
- controlGroup
specific reference level used as control (this name should be in groupName List)
- contrastGroup
specific reference level that you need compare (this name should be in groupName List)
- fitTypeParam
either "parametric", "local", "mean", or "glmGamPoi" for the type of fitting of dispersions to the mean intensity
Examples
set.seed(42)
counts <- matrix(
as.integer(c(
rnbinom(200, mu = 10, size = 1),
rnbinom(200, mu = 100, size = 1)
)),
nrow = 100,
dimnames = list(
paste0("gene", seq_len(100)),
paste0("sample", seq_len(4))
)
)
groups_info <- c("control", "control", "treated", "treated")
treats <- c("control", "treated")
numberReplicsModel <- 2
res <- runDeseq2(counts, treats, numberReplicsModel,
controlGroup = "control", contrastGroup = "treated",
fitTypeParam = "local"
)
#> converting counts to integer mode
#> estimating size factors
#> estimating dispersions
#> gene-wise dispersion estimates
#> mean-dispersion relationship
#> final dispersion estimates
#> fitting model and testing
utils::head(res)
#> baseMean log2FoldChange lfcSE stat pvalue padj
#> gene49 61.33954 -4.474586 1.358609 -3.293504 0.0009894697 0.09894697
#> gene33 45.38362 4.498825 1.648520 2.729008 0.0063525156 0.17994440
#> gene14 22.34744 -3.063946 1.182995 -2.589991 0.0095978393 0.17994440
#> gene48 20.08076 4.787228 1.859389 2.574624 0.0100349212 0.17994440
#> gene58 26.98364 3.625938 1.411685 2.568519 0.0102134190 0.17994440
#> gene5 24.36280 3.983786 1.562752 2.549212 0.0107966639 0.17994440