dba.save: save DBA object

Description Usage Arguments Value Author(s) See Also Examples

View source: R/DBA.R

Description

Writes out DBA object

Usage

1
2
3
dba.save(DBA, file='DBA', dir='.', pre='dba_', ext='RData', 
         bRemoveAnalysis=FALSE, bRemoveBackground=FALSE,
         bCompress=FALSE)

Arguments

DBA

DBA object

file

main filename

dir

directory to save model in

pre

string to pre-pend to filename

ext

extensions to use

bRemoveAnalysis

if TRUE, will remove the global DESeq2 and/or edgeR analysis objects. The analysis results will be retained. If the analysis objects are required after re-loading, they will be automatically re-generated.

bRemoveBackground

if TRUE, will remove the global binned background counts used for normalization. Any normalization factors calculated using these counts will be retained. If the the normalization factors need to be re-re-calculated after re-loading, the binned background counts will be automatically re-generated.

bCompress

logical indicating saved DBA object should be compressed as much as possible.

Value

string containing full path and filename.

Author(s)

Rory Stark

See Also

dba.load

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data(tamoxifen_peaks)
savefile <- dba.save(tamoxifen,'tamoxifenPeaks')
savefile
rm(tamoxifen)
tamoxifen <- dba.load('tamoxifenPeaks')
unlink(savefile)

## End(Not run)

DiffBind documentation built on March 24, 2021, 6 p.m.