read_bed {gggenomes} | R Documentation |
Read a BED file
Description
BED files use 0-based coordinate starts, while gggenomes uses 1-based start coordinates. BED file coordinates are therefore transformed into 1-based coordinates during import.
Usage
read_bed(file, col_names = def_names("bed"), col_types = def_types("bed"), ...)
Arguments
file |
Either a path to a file, a connection, or literal data (either a single string or a raw vector). Files ending in Literal data is most useful for examples and tests. To be recognised as
literal data, the input must be either wrapped with Using a value of |
col_names |
column names to use. Defaults to |
col_types |
One of If Column specifications created by Alternatively, you can use a compact string representation where each character represents one column:
By default, reading a file without a column specification will print a
message showing what |
... |
additional parameters, passed to |
Value
tibble