read .bed file

read_bed(file, ...)

Arguments

file

string. path to input file, passed onto readr::read_tsv()

...

passed on to readr::read_tsv()

Value

a tibble of 6 variables

Examples

sample_bed <- paste( 'chr22\t1000\t5000\tcloneA\t960\t+', 'chr22\t2000\t6000\tcloneB\t900\t-', sep = '\n' ) read_bed(sample_bed)
#> # A tibble: 2 x 6 #> chrom start end name score strand #> <chr> <int> <int> <chr> <int> <chr> #> 1 chr22 1000 5000 cloneA 960 + #> 2 chr22 2000 6000 cloneB 900 -