{
  "_id": "6a281cdea476d7de6d3c6aec",
  "Type": "Package",
  "Package": "gap",
  "Title": "Genetic Analysis Package",
  "Version": "1.15.3",
  "Date": "2026-06-09",
  "Authors@R": "c(\nperson(\"Jing Hua\", \"Zhao\", role = c(\"aut\", \"cre\"),\nemail = \"jinghuazhao@hotmail.com\",\ncomment = c(ORCID = \"0000-0002-1463-5870\", \"0000-0003-4930-3582\")),\nperson(\"Kurt\", \"Hornik\", role = \"ctb\"),\nperson(\"Brian\", \"Ripley\", role = \"ctb\"),\nperson(\"Uwe\", \"Ligges\", role = \"ctb\"),\nperson(\"Achim\", \"Zeileis\", role = \"ctb\")\n)",
  "Description": "As first reported [Zhao, J. H. 2007. \"gap: Genetic\nAnalysis Package\". J Stat Soft 23(8):1-18.\n<doi:10.18637/jss.v023.i08>], it is designed as an integrated\npackage for genetic data analysis of both population and family\ndata. Currently, it contains functions for sample size\ncalculations of both population-based and family-based designs,\nprobability of familial disease aggregation, kinship\ncalculation, statistics in linkage analysis, and association\nanalysis involving genetic markers including haplotype analysis\nwith or without environmental covariates. Over years, the\npackage has been developed in-between many projects hence also\nin line with the name (gap).",
  "License": "GPL (>= 2)",
  "URL": "https://github.com/jinghuazhao/R",
  "BugReports": "https://github.com/jinghuazhao/R/issues",
  "LazyData": "Yes",
  "LazyLoad": "Yes",
  "NeedsCompilation": "yes",
  "Encoding": "UTF-8",
  "VignetteBuilder": "knitr",
  "Roxygen": "list(markdown=TRUE)",
  "RdMacros": "Rdpack",
  "Config/roxygen2/version": "8.0.0",
  "RoxygenNote": "7.3.3",
  "Packaged": {
    "Date": "2026-06-09 13:51:36 UTC",
    "User": "root"
  },
  "Author": "Jing Hua Zhao [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-1463-5870>, 0000-0003-4930-3582),\nKurt Hornik [ctb], Brian Ripley [ctb], Uwe Ligges [ctb], Achim\nZeileis [ctb]",
  "Maintainer": "Jing Hua Zhao <jinghuazhao@hotmail.com>",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev libssl-dev",
  "Repository": "https://jinghuazhao.r-universe.dev",
  "Date/Publication": "2026-06-09 13:29:43 UTC",
  "RemoteUrl": "https://github.com/jinghuazhao/r",
  "RemoteRef": "HEAD",
  "RemoteSha": "911d5ed9cb230163cdeee8707c5a719c93fd3773",
  "RemoteSubdir": "gap",
  "MD5sum": "4ddab8b64490af4feed5837a34387f25",
  "_user": "jinghuazhao",
  "_type": "src",
  "_file": "gap_1.15.3.tar.gz",
  "_fileid": "aae18115f9ada182f19bea3163c0f34735eacce601a09e62195cdefa2cc1be92",
  "_filesize": 5321743,
  "_sha256": "aae18115f9ada182f19bea3163c0f34735eacce601a09e62195cdefa2cc1be92",
  "_created": "2026-06-09T13:51:36.000Z",
  "_published": "2026-06-09T14:02:06.143Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80339539134,
      "time": 263,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7509845996"
    },
    {
      "job": 80339539255,
      "time": 206,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7509816739"
    },
    {
      "job": 80339539156,
      "time": 246,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7509837529"
    },
    {
      "job": 80339539313,
      "time": 256,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7509840805"
    },
    {
      "job": 80339539191,
      "time": 171,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7509950355"
    },
    {
      "job": 80339539146,
      "time": 234,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7509951532"
    },
    {
      "job": 80339539162,
      "time": 122,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7509928966"
    },
    {
      "job": 80339539103,
      "time": 310,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7509937699"
    },
    {
      "job": 80338318549,
      "time": 328,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7509722001"
    },
    {
      "job": 80339539026,
      "time": 245,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7509834726"
    },
    {
      "job": 80339539338,
      "time": 163,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7509796819"
    },
    {
      "job": 80339539298,
      "time": 187,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7509808334"
    },
    {
      "job": 80339539286,
      "time": 177,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7509803261"
    }
  ],
  "_buildurl": "https://github.com/r-universe/jinghuazhao/actions/runs/27210595677",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/jinghuazhao/r",
  "_commit": {
    "id": "911d5ed9cb230163cdeee8707c5a719c93fd3773",
    "author": "jinghuazhao@github.com <jinghuazhao@hotmail.com>",
    "committer": "jinghuazhao@github.com <jinghuazhao@hotmail.com>",
    "message": "vignettes\n",
    "time": 1781011783
  },
  "_maintainer": {
    "name": "Jing Hua Zhao",
    "email": "jinghuazhao@hotmail.com",
    "login": "jinghuazhao",
    "orcid": "0000-0002-1463-5870",
    "description": "Methods and applications in human health-related research",
    "uuid": 12497005
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "gap.datasets",
      "version": ">= 0.0.6",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "plotly",
      "role": "Imports"
    },
    {
      "package": "Rdpack",
      "role": "Imports"
    },
    {
      "package": "BradleyTerry2",
      "role": "Suggests"
    },
    {
      "package": "DiagrammeR",
      "role": "Suggests"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "Matrix",
      "role": "Suggests"
    },
    {
      "package": "MCMCglmm",
      "role": "Suggests"
    },
    {
      "package": "R2jags",
      "role": "Suggests"
    },
    {
      "package": "bdsmatrix",
      "role": "Suggests"
    },
    {
      "package": "bookdown",
      "role": "Suggests"
    },
    {
      "package": "calibrate",
      "role": "Suggests"
    },
    {
      "package": "circlize",
      "role": "Suggests"
    },
    {
      "package": "coda",
      "role": "Suggests"
    },
    {
      "package": "cowplot",
      "role": "Suggests"
    },
    {
      "package": "coxme",
      "role": "Suggests"
    },
    {
      "package": "foreign",
      "role": "Suggests"
    },
    {
      "package": "genetics",
      "role": "Suggests"
    },
    {
      "package": "grDevices",
      "role": "Suggests"
    },
    {
      "package": "haplo.stats",
      "role": "Suggests"
    },
    {
      "package": "htmltools",
      "role": "Suggests"
    },
    {
      "package": "htmlwidgets",
      "role": "Suggests"
    },
    {
      "package": "jsonlite",
      "role": "Suggests"
    },
    {
      "package": "kinship2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "lattice",
      "role": "Suggests"
    },
    {
      "package": "magic",
      "role": "Suggests"
    },
    {
      "package": "matrixStats",
      "role": "Suggests"
    },
    {
      "package": "meta",
      "role": "Suggests"
    },
    {
      "package": "metafor",
      "role": "Suggests"
    },
    {
      "package": "nlme",
      "role": "Suggests"
    },
    {
      "package": "pedigree",
      "role": "Suggests"
    },
    {
      "package": "pedigreemm",
      "role": "Suggests"
    },
    {
      "package": "plotrix",
      "role": "Suggests"
    },
    {
      "package": "readr",
      "role": "Suggests"
    },
    {
      "package": "reshape",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "rms",
      "role": "Suggests"
    },
    {
      "package": "scales",
      "role": "Suggests"
    },
    {
      "package": "survival",
      "role": "Suggests"
    },
    {
      "package": "valr",
      "role": "Suggests"
    },
    {
      "package": "shiny",
      "role": "Enhances"
    }
  ],
  "_owner": "jinghuazhao",
  "_selfowned": true,
  "_usedby": 25,
  "_updates": [
    {
      "week": "2025-24",
      "n": 1
    },
    {
      "week": "2025-27",
      "n": 1
    },
    {
      "week": "2025-44",
      "n": 1
    },
    {
      "week": "2026-05",
      "n": 2
    },
    {
      "week": "2026-06",
      "n": 11
    },
    {
      "week": "2026-07",
      "n": 35
    },
    {
      "week": "2026-08",
      "n": 9
    },
    {
      "week": "2026-11",
      "n": 2
    },
    {
      "week": "2026-12",
      "n": 1
    },
    {
      "week": "2026-13",
      "n": 50
    },
    {
      "week": "2026-14",
      "n": 32
    },
    {
      "week": "2026-19",
      "n": 40
    },
    {
      "week": "2026-20",
      "n": 48
    },
    {
      "week": "2026-21",
      "n": 48
    },
    {
      "week": "2026-22",
      "n": 38
    },
    {
      "week": "2026-23",
      "n": 15
    },
    {
      "week": "2026-24",
      "n": 23
    }
  ],
  "_tags": [],
  "_topics": [
    "genetics",
    "imputation",
    "lmm"
  ],
  "_stars": 13,
  "_contributors": [
    {
      "user": "jinghuazhao",
      "count": 2833,
      "uuid": 12497005
    },
    {
      "user": "guido-s",
      "count": 1,
      "uuid": 10942806
    }
  ],
  "_userbio": {
    "uuid": 12497005,
    "type": "user",
    "name": "Jing Hua Zhao",
    "description": "Methods and applications in human health-related research"
  },
  "_downloads": {
    "count": 31598,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/gap"
  },
  "_mentions": 29,
  "_devurl": "https://github.com/jinghuazhao/r",
  "_searchresults": 445,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/gap.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/jinghuazhao/r",
  "_realowner": "jinghuazhao",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.3",
      "date": "2004-01-14"
    },
    {
      "version": "0.4",
      "date": "2004-01-18"
    },
    {
      "version": "0.5",
      "date": "2004-01-22"
    },
    {
      "version": "0.7",
      "date": "2004-02-02"
    },
    {
      "version": "0.8",
      "date": "2004-02-29"
    },
    {
      "version": "0.8-2",
      "date": "2004-08-17"
    },
    {
      "version": "0.8-3",
      "date": "2004-12-21"
    },
    {
      "version": "1.0-5",
      "date": "2006-01-17"
    },
    {
      "version": "1.0-6",
      "date": "2006-02-13"
    },
    {
      "version": "1.0-8",
      "date": "2006-04-04"
    },
    {
      "version": "1.0-9",
      "date": "2006-09-21"
    },
    {
      "version": "1.0-10",
      "date": "2007-01-05"
    },
    {
      "version": "1.0-11",
      "date": "2007-06-14"
    },
    {
      "version": "1.0-12",
      "date": "2007-07-31"
    },
    {
      "version": "1.0-13",
      "date": "2007-10-02"
    },
    {
      "version": "1.0-14",
      "date": "2008-03-02"
    },
    {
      "version": "1.0-15",
      "date": "2008-04-10"
    },
    {
      "version": "1.0-17",
      "date": "2009-01-02"
    },
    {
      "version": "1.0-20",
      "date": "2009-08-26"
    },
    {
      "version": "1.0-21",
      "date": "2009-11-22"
    },
    {
      "version": "1.0-22",
      "date": "2010-01-02"
    },
    {
      "version": "1.0-23",
      "date": "2010-06-25"
    },
    {
      "version": "1.1-0",
      "date": "2010-11-17"
    },
    {
      "version": "1.1-1",
      "date": "2010-12-10"
    },
    {
      "version": "1.1-2",
      "date": "2011-05-03"
    },
    {
      "version": "1.1-3",
      "date": "2011-12-06"
    },
    {
      "version": "1.1-6",
      "date": "2012-03-15"
    },
    {
      "version": "1.1-8",
      "date": "2013-02-26"
    },
    {
      "version": "1.1-9",
      "date": "2013-04-08"
    },
    {
      "version": "1.1-10",
      "date": "2013-09-30"
    },
    {
      "version": "1.1-12",
      "date": "2014-08-18"
    },
    {
      "version": "1.0-1",
      "date": "2015-06-03"
    },
    {
      "version": "1.0-2",
      "date": "2015-06-03"
    },
    {
      "version": "1.0-3",
      "date": "2015-06-03"
    },
    {
      "version": "1.1-13",
      "date": "2015-06-03"
    },
    {
      "version": "1.1-14",
      "date": "2015-06-04"
    },
    {
      "version": "1.1-16",
      "date": "2015-06-06"
    },
    {
      "version": "1.1-17",
      "date": "2017-04-19"
    },
    {
      "version": "1.1-20",
      "date": "2017-11-25"
    },
    {
      "version": "1.1-21",
      "date": "2018-01-24"
    },
    {
      "version": "1.1-22",
      "date": "2018-06-08"
    },
    {
      "version": "1.2.1",
      "date": "2019-06-05"
    },
    {
      "version": "1.2.2",
      "date": "2020-02-02"
    },
    {
      "version": "1.2.3-1",
      "date": "2021-04-21"
    },
    {
      "version": "1.2.3-6",
      "date": "2022-05-14"
    },
    {
      "version": "1.3-1",
      "date": "2022-10-21"
    },
    {
      "version": "1.4-2",
      "date": "2023-01-14"
    },
    {
      "version": "1.5",
      "date": "2023-01-14"
    },
    {
      "version": "1.5-1",
      "date": "2023-01-22"
    },
    {
      "version": "1.5-3",
      "date": "2023-08-26"
    },
    {
      "version": "1.6",
      "date": "2024-08-27"
    },
    {
      "version": "1.9",
      "date": "2026-02-06"
    },
    {
      "version": "1.14",
      "date": "2026-02-19"
    },
    {
      "version": "1.15.1",
      "date": "2026-05-24"
    },
    {
      "version": "1.15.2",
      "date": "2026-05-28"
    }
  ],
  "_exports": [
    "a2g",
    "ACDE",
    "ACE_CI",
    "AE3",
    "allele.recode",
    "asplot",
    "b2r",
    "BFDP",
    "bt",
    "ccsize",
    "chow.test",
    "chr_pos_a1_a2",
    "ci2ms",
    "circos.cis.vs.trans.plot",
    "circos.cnvplot",
    "circos.mhtplot",
    "circos.mhtplot2",
    "cis.vs.trans.classification",
    "cnvplot",
    "comp.score",
    "cs",
    "ESplot",
    "fbsize",
    "FPRP",
    "g2a",
    "gc.em",
    "gc.lambda",
    "gcontrol",
    "gcontrol2",
    "gcp",
    "genecounting",
    "geno.recode",
    "get_b_se",
    "get_pve_se",
    "get_sdy",
    "gif",
    "grid2d",
    "h2_mzdz",
    "h2.jags",
    "h2G",
    "h2GE",
    "h2l",
    "hap",
    "hap.control",
    "hap.em",
    "hap.score",
    "hmht.control",
    "hwe",
    "hwe.cc",
    "hwe.hardy",
    "hwe.jags",
    "inv_chr_pos_a1_a2",
    "invnormal",
    "ixy",
    "KCC",
    "kin.morgan",
    "klem",
    "labelManhattan",
    "LD22",
    "LDkl",
    "log10p",
    "log10pvalue",
    "logp",
    "makeped",
    "makeRLEplot",
    "masize",
    "MCMCgrm",
    "METAL_forestplot",
    "metap",
    "metareg",
    "mht.control",
    "mhtplot",
    "mhtplot.trunc",
    "mhtplot2",
    "mia",
    "miamiplot",
    "miamiplot2",
    "mr",
    "mr_forestplot",
    "mtdt",
    "mtdt2",
    "muvar",
    "mvmeta",
    "pbsize",
    "pbsize2",
    "pedtodot",
    "pedtodot_verbatim",
    "pfc",
    "pfc.sim",
    "pgc",
    "pvalue",
    "qqfun",
    "qqunif",
    "qtl2dplot",
    "qtl2dplotly",
    "qtl3dplotly",
    "qtlClassifier",
    "qtlFinder",
    "read.ms.output",
    "ReadGRM",
    "ReadGRMBin",
    "revStrand",
    "runshinygap",
    "s2k",
    "sentinels",
    "snptest_sample",
    "tscc",
    "whscore",
    "WriteGRM",
    "WriteGRMBin",
    "xy"
  ],
  "_datasets": [
    {
      "name": "hg18",
      "title": "Chromosomal lengths for build 36",
      "object": "hg18",
      "class": [
        "numeric"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "hg19",
      "title": "Chromosomal lengths for build 37",
      "object": "hg19",
      "class": [
        "numeric"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "hg38",
      "title": "Chromosomal lengths for build 38",
      "object": "hg38",
      "class": [
        "numeric"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "a2g",
      "title": "Allele-to-genotype conversion",
      "topics": [
        "a2g"
      ]
    },
    {
      "page": "ab",
      "title": "Test and Power Calculation for Mediating Effect",
      "topics": [
        "ab"
      ]
    },
    {
      "page": "ACDE",
      "title": "Fit AE, ACE or ADE biometric mixed models to nuclear family data",
      "topics": [
        "ACDE"
      ]
    },
    {
      "page": "ACE_CI",
      "title": "Bootstrap ACE confidence intervals",
      "topics": [
        "ACE_CI"
      ]
    },
    {
      "page": "AE3",
      "title": "AE model using nuclear family trios",
      "topics": [
        "AE3"
      ]
    },
    {
      "page": "allele.recode",
      "title": "Allele recoding",
      "topics": [
        "allele.recode"
      ]
    },
    {
      "page": "asplot",
      "title": "Regional association plot",
      "topics": [
        "asplot"
      ]
    },
    {
      "page": "b2r",
      "title": "Obtain correlation coefficients and their variance-covariances",
      "topics": [
        "b2r"
      ]
    },
    {
      "page": "BFDP",
      "title": "Bayesian false-discovery probability",
      "topics": [
        "BFDP"
      ]
    },
    {
      "page": "bt",
      "title": "Bradley-Terry model for contingency table",
      "topics": [
        "bt"
      ]
    },
    {
      "page": "ccsize",
      "title": "Power and sample size for case-cohort design",
      "topics": [
        "ccsize"
      ]
    },
    {
      "page": "chow.test",
      "title": "Chow's test for heterogeneity in two regressions",
      "topics": [
        "chow.test"
      ]
    },
    {
      "page": "chr_pos_a1_a2",
      "title": "SNP id by chr:pos+a1/a2",
      "topics": [
        "chr_pos_a1_a2"
      ]
    },
    {
      "page": "ci2ms",
      "title": "Effect size and standard error from confidence interval",
      "topics": [
        "ci2ms"
      ]
    },
    {
      "page": "circos.cis.vs.trans.plot",
      "title": "Circos plot of cis vs trans protein associations",
      "topics": [
        "circos.cis.vs.trans.plot"
      ]
    },
    {
      "page": "circos.cnvplot",
      "title": "circos plot of CNVs.",
      "topics": [
        "circos.cnvplot"
      ]
    },
    {
      "page": "circos.mhtplot",
      "title": "circos Manhattan plot with gene annotation",
      "topics": [
        "circos.mhtplot"
      ]
    },
    {
      "page": "circos.mhtplot2",
      "title": "Another circos Manhattan plot",
      "topics": [
        "circos.mhtplot2"
      ]
    },
    {
      "page": "cis.vs.trans.classification",
      "title": "Cis/trans classification of pQTL signals",
      "topics": [
        "cis.vs.trans.classification"
      ]
    },
    {
      "page": "cnvplot",
      "title": "genomewide plot of CNVs",
      "topics": [
        "cnvplot"
      ]
    },
    {
      "page": "comp.score",
      "title": "score statistics for testing genetic linkage of quantitative trait",
      "topics": [
        "comp.score"
      ]
    },
    {
      "page": "cs",
      "title": "Credible set from summary statistics",
      "topics": [
        "cs"
      ]
    },
    {
      "page": "ESplot",
      "title": "Effect-size / Odds-ratio forest plot",
      "topics": [
        "ESplot"
      ]
    },
    {
      "page": "fbsize",
      "title": "Sample size for family-based linkage and association design",
      "topics": [
        "fbsize"
      ]
    },
    {
      "page": "FPRP",
      "title": "False-positive report probability",
      "topics": [
        "FPRP"
      ]
    },
    {
      "page": "g2a",
      "title": "Conversion of a genotype identifier to alleles",
      "topics": [
        "g2a"
      ]
    },
    {
      "page": "gc.em",
      "title": "Gene counting for haplotype analysis",
      "topics": [
        "gc.em"
      ]
    },
    {
      "page": "gc.lambda",
      "title": "Estimation of the genomic control inflation statistic (lambda)",
      "topics": [
        "gc.lambda"
      ]
    },
    {
      "page": "gcontrol",
      "title": "genomic control",
      "topics": [
        "gcontrol"
      ]
    },
    {
      "page": "gcontrol2",
      "title": "genomic control based on p values",
      "topics": [
        "gcontrol2"
      ]
    },
    {
      "page": "gcp",
      "title": "Permutation tests using GENECOUNTING",
      "topics": [
        "gcp"
      ]
    },
    {
      "page": "genecounting",
      "title": "Gene counting for haplotype analysis",
      "topics": [
        "genecounting"
      ]
    },
    {
      "page": "geno.recode",
      "title": "Genotype recoding",
      "topics": [
        "geno.recode"
      ]
    },
    {
      "page": "get_b_se",
      "title": "Get b and se from AF, n, and z",
      "topics": [
        "get_b_se"
      ]
    },
    {
      "page": "get_pve_se",
      "title": "Get pve and its standard error from n, z",
      "topics": [
        "get_pve_se"
      ]
    },
    {
      "page": "get_sdy",
      "title": "Get sd(y) from AF, n, b, se",
      "topics": [
        "get_sdy"
      ]
    },
    {
      "page": "gif",
      "title": "Kinship coefficient and genetic index of familiality",
      "topics": [
        "gif"
      ]
    },
    {
      "page": "grid2d",
      "title": "Two-dimensional grid",
      "topics": [
        "grid2d"
      ]
    },
    {
      "page": "h2_mzdz",
      "title": "ACE heritability estimation from MZ/DZ twin correlations",
      "topics": [
        "h2_mzdz"
      ]
    },
    {
      "page": "h2.jags",
      "title": "Heritability estimation based on genomic relationship matrix using JAGS",
      "topics": [
        "h2.jags"
      ]
    },
    {
      "page": "h2G",
      "title": "Heritability and its variance",
      "topics": [
        "h2G"
      ]
    },
    {
      "page": "h2GE",
      "title": "Heritability and its variance when there is an environment component",
      "topics": [
        "h2GE"
      ]
    },
    {
      "page": "h2l",
      "title": "Heritability under the liability threshold model",
      "topics": [
        "h2l"
      ]
    },
    {
      "page": "hap",
      "title": "Haplotype reconstruction",
      "topics": [
        "hap"
      ]
    },
    {
      "page": "hap.control",
      "title": "Control for haplotype reconstruction",
      "topics": [
        "hap.control"
      ]
    },
    {
      "page": "hap.em",
      "title": "Gene counting for haplotype analysis",
      "topics": [
        "hap.em"
      ]
    },
    {
      "page": "hap.score",
      "title": "Score statistics for association of traits with haplotypes",
      "topics": [
        "hap.score"
      ]
    },
    {
      "page": "hg18",
      "title": "Chromosomal lengths for build 36",
      "topics": [
        "hg18"
      ]
    },
    {
      "page": "hg19",
      "title": "Chromosomal lengths for build 37",
      "topics": [
        "hg19"
      ]
    },
    {
      "page": "hg38",
      "title": "Chromosomal lengths for build 38",
      "topics": [
        "hg38"
      ]
    },
    {
      "page": "hmht.control",
      "title": "Controls for highlighted regions in mhtplot",
      "topics": [
        "hmht.control"
      ]
    },
    {
      "page": "htr",
      "title": "Haplotype trend regression",
      "topics": [
        "htr"
      ]
    },
    {
      "page": "hwe",
      "title": "Hardy-Weinberg Equilibrium Test (Multiallelic, Unified Interface)",
      "topics": [
        "hwe"
      ]
    },
    {
      "page": "hwe.cc",
      "title": "A likelihood ratio test of population Hardy-Weinberg equilibrium for case-control studies",
      "topics": [
        "hwe.cc"
      ]
    },
    {
      "page": "hwe.hardy",
      "title": "Hardy-Weinberg equilibrium test using MCMC",
      "topics": [
        "hwe.hardy"
      ]
    },
    {
      "page": "hwe.jags",
      "title": "Hardy-Weinberg equlibrium test for a multiallelic marker using JAGS",
      "topics": [
        "hwe.jags"
      ]
    },
    {
      "page": "inv_chr_pos_a1_a2",
      "title": "Retrieval of chr:pos+a1/a2 according to SNP id",
      "topics": [
        "inv_chr_pos_a1_a2"
      ]
    },
    {
      "page": "invnormal",
      "title": "Inverse normal transformation",
      "topics": [
        "invnormal"
      ]
    },
    {
      "page": "ixy",
      "title": "Conversion of chrosome name from strings",
      "topics": [
        "ixy"
      ]
    },
    {
      "page": "KCC",
      "title": "Disease prevalences in cases and controls",
      "topics": [
        "KCC"
      ]
    },
    {
      "page": "kin.morgan",
      "title": "kinship matrix for simple pedigree",
      "topics": [
        "kin.morgan"
      ]
    },
    {
      "page": "klem",
      "title": "Haplotype frequency estimation based on a genotype table of two multiallelic markers",
      "topics": [
        "klem"
      ]
    },
    {
      "page": "labelManhattan",
      "title": "Annotate Manhattan or Miami Plot",
      "topics": [
        "labelManhattan"
      ]
    },
    {
      "page": "LD22",
      "title": "LD statistics for two diallelic markers",
      "topics": [
        "LD22"
      ]
    },
    {
      "page": "LDkl",
      "title": "LD statistics for two multiallelic markers",
      "topics": [
        "LDkl"
      ]
    },
    {
      "page": "log10p",
      "title": "log10(p) for a normal deviate z",
      "topics": [
        "log10p"
      ]
    },
    {
      "page": "log10pvalue",
      "title": "log10(p) for a P value including its scientific format",
      "topics": [
        "log10pvalue"
      ]
    },
    {
      "page": "logp",
      "title": "log(p) for a normal deviate z",
      "topics": [
        "logp"
      ]
    },
    {
      "page": "makeped",
      "title": "A function to prepare pedigrees in post-MAKEPED format",
      "topics": [
        "makeped"
      ]
    },
    {
      "page": "makeRLEplot",
      "title": "Create a Relative Log Expression (RLE) Plot",
      "topics": [
        "makeRLEplot"
      ]
    },
    {
      "page": "masize",
      "title": "Sample Size Calculation for Mediation Analysis",
      "topics": [
        "masize"
      ]
    },
    {
      "page": "MCMCgrm",
      "title": "Mixed modeling with genetic relationship matrices",
      "topics": [
        "MCMCgrm"
      ]
    },
    {
      "page": "METAL_forestplot",
      "title": "forest plot as R/meta's forest for METAL outputs",
      "topics": [
        "METAL_forestplot"
      ]
    },
    {
      "page": "metap",
      "title": "Meta-analysis of p-values with heterogeneity and random effects",
      "topics": [
        "metap"
      ]
    },
    {
      "page": "metareg",
      "title": "Fixed and random effects meta-analysis (vectorised implementation)",
      "topics": [
        "metareg"
      ]
    },
    {
      "page": "mht.control",
      "title": "Controls for Manhattan plot",
      "topics": [
        "mht.control"
      ]
    },
    {
      "page": "mhtplot",
      "title": "Manhattan plot",
      "topics": [
        "mhtplot"
      ]
    },
    {
      "page": "mhtplot.trunc",
      "title": "Truncated Manhattan plot",
      "topics": [
        "mhtplot.trunc"
      ]
    },
    {
      "page": "mhtplot2",
      "title": "Manhattan plot with annotations",
      "topics": [
        "mhtplot2"
      ]
    },
    {
      "page": "mia",
      "title": "Multiple imputation analysis for hap",
      "topics": [
        "mia"
      ]
    },
    {
      "page": "miamiplot",
      "title": "Miami plot",
      "topics": [
        "miamiplot"
      ]
    },
    {
      "page": "miamiplot2",
      "title": "Miami Plot",
      "topics": [
        "miamiplot2"
      ]
    },
    {
      "page": "mr",
      "title": "Mendelian Randomization wrapper (IVW, Egger, Weighted Median, Penalised WM)",
      "topics": [
        "mr"
      ]
    },
    {
      "page": "mr_forestplot",
      "title": "Mendelian Randomization forest plot",
      "topics": [
        "mr_forestplot"
      ]
    },
    {
      "page": "mtdt",
      "title": "Transmission/disequilibrium test of a multiallelic marker",
      "topics": [
        "mtdt"
      ]
    },
    {
      "page": "mtdt2",
      "title": "Transmission/disequilibrium test of a multiallelic marker by Bradley-Terry model",
      "topics": [
        "mtdt2"
      ]
    },
    {
      "page": "muvar",
      "title": "Means and variances under 1- and 2- locus (biallelic) QTL model",
      "topics": [
        "muvar"
      ]
    },
    {
      "page": "mvmeta",
      "title": "Multivariate fixed-effects meta-analysis via generalized least squares",
      "topics": [
        "mvmeta"
      ]
    },
    {
      "page": "pbsize",
      "title": "Power for population-based association design",
      "topics": [
        "pbsize"
      ]
    },
    {
      "page": "pbsize2",
      "title": "Power for case-control association design",
      "topics": [
        "pbsize2"
      ]
    },
    {
      "page": "pedtodot",
      "title": "Converting pedigree(s) to dot file(s)",
      "topics": [
        "pedtodot"
      ]
    },
    {
      "page": "pedtodot_verbatim",
      "title": "Pedigree-drawing with graphviz",
      "topics": [
        "pedtodot_verbatim"
      ]
    },
    {
      "page": "pfc",
      "title": "Probability of familial clustering of disease",
      "topics": [
        "pfc"
      ]
    },
    {
      "page": "pfc.sim",
      "title": "Probability of familial clustering of disease",
      "topics": [
        "pfc.sim"
      ]
    },
    {
      "page": "pgc",
      "title": "Preparing weight for GENECOUNTING",
      "topics": [
        "pgc"
      ]
    },
    {
      "page": "plot.hap.score",
      "title": "Plot haplotype frequencies versus haplotype score statistics",
      "topics": [
        "plot.hap.score"
      ]
    },
    {
      "page": "print.hap.score",
      "title": "Print a hap.score object",
      "topics": [
        "print.hap.score"
      ]
    },
    {
      "page": "pvalue",
      "title": "P value for a normal deviate",
      "topics": [
        "pvalue"
      ]
    },
    {
      "page": "qqfun",
      "title": "Quantile-comparison plots",
      "topics": [
        "qqfun"
      ]
    },
    {
      "page": "qqunif",
      "title": "Q-Q plot for uniformly distributed random variables",
      "topics": [
        "qqunif"
      ]
    },
    {
      "page": "qtl2dplot",
      "title": "2D QTL plot",
      "topics": [
        "qtl2dplot"
      ]
    },
    {
      "page": "qtl2dplotly",
      "title": "2D QTL cis/trans visualization (Plotly)",
      "topics": [
        "qtl2dplotly"
      ]
    },
    {
      "page": "qtl3dplotly",
      "title": "3D QTL plot (cis/trans genomic visualization)",
      "topics": [
        "qtl3dplotly"
      ]
    },
    {
      "page": "qtlClassifier",
      "title": "A QTL cis/trans classifier",
      "topics": [
        "qtlClassifier"
      ]
    },
    {
      "page": "qtlFinder",
      "title": "Distance-based signal identification",
      "topics": [
        "qtlFinder"
      ]
    },
    {
      "page": "read.ms.output",
      "title": "A utility function to read ms output",
      "topics": [
        "read.ms.output"
      ]
    },
    {
      "page": "ReadGRM",
      "title": "A function to read GRM file",
      "topics": [
        "ReadGRM"
      ]
    },
    {
      "page": "ReadGRMBin",
      "title": "A function to read GRM binary files",
      "topics": [
        "ReadGRMBin"
      ]
    },
    {
      "page": "revStrand",
      "title": "Allele on the reverse strand",
      "topics": [
        "revStrand"
      ]
    },
    {
      "page": "runshinygap",
      "title": "Start shinygap",
      "topics": [
        "runshinygap"
      ]
    },
    {
      "page": "s2k",
      "title": "Statistics for 2 by K table",
      "topics": [
        "s2k"
      ]
    },
    {
      "page": "sentinels",
      "title": "Sentinel identification from GWAS summary statistics",
      "topics": [
        "sentinels"
      ]
    },
    {
      "page": "SNP",
      "title": "Functions for single nucleotide polymorphisms",
      "topics": [
        "PARn",
        "snpHWE",
        "snpPAR",
        "snpPVE"
      ]
    },
    {
      "page": "snptest_sample",
      "title": "A utility to generate SNPTEST sample file",
      "topics": [
        "snptest_sample"
      ]
    },
    {
      "page": "tscc",
      "title": "Power calculation for two-stage case-control design",
      "topics": [
        "tscc"
      ]
    },
    {
      "page": "whscore",
      "title": "Whittemore-Halpern scores for allele-sharing",
      "topics": [
        "whscore"
      ]
    },
    {
      "page": "WriteGRM",
      "title": "A function to write GRM file",
      "topics": [
        "WriteGRM"
      ]
    },
    {
      "page": "WriteGRMBin",
      "title": "A function to write GRM binary file",
      "topics": [
        "WriteGRMBin"
      ]
    },
    {
      "page": "xy",
      "title": "Conversion of chromosome names to strings",
      "topics": [
        "xy"
      ]
    }
  ],
  "_readme": "https://github.com/jinghuazhao/r/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "base64enc",
    "bslib",
    "cachem",
    "cli",
    "cpp11",
    "crosstalk",
    "curl",
    "data.table",
    "digest",
    "dplyr",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "fs",
    "gap.datasets",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "highr",
    "htmltools",
    "htmlwidgets",
    "httr",
    "isoband",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "later",
    "lazyeval",
    "lifecycle",
    "magrittr",
    "memoise",
    "mime",
    "openssl",
    "otel",
    "pillar",
    "pkgconfig",
    "plotly",
    "promises",
    "purrr",
    "R6",
    "rappdirs",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "Rdpack",
    "rlang",
    "rmarkdown",
    "S7",
    "sass",
    "scales",
    "stringi",
    "stringr",
    "sys",
    "tibble",
    "tidyr",
    "tidyselect",
    "tinytex",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "yaml"
  ],
  "_vignettes": [
    {
      "source": "gap.Rmd",
      "filename": "gap.html",
      "title": " ",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2021-05-28 20:05:02",
      "modified": "2026-05-28 15:03:01",
      "commits": 283
    },
    {
      "source": "shinygap.Rmd",
      "filename": "shinygap.html",
      "title": "Shiny for Genetic Analysis Package (gap) Designs",
      "author": "University of Cambridge, Cambridge, UK, https://jinghuazhao.github.io/",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Family-based study",
        "Population-based study",
        "Case-cohort study",
        "Two-stage case-control design",
        "Appendix: Theory",
        "A. Family-based and population-based designs",
        "B. Case-cohort design",
        "B.1 Power",
        "B.2 Sample size",
        "C. Two-stage case-control design",
        "References"
      ],
      "created": "2021-06-07 08:14:44",
      "modified": "2026-05-21 09:00:26",
      "commits": 31
    }
  ],
  "_score": 12.367473142813743,
  "_indexed": true,
  "_nocasepkg": "gap",
  "_universes": [
    "jinghuazhao"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.15.3",
      "date": "2026-06-09T13:55:54.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "911d5ed9cb230163cdeee8707c5a719c93fd3773",
      "fileid": "2d1dc6249f43726412740e06c57a071f098952f8551284e18b4e66693220485c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jinghuazhao/actions/runs/27210595677"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.15.3",
      "date": "2026-06-09T13:54:47.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "911d5ed9cb230163cdeee8707c5a719c93fd3773",
      "fileid": "a078d2ea714f8fef06cf3b904a37dcae58b949fcf84c6a499b49e10965559b7a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jinghuazhao/actions/runs/27210595677"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.15.3",
      "date": "2026-06-09T13:55:36.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "911d5ed9cb230163cdeee8707c5a719c93fd3773",
      "fileid": "0f407da21344c914da8411e91f2cfa45eed593b6d764aef75b550defb3f2632a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jinghuazhao/actions/runs/27210595677"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.15.3",
      "date": "2026-06-09T13:55:37.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "911d5ed9cb230163cdeee8707c5a719c93fd3773",
      "fileid": "e000b2002a374034192872fa308dfa960a5ecfa8ce544168f760cbc2e5f09bcc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jinghuazhao/actions/runs/27210595677"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.15.3",
      "date": "2026-06-09T13:59:33.000Z",
      "arch": "aarch64",
      "commit": "911d5ed9cb230163cdeee8707c5a719c93fd3773",
      "fileid": "160921ef1df3ca1b536069ef464b2501f5c8f05b12bff1745ff614470a77d601",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jinghuazhao/actions/runs/27210595677"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.15.3",
      "date": "2026-06-09T13:59:05.000Z",
      "arch": "x86_64",
      "commit": "911d5ed9cb230163cdeee8707c5a719c93fd3773",
      "fileid": "cae73ab16f900923f8a5f5197e06f7288d8a104ac348688756949186b27724e8",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jinghuazhao/actions/runs/27210595677"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.15.3",
      "date": "2026-06-09T13:58:56.000Z",
      "arch": "aarch64",
      "commit": "911d5ed9cb230163cdeee8707c5a719c93fd3773",
      "fileid": "71addd6fc834418cba24f47c2864f8765f776067686f595d3a97178c02040082",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jinghuazhao/actions/runs/27210595677"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.15.3",
      "date": "2026-06-09T13:58:25.000Z",
      "arch": "x86_64",
      "commit": "911d5ed9cb230163cdeee8707c5a719c93fd3773",
      "fileid": "5092b0a6493d928fdc0ff8f8f3f888eb731560c2b0a4a1037776f9493657876a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jinghuazhao/actions/runs/27210595677"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.15.3",
      "date": "2026-06-09T13:56:07.000Z",
      "arch": "emscripten",
      "commit": "911d5ed9cb230163cdeee8707c5a719c93fd3773",
      "fileid": "e6f4d5a4c091e07bbdf2e58e9dfb7e1b80638dc10ffd164b072a638dced26780",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jinghuazhao/actions/runs/27210595677"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.15.3",
      "date": "2026-06-09T13:53:30.000Z",
      "arch": "x86_64",
      "commit": "911d5ed9cb230163cdeee8707c5a719c93fd3773",
      "fileid": "622fe7a8097df4f422c665e32dcc3b8ca0c7ebce37f479bfcc28013cc88cab07",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jinghuazhao/actions/runs/27210595677"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.15.3",
      "date": "2026-06-09T13:53:37.000Z",
      "arch": "x86_64",
      "commit": "911d5ed9cb230163cdeee8707c5a719c93fd3773",
      "fileid": "80e10a74e37a45e1d8a4272339556c8abde93d19697b63a9ad0d11d3d55b18aa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jinghuazhao/actions/runs/27210595677"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.15.3",
      "date": "2026-06-09T13:53:33.000Z",
      "arch": "x86_64",
      "commit": "911d5ed9cb230163cdeee8707c5a719c93fd3773",
      "fileid": "e46bf83dd809e819cfc97725f2176cc9c4d334147c8a585c11f3701d425c1c55",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jinghuazhao/actions/runs/27210595677"
    }
  ]
}