Convert data.table/data.frame to a GRanges object.
dt_to_granges(
dat,
chrom_col = "CHR",
start_col = "POS",
end_col = start_col,
style = "NCBI",
verbose = TRUE
)
Data.
Chromosome column name.
Genomic start position column name.
Genomic end position column name.
GRanges style (e.g. "NCBI, "UCSC") set by seqlevelsStyle.
Print messages.
gr <- echodata::dt_to_granges(dat = echodata::BST1)
#> Converting dat to GRanges object.