write_narrowPeak: Write a narrowPeak format BED file.

View source: R/file_format_io.R

write_narrowPeakR Documentation

Write a narrowPeak format BED file.

Description

This function takes a GRanges of the kind returned by read_narrowPeak() and writes it back to a file.

Usage

write_narrowPeak(x, file, ...)

Arguments

x

A GRanges or data frame containing the all appropriate columns for a narrowPeak file. In addition to the normal BED columns, it must contain columns named "signalValue", "pValue", "qValue", and "summit".

file

The file name to write to.

...

Additional arguments are passed to write.table().

If some of the required columns are not available (e.g. from a peak caller that does not report a summit), you can fill in the unavailable columns with NA.


DarwinAwardWinner/rctutils documentation built on July 22, 2022, 5:19 a.m.