data(p300cbp.200bp)
exp.label=c("CBPT0", "CBPT301", "CBPT302", "p300T0",
"p300T301", "p300T302", "WangCBP", "Wangp300")
CBPT0=list()
CBPT0$region=p300cbp.200bp$region[200001:210000,]
CBPT0$count=p300cbp.200bp$count[200001:210000,1]
NBfit.simple<-mrf(CBPT0, method="NB", exp.label=exp.label[1])
enrich.mrf.simple<-enrich.mrf(NBfit.simple, analysis="separate")
## Joint analysis combining technical replicates
## (CBPT301,CBPT302) and (p300T301, p300T302)
p300cbp.mrf<-mrf.joint(p300cbp.200bp, method="NB",
rep.vec=c(1, 2,2,3,4,4, 5,6), p.vec=c(1,2,2, 3,4,4, 5,6), exp.label=exp.label)
## Enriched regions for all conditions and differentially bound
## regions for CBP and p300 at T30 using a 5p300cbp.enrich<-enrich.mrf(p300cbp.mrf, differential=TRUE, diff.vec=c(0,1,1,0,2,2,0,0))
Run the code above in your browser using DataLab