Convert data.table/data.frame to a GRanges object.
dt_to_granges(
dat,
chrom_col = "seqnames",
start_col = "start",
end_col = "end",
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.
dat <- data.frame(GenomicRanges::GRanges("4:1-1000000"))
gr <- dt_to_granges(dat = dat)
#> Converting dat to GRanges object.