SaveResults
saves the results for each comparison in results
.
If chip = FALSE
, it will also save normalized gene counts.
SaveResults(results, outpath, dds = NULL, chip = FALSE, method = NULL, promoters = NULL, se = NULL, txdb = NULL, flank.anno = FALSE, flank.dist = 5000)
results | Either:
|
---|---|
outpath | Path to directory to be used for output. |
dds | A DESeqDataSet object as returned by
|
chip | Boolean indicating whether |
method | Method used for differential binding e.g. Do not quote this parameter, it is a global variable from |
promoters | Scalar vector containing how many basepairs up and downstream of the TSS should be used to define gene promoters. |
se | Dataframe containing location informatin for super enhancers. |
txdb |
|
flank.anno | Boolean indicating whether flanking gene information for
each peak should be retrieved. Useful for broad peaks and super enhancers.
Ignored if |
flank.distance | Integer for distance from edges of peak to search for
flanking genes. Ignored if |
For RNA-seq results, a table will be saved for each p-value threshold, as the adj. p-value threshold affects the independent filtering step. Counts and log-fold changes will remain the same, but p-values will change slightly as different numbers of genes will be excluded from multiple testing due to low counts.