Read in regions from a bed file (no header allowed).

read_regions_bed(bed_file)

Arguments

bed_file

path to the standard headerless bed file

Value

a tibble with region name,chromosome, start coord, end coord (in VCF 1-based coords) and region size

Details

Only the first three columns will be read in. chromosome names should begin with 'chr'. The returned coordinates are in the VCF coordinates (1-based).

Author

Marcin Kierczak <marcin.kierczak@scilifelab.se>