Usage Arguments Value Author(s) Examples
1 2 | query.methodsNormalization(counts, condition, methodsNormalize = c("LIB",
"TMM", "RLE", "census", "SCnorm", "scran"))
|
counts |
Gene by sample expression count matrix (G by N). Use filtered count data. |
condition |
Binary vector of length N indicating sample biological condition. |
methodsNormalize |
Chararacter vector of evaluted methods. To run all methods, use c("normalize.cpm", "normalize.tmm", "normalize.rle", "normalize.census", "normalize.scnorm", "normalize.scran") |
libsize_factors
List of multiple size factors.
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 | 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]
condition_filtered <- condition[samplesToInclude]
---- Step 2: compute library size factors
sizefactors <- query.methodsNormalization(counts_filtered,
condition = condition_filtered,
methodsNormalize = c("TMM", "RLE",
"census","scran"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.