Usage Arguments Value Author(s) Examples
1 2 3 | query.methodsMeanExpression(counts, counts_normed, condition, libsize_factors,
methodsMeanExpression = c("DESeq2", "limmaVoom", "edgeR", "BPSC", "MAST",
"ROTS"))
|
counts |
Gene by sample expression count matrix (G by N). Use filtered count data. |
counts_normed |
Normalized expression count matrix (typicall CPM with normlized library size). |
condition |
Binary vector of length N indicating sample biological condition. |
libsize_factors |
Numeric vector of scale factors for library size factors. |
methodsMeanExpression |
Chararacter vector of evaluted methods. To run all methods, use c("DESeq2", "limmaVoom", "edgeR","BPSC", "MAST", "ROTS") |
control |
|
pvalues
data.frame of significance values. Columns corresond to input methods.
Chiaowen Joyce Hsiao
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | ipsc_eset <- get(load(system.file("testdata", "HumanTungiPSC.rda", package = "ashbun")))
counts <- exprs(ipsc_eset)[sample(nrow(exprs(ipsc_eset)), 500), ]
condition <- pData(ipsc_eset)$replicate
----- Step 1: filtering
counts_filtered <- filter.excludeAllZeros(counts)
featuresToInclude <- filterFeatures.fractionExpressed(counts_filtered,
thresholdDetection = 1,
fractionExpressed = .01)$index_filter
samplesToInclude <- filterSamples.fractionExpressed(counts_filtered,
thresholdDetection = 1,
fractionExpressed = .01)$index_filter
counts_filtered <- counts_filtered[featuresToInclude, samplesToInclude]
---- Step 2: compute library size factors
libsize_factors <- normalize.scran(counts = counts_filtered)$libsize_factors
counts_normed <- normalize.cpm(counts_filtered, libsize_factors)$cpm
---- Step 3: run DE methods
pvals_list <- query.methodsMeanExpression(counts = counts_filtered,
counts_normed = counts_normed,
condition = condition_filtered,
libsize_factors = libsize_factors,
methodsMeanExpression = c("limmaVoom",
"DESeq2",
"edgeR",
"MAST"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.