Description Usage Arguments Details Value Author(s) See Also Examples
Constructs a new DBA object from a sample sheet, or based on an existing DBA object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | dba(DBA,mask, minOverlap=2,
sampleSheet="dba_samples.csv",
config=data.frame(AnalysisMethod=DBA_DESEQ2,th=0.05,
DataType=DBA_DATA_GRANGES, RunParallel=TRUE,
minQCth=15, fragmentSize=125,
bCorPlot=FALSE, reportInit="DBA",
bUsePval=FALSE, design=TRUE,
doBlacklist=TRUE, doGreylist=TRUE),
peakCaller="raw", peakFormat, scoreCol, bLowerScoreBetter,
filter, skipLines=0,
bAddCallerConsensus=FALSE,
bRemoveM=TRUE, bRemoveRandom=TRUE,
bSummarizedExperiment=FALSE,
attributes, dir)
|
DBA |
existing DBA object – if present, will return a fully-constructed DBA object
based on the passed one,
using criteria specified in the |
mask |
logical or numerical vector indicating which peaksets to include
in the resulting model if basing DBA object on an existing one.
See |
minOverlap |
only include peaks in at least this many peaksets in the main binding matrix
if basing DBA object on an existing one.
If |
sampleSheet |
data frame containing sample sheet, or file name of sample sheet to load (ignored if DBA is specified). Columns names in sample sheet may include:
For sample sheets loaded from a file, the accepted formats are comma-separated values
(column headers, followed by one line per sample),
or Excel-formatted spreadsheets ( |
config |
data frame containing configuration options,
or file name of config file to load when constructing a new DBA object from a sample sheet.
|
peakCaller |
if a |
peakFormat |
if a |
scoreCol |
if a |
bLowerScoreBetter |
if a |
filter |
if a |
skipLines |
if a |
bAddCallerConsensus |
add a consensus peakset for each sample with more than one peakset
(i.e. different peak callers) when constructing a new DBA object from a
|
bRemoveM |
logical indicating whether to remove peaks on chrM (mitochondria) when constructing a new DBA object from a sample sheet. |
bRemoveRandom |
logical indicating whether to remove peaks on chrN_random when constructing a new DBA object from a sample sheet. |
bSummarizedExperiment |
logical indicating whether to return resulting object as a |
bCorPlot |
logical indicating that a correlation heatmap should be plotted before returning.
If |
attributes |
vector of attributes to use subsequently as defaults when generating labels in plotting functions:
|
dir |
Directory path.
If supplied, files referenced in the |
MODE: Construct a new DBA object from a samplesheet:
dba(sampleSheet, config,
bAddCallerConsensus, bRemoveM, bRemoveRandom,
attributes)
MODE: Construct a DBA object based on an existing one:
dba(DBA, mask, attributes)
MODE: Convert a DBA object to a SummarizedExperiment object:
dba(DBA, bSummarizedExperiment=TRUE)
DBA object
Rory Stark and Gordon Brown
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 | # Create DBA object from a samplesheet
## Not run:
basedir <- system.file("extra", package="DiffBind")
tamoxifen <- dba(sampleSheet="tamoxifen.csv", dir=basedir)
tamoxifen
tamoxifen <- dba(sampleSheet="tamoxifen_allfields.csv")
tamoxifen
tamoxifen <- dba(sampleSheet="tamoxifen_allfields.csv",config="config.csv")
tamoxifen
## End(Not run)
#Create a DBA object with a subset of samples
data(tamoxifen_peaks)
Responsive <- dba(tamoxifen,tamoxifen$masks$Responsive)
Responsive
# change peak caller but leave peak format the same
basedir <- system.file("extra", package="DiffBind")
tamoxifen <- dba(sampleSheet="tamoxifen.csv", dir=basedir,
peakCaller="macs", peakFormat="raw", scoreCol=5 )
dba.show(tamoxifen, attributes=c(DBA_TISSUE,DBA_CONDITION,DBA_REPLICATE,DBA_CALLER))
# Convert DBA object to SummarizedExperiment
data(tamoxifen_counts)
sset <- dba(tamoxifen,bSummarizedExperiment=TRUE)
sset
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.