import_BED: Import a BED

View source: R/import_BED.R

import_BEDR Documentation

Import a BED

Description

Import a BED file as a tibble

Usage

import_BED(bedfile, metadata_cols = NULL)

Arguments

bedfile

A tab-delimited file in bed format with columns: chrom, start, stop, ...(metadata cols)...

metadata_cols

A character vector of the names of metadata columns (bedfile cols 4+) in the BED file, to be imported as metadata in the tibble BED. These must be in the same order as they appear in the file, starting from column 4.

Value

A tibble representation of the BED file, optionally with metadata columns. If no metadata column names are provided, only the chrom, start and stop columns will be returned.


alextidd/tgp documentation built on June 1, 2022, 9:25 a.m.