Skip to contents

Write BED rows to a file

Usage

pmo_write_bed(bed, path, add_header = FALSE)

Arguments

bed

A tibble/data.frame as returned by pmo_extract_targets_insert_bed().

path

Output file path (overwritten if present).

add_header

Write a commented #chrom ... header line.

Value

Invisibly path.

Examples

p <- read_pmo(
  system.file("extdata", "example_full_pmo.json.gz", package = "pmotoolsr"))
bed <- pmo_extract_targets_insert_bed(p)
pmo_write_bed(bed, tempfile(fileext = ".bed"))