annotate variants with genome positon

xQTLanalyze_anno(snpInfo = "", genomeVersion = "hg38")

Arguments

snpInfo

A data.table/data.frame with two or three columns: chromosome and position.

genomeVersion

"hg38" (default) or "hg19". Note: hg19 will be converted to hg38 automatically.

Value

A data.table object of variants' genomics distribution

Examples

# \donttest{
url1 <- "https://github.com/dingruofan/exampleData/raw/master/gwas/gwasSub.txt.gz"
snpInfo <- data.table::fread(url1, sep="\t")
snpHits <- xQTLanalyze_anno(snpInfo)
# }