R/analyze.R
xQTLanalyze_coloc_diy.Rd
Conduct colocalization analysis with customized QTL data
xQTLanalyze_coloc_diy(
gwasDF,
qtlDF,
mafThreshold = 0.01,
gwasSampleNum = 50000,
qtlSampleNum = 10000,
method = "coloc",
bb.alg = FALSE
)
data.frame or data.table, required cols: rsid, chrom, position, pValue, maf, beta, se
data.frame or data.table, required cols: rsid, chrom, position, pValue, maf, beta, se
Cutoff of maf to remove rare variants.
Sample number of GWAS dataset. Default:50000.
Sample number of QTL dataset. Default:10000.
(character) options: "coloc"(default) or "hyprcoloc" (need a highe version).
For hyprcoloc
, branch and bound algorithm: TRUE, employ BB algorithm; FALSE, do not. Default: FALSE.
A list
# \donttest{
url1 <- "http://bioinfo.szbl.ac.cn/xQTL_biolinks/xqtl_data/gwasDFsub_MMP7.txt"
url2 <- "http://bioinfo.szbl.ac.cn/xQTL_biolinks/xqtl_data/eqtl/MMP7_qtlDF.txt"
gwasDF <- data.table::fread(url1)
qtlDF <- data.table::fread(url2)
output <- xQTLanalyze_coloc_diy(gwasDF = gwasDF, qtlDF=qtlDF, method="coloc")
# }