Description Usage Arguments Details Value See Also
Fits the BMEA model sequentially for more than one unit
1 2 3 | fitBmeaBatch(celSet, bgCelSet, units, conditions, contMatrix, ...,
paramToSave = c("c", "mu", "phi"), keepSims = FALSE, zGene = 4.265,
zExon = 1.645)
|
celSet |
an |
bgCelSet |
a list with components |
units |
the units (i.e. genes) to be fit |
conditions |
a vector of factors specifying which cell-type/condition each array in the |
contMatrix |
a contrast matrix for the summarised output |
... |
used for passing further arguments such as |
paramToSave |
the model parameters to be saved for downstream processing. The parameters "c", "mu" & "phi" will always be saved. |
keepSims |
logical variable.
If |
zGene |
the zScore below which a gene is classified as not detectable above background |
zExon |
the zScore below which an exon is classified as not detectable above background |
This is the function used to fit the BMEA model to a batch of units (or genes). Each unit is tested to see if it contains multiple exons, and is expressed detectably above background before analysis. For single exon genes, all exon-level terms are omitted from the model, as the PLM model used for conventional 3' Arrays holds for these genes & can be used with minimal computational effort.
Units that are not fitted are also removed from the output vector of units.
Restricting the parameters to be saved, via the paramToSave
argument can significantly
save the memory requirements for large batches of genes.
This will default to the parameters "c", "mu" & "phi".
The signal parameter "S" is the most demanding on memory resources &
is generally not advised to be saved unless it is of specific interest.
An object of class("BMEA.Batch"), which is a list with the following components:
$celSet the celSet
being analysed, as supplied to the function
$summaries a list
with a component for each unit.
Each component contains the summary statistics for the unit, including the convergence statistics "rHat" & "nEff."
$logFC a list
with a component for each contrast supplied in contMatrix
.
Each row contains the summary statistics for a single unit, for that contrast
$phiLogFC a list
with a component for each contrast supplied in contMatrix
.
Each row represents an exon (group).
$conditions the cell-types (or conditions) as factors, as supplied to the function
$units a data.frame
with the units fit & the corresponding unitNames.
$paramToSave the parameters requested to be saved.
$sims a list
with a component for each unit.
If keepSims=FALSE
, will return NULL
for each component.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.