Description Usage Arguments Details Value Author(s) See Also Examples
Computes binding overlaps and co-occupancy statistics
1 2 3 4 5 | dba.overlap(DBA, mask, mode=DBA_OLAP_PEAKS,
contrast, method=DBA$config$AnalysisMethod, th=DBA$config$th,
bUsePval=DBA$config$bUsePval,
report, byAttribute, bCorOnly=TRUE, CorMethod="pearson",
DataType=DBA$config$DataType)
|
DBA |
DBA object |
mask |
mask or vector of peakset numbers indicating a subset of peaksets to use (see |
mode |
indicates which results should be returned (see MODES below). One of:
|
contrast |
contrast number to use. Only specified if contrast data is to be used when |
method |
if contrast is specified and
|
th |
if contrast is specified and |
bUsePval |
if contrast is specified and |
report |
if contrast is specified and |
byAttribute |
when computing co-occupancy statistics (
|
bCorOnly |
when computing co-occupancy statistics ( |
CorMethod |
when computing co-occupancy statistics ( |
DataType |
if
Can be set as default behavior by setting |
MODE: Generate overlapping/unique peaksets:
dba.overlap(DBA, mask, mode=DBA_OLAP_PEAKS, minVal)
MODE: Compute correlation and co-occupancy statistics (e.g. for dba.plotHeatmap):
dba.overlap(DBA, mask, mode=DBA_OLAP_ALL, byAttribute, minVal,
attributes, bCorOnly, CorMethod)
MODE: Compute correlation and co-occupancy statistics using significantly differentially bound sites (e.g. for dba.plotHeatmap):
dba.overlap(DBA, mask, mode=DBA_OLAP_ALL, byAttribute, minVal,
contrast, method, th=, bUsePval,
attributes, bCorOnly, CorMethod)
Note that the scores from the global binding affinity matrix will be used for correlations unless a report containing count data is specified.
MODE: Compute overlap rates at different stringency thresholds:
dba.overlap(DBA, mask, mode=DBA_OLAP_RATE, minVal)
Value depends on the mode specified in the mode parameter.
If mode=DBA_OLAP_PEAKS
, Value is an overlap record: a list of three peaksets for an A-B overlap, seven peaksets for a A-B-C overlap, and fifteen peaksets for a A-B-C-D overlap:
|
peaks in all peaksets |
|
peaks unique to peakset A |
|
peaks unique to peakset B |
|
peaks unique to peakset C |
|
peaks unique to peakset D |
|
peaks in all peaksets except peakset A |
|
peaks in all peaksets except peakset B |
|
peaks in all peaksets except peakset C |
|
peaks in all peaksets except peakset D |
|
peaks in peaksets A and B but not in peaksets C or D |
|
peaks in peaksets A and C but not in peaksets B or D |
|
peaks in peaksets A and D but not in peaksets B or C |
|
peaks in peaksets B and C but not in peaksets A or D |
|
peaks in peaksets B and D but not in peaksets A or C |
|
peaks in peaksets C and D but not in peaksets A or B |
If mode=DBA_OLAP_ALL
, Value is a correlation record:
a matrix with a row for each pair of peaksets and the following columns:
|
peakset number of first peakset in overlap |
|
peakset number of second peakset in overlap |
|
number of sites unique to peakset A |
|
number of sites unique to peakset B |
|
number of peaks in both peakset A and B (merged) |
|
correlation value A vs B |
|
percentage overlap (number of overlapping sites divided by number of peaks unique to smaller peakset |
If mode=DBA_OLAP_RATE
, Value is a vector whose length is the number of peaksets,
containing the number of overlapping peaks at the corresponding
minOverlaps
threshold (i.e., Value[1] is the total number of unique sites, Value[2] is the number of unique sites appearing in at least two peaksets, Value[3] the number of sites overlapping in at least three peaksets, etc.).
Rory Stark
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | data(tamoxifen_peaks)
# default mode: DBA_OLAP_PEAKS -- get overlapping/non overlapping peaksets
mcf7 <- dba.overlap(tamoxifen,tamoxifen$masks$MCF7&tamoxifen$masks$Responsive)
names(mcf7)
mcf7$inAll
# mode: DBA_OLAP_ALL -- get correlation record
mcf7 <- dba(tamoxifen,tamoxifen$masks$MCF7)
mcf7.corRec <- dba.overlap(mcf7,mode=DBA_OLAP_ALL,bCorOnly=FALSE)
mcf7.corRec
# mode: DBA_OLAP_RATE -- get overlap rate vector
data(tamoxifen_peaks)
rate <- dba.overlap(tamoxifen, mode=DBA_OLAP_RATE)
rate
plot(rate,type='b',xlab="# peaksets",ylab="# common peaks",
main="Tamoxifen dataset overlap rate")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.