writeToBEDFile {GenoGAM} | R Documentation

## Write peaks to BED6+3/4 format

### Description

A function to write the data.table of peaks into a narrowPeaks or broadPeaks file

### Usage

    writeToBEDFile(peaks, file = NULL)

### Arguments

`peaks` | A data.table or data.frame of peaks as produced by callPeaks()
`file` | A file name without suffix. It will be determined automatically. If no file is given, it will be written to a generic 'peaks_[timestamp]' file in the current working directory

### Value

Nothing. A narrowPeaks or broadPeaks file written to 'file'

### Author(s)

Georg Stricker georg.stricker@in.tum.de

[Package GenoGAM version 1.8.0 Index]