Equivalent to information in UCSC "chromSizes" files. Required column names are: chrom and size

tbl_genome(x, ..., .validate = TRUE)

trbl_genome(...)

Arguments

x

A data_frame

...

params for tibble::tibble()

.validate

check valid column names

Value

tbl_genome()

Examples

genome <- tibble::tribble( ~chrom, ~size, 'chr1', 1e6, 'chr2', 1e7 ) is.tbl_genome(genome)
#> [1] FALSE
genome <- tbl_genome(genome) is.tbl_genome(genome)
#> [1] TRUE
trbl_genome( ~chrom, ~size, 'chr1', 1e6 )
#> # A tibble: 1 x 2 #> chrom size #> <chr> <dbl> #> 1 chr1 1000000