bed_to: Convert a BED file

View source: R/bed_to.R

bed_toR Documentation

Convert a BED file

Description

Convert a BED file to any format supported by export.

Usage

bed_to(
  files,
  build = "hg19",
  keep_chr = NULL,
  formats = c("bigwig", "bigbed"),
  save_dir = tempdir(),
  verbose = TRUE,
  ...
)

Arguments

files

Paths to one or more BED files.

build

Genome build.

keep_chr

Which chromosomes to keep.

save_dir

Path to save bigBed files.

verbose

Print messages.

...

Additional arguments passed to export.

Value

Converted file paths.

Examples

files <- system.file("tests","test.bed",package = "rtracklayer")
out <- bed_to(files=files)

neurogenomics/PeakyFinders documentation built on March 24, 2024, 4:28 p.m.