dt_to_granges {MungeSumstats}R Documentation

Convert data.table to GRanges object

Description

Convert data.table to GRanges object

Usage

dt_to_granges(
  dat,
  style = c("NCBI", "UCSC"),
  chrom_col = "CHR",
  start_col = "POS",
  end_col = "POS"
)

Arguments

dat

data.table of genomic data

style

conversion to GRanges style, NCBI or UCSC

chrom_col

column for chromosome

start_col

column for start position

end_col

column for end position (is the same as start for snps)

Value

GRanges object of the genomic data


[Package MungeSumstats version 1.2.1 Index]