Description Usage Arguments Value Author(s) References Examples
Obtains expression estimates from denovoGenomeExpr
objects, as
returned by calcDenovo
.
When rpkm
is set to TRUE
, fragments per kilobase
per million are returned. Otherwise relative expression estimates are
returned.
The estimates can be obtained by Bayesian model averaging (default) or by selecting the model with highest posterior probability. See details.
1 | denovoExpr(x, pc, rpkm = TRUE, summarize = "modelAvg", minProbExpr = 0.5, minExpr = 0.05)
|
x |
|
pc |
Named vector of exon path counts as returned by |
rpkm |
Set to |
summarize |
Set to |
minProbExpr |
Variants with (marginal posterior) probability of being
expressed below |
minExpr |
Variants with relative expression |
Expression set with expression estimates.
The featureData
indicates the gene island id, posterior probability
that each variant is expressed (column "probExpressed"
) and the
number of aligned reads per gene island (column "explCnts"
).
David Rossell
Rossell D, Stephan-Otto Attolini C, Kroiss M, Stocker A. Quantifying Alternative Splicing from Paired-End RNA-sequencing data. Annals of Applied Statistics, 8(1):309-330.
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 | ## NOTE: toy example with few reads & genes to illustrate code usage
## Results with complete data are much more interesting!
data(K562.r1l1)
data(hg19DB)
#Pre-process
bam0 <- rmShortInserts(K562.r1l1, isizeMin=100)
pbam0 <- procBam(bam0)
#Estimate distributions, get path counts
distrs <- getDistrs(hg19DB,bam=bam0,readLength=75)
pc <- pathCounts(pbam0, DB=hg19DB)
#Set prior distrib on model space
mprior <- modelPrior(hg19DB, maxExons=40, smooth=FALSE)
#Fit model
denovo <- calcDenovo(distrs,targetGenomeDB=hg19DB,pc=pc,readLength=75,priorq=3,mprior=mprior,minpp=0)
head(names(denovo))
denovo[['6499']]
posprob(denovo[['6499']])
#Get estimates
eset <- denovoExpr(denovo, pc=pc, rpkm=TRUE, minProbExpr=0.5)
head(exprs(eset))
head(fData(eset))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.