Description Usage Arguments Value Author(s) Examples
function to estimate normalization parameters based on spike-in counts with GLM using offset length, seq depth per sample and cross-contamination control AND a spike-specific parameter to control for e.g.sequence bias
1 2 3 | spikein.normalization(counts, spikeins = rownames(counts), spikein.lengths,
spikein.labeling, samples = colnames(counts), conditions.labeling,
paired = TRUE, debug = FALSE)
|
counts |
matrix with counts for each spike (rows) and each sample (columns) |
spikeins |
names of spike-ins, in same order as rownames of counts |
spikein.lengths |
length of spike-ins (vector ordered accoring to "spikes") |
spikein.labeling |
labeling status of spike-ins (vector ordered accoring to "spikes" consisting of "L" and "U") |
samples |
individual name for each sample, e.g. colnames of count table |
conditions.labeling |
labeling status of sample (vector consisting of "L" and "T") |
paired |
is there for every labeled sample also a total sample and vice versa? only then sequencing depths can be estimated. Else they will be set to 1. |
debug |
should debugging modus be used? |
list consisting of fitting-results in a data.frame and vector of fitted.counts
Carina Demel
1 2 3 4 5 6 7 8 9 | data(spikein.counts)
spikeins = rownames(spikein.counts)
data(spikein.labeling)
data(spikein.lengths)
data(samples)
norm.res = spikein.normalization(spikein.counts, spikeins, spikein.lengths, spikein.labeling,
samples=colnames(spikein.counts), samples$conditions.labeling)
norm.res$sequencing.depth
norm.res$cross.contamination
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.