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

### Details

Note, the narrow peak calling process does not yet implement any functionality for estimating the start and end of a peak region. Thus the start and end is taken as -100 and +100 around the peak summit. This is mostly an arbitrary choice. A more statistical approach is in development.

### Value

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

### Author(s)

Georg Stricker georg.stricker@in.tum.de

[Package GenoGAM version 2.4.0 Index]