
Last chance! 50% off unlimited learning
Sale ends in
dba.plotVenn(DBA, mask, overlaps, label1, label2, label3, label4, main, sub, contrast, method=DBA$config$AnalysisMethod, th=DBA$config$th, bUsePval=DBA$config$bUsePval, bDB=TRUE, bNotDB, bAll=TRUE, bGain=FALSE, bLoss=FALSE, labelAttributes, DataType=DBA$config$DataType)
dba.mask
.
Only one of mask or overlaps is used.
dba.overlap(Report=DBA_OLAP_PEAKS)
.
Only one of mask or overlaps is used.
dba.show(DBA, bContrast=T)
to get contrast numbers.
contrast
is specified, include results from analyses using this method or methods:
contrast
is specified, use this significance threshold; all sites with FDR (or p-values, see bUsePval) less than or equal to this value will be considered differentially bound (DB).
contrast
is specified, this logical indicates whether to use FDR (FALSE) or p-value (TRUE) for thresholding.
contrast
is specified, this logical indicates that peaksets should include Differentially Bound (DB) sites (respecting the th
, bUsePval
, and fold
parameters).
contrast
is specified, this logical indicates that peaksets should include non-Differentially Bound (non-DB) sites (respecting the th
, bUsePval
, and fold
parameters).
contrast
is specified, this logical indicates peaksets combining peaks with both positive and negative fold changes should be included.
contrast
is specified, this logical indicates that peaksets with only positive fold changes should be included.
contrast
is specified, this logical indicates that peaksets with only negative fold changes should be included.
label
s are not specified, use these attributes to create default labels:
Only specified attributes that differ between peaksets will be used for labels; the ones that have the same value for all peaksets will be used as the default subtitle.
bReturnPeaksets
is set to TRUE
, the class of object that peaksets should be returned as:
Can be set as default behavior by setting DBA$config$DataType.
Alternatively, this can be set to:
to return a results-based DBA object, if a contrast
is specified.
dba.overlap
), or, if DataType=DBA_DATA_DBAOBJECT
, a results-based DBA object.
dba.analyze
, dba.overlap
,
dba.report
, dba.plotPCA
,
vennPlot
data(tamoxifen_peaks)
par(mfrow=c(2,2))
# 2-way Venn
dba.plotVenn(tamoxifen,6:7)
dba.plotVenn(tamoxifen,tamoxifen$masks$ZR75)
# 3-way Venn (done two different ways)
dba.plotVenn(tamoxifen,tamoxifen$masks$MCF7&tamoxifen$masks$Responsive)
olaps <- dba.overlap(tamoxifen,tamoxifen$masks$MCF7&tamoxifen$masks$Responsive)
dba.plotVenn(tamoxifen,overlaps=olaps,
label1="Rep 1",label2="Rep 2",label3="Rep 3",main="MCF7 (Responsive) Replicates")
#Venn of overlaps
Responsive=dba(tamoxifen,tamoxifen$masks$Responsive)
Responsive
Responsive <- dba.peakset(Responsive,1:3,sampID="MCF7")
Responsive <- dba.peakset(Responsive,4:5,sampID="T47D")
Responsive <- dba.peakset(Responsive,6:7,sampID="ZR75")
par(mfrow=c(1,1))
dba.plotVenn(Responsive,Responsive$masks$Consensus)
#4-way overlap
data(tamoxifen_peaks)
tamoxifen <- dba.peakset(tamoxifen, consensus=DBA_TISSUE)
par(mfrow=c(1,1))
dba.plotVenn(tamoxifen,tamoxifen$masks$Consensus,main="Tissue consensus overlaps")
#Venns of differentially bound sites
data(tamoxifen_analysis)
tamoxifen <- dba.contrast(tamoxifen,categories=DBA_CONDITION,block=tamoxifen$masks$MCF7)
tamoxifen <- dba.analyze(tamoxifen,method=c(DBA_EDGER,DBA_DESEQ2))
dba.plotVenn(tamoxifen,contrast=1,method=DBA_ALL_METHODS_BLOCK)
dba.plotVenn(tamoxifen,contrast=1,method=DBA_ALL_BLOCK,bAll=FALSE,bGain=TRUE,bLoss=TRUE)
par(mfrow=c(2,1))
dba.plotVenn(tamoxifen,contrast=1,method=DBA_ALL_BLOCK,bAll=FALSE,bGain=TRUE,bLoss=FALSE)
dba.plotVenn(tamoxifen,contrast=1,method=DBA_ALL_BLOCK,bAll=FALSE,bGain=FALSE,bLoss=TRUE)
Run the code above in your browser using DataLab