{
  "_id": "6a3107123efcd9bda4355d34",
  "Package": "cophescan",
  "Title": "Adaptation of the Coloc Method for PheWAS",
  "Version": "1.4.3",
  "Authors@R": "c(person(\"Ichcha\", \"Manipur\", role=c(\"aut\",\"cre\"),\nemail = \"im504@cam.ac.uk\"),\nperson(\"Chris\", \"Wallace\", role=c(\"aut\")))",
  "Maintainer": "Ichcha Manipur <im504@cam.ac.uk>",
  "Description": "A Bayesian method for Phenome-wide association studies\n(PheWAS) that identifies causal associations between genetic\nvariants and traits, while simultaneously addressing\nconfounding due to linkage disequilibrium. For details see\nManipur et al (2024, Nature Communications)\n<doi:10.1038/s41467-024-49990-8>.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "RoxygenNote": "7.3.3",
  "URL": "https://github.com/ichcha-m/cophescan,\nhttps://ichcha-m.github.io/cophescan/",
  "BugReports": "https://github.com/ichcha-m/cophescan/issues",
  "Collate": "'cophescan-package.R' 'singlevar.R' 'multivarsusie.R'\n'multitrait.R' 'cophe_hyp_predict.R' 'copheplots.R'\n'testdata.R' 'RcppExports.R' 'metrop_hier_priors.R' 'zzz.R'",
  "Config/testthat/edition": "3",
  "ByteCompile": "true",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-16 08:14:46 UTC",
    "User": "root"
  },
  "Author": "Ichcha Manipur [aut, cre], Chris Wallace [aut]",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-03-18 15:42:32 UTC",
  "RemoteUrl": "https://github.com/cran/cophescan",
  "RemoteRef": "HEAD",
  "RemoteSha": "5249d08a4d24ff375b16a3d599a5f7b7f14583f7",
  "MD5sum": "4262b7e235953f1d39a5a52c18069b4e",
  "_user": "cran",
  "_type": "src",
  "_file": "cophescan_1.4.3.tar.gz",
  "_fileid": "86f764105703ecab5d862fd2290c128982417054b4751f3f8f5efdc2b143042b",
  "_filesize": 2617556,
  "_sha256": "86f764105703ecab5d862fd2290c128982417054b4751f3f8f5efdc2b143042b",
  "_created": "2026-06-16T08:14:46.000Z",
  "_published": "2026-06-16T08:19:30.009Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 81611168380,
      "time": 205,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7661067614"
    },
    {
      "job": 81611168393,
      "time": 174,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7661055617"
    },
    {
      "job": 81611168391,
      "time": 218,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7661071994"
    },
    {
      "job": 81611168587,
      "time": 208,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7661068563"
    },
    {
      "job": 81610432981,
      "time": 241,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7660989768"
    },
    {
      "job": 81611168384,
      "time": 180,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7661057929"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/27603663108",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/cophescan",
  "_commit": {
    "id": "5249d08a4d24ff375b16a3d599a5f7b7f14583f7",
    "author": "Ichcha Manipur <im504@cam.ac.uk>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.4.3\n",
    "time": 1773848552
  },
  "_maintainer": {
    "name": "Ichcha Manipur",
    "email": "im504@cam.ac.uk"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.7",
      "role": "Imports"
    },
    {
      "package": "coloc",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "ggrepel",
      "role": "Imports"
    },
    {
      "package": "pheatmap",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "viridis",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "matrixStats",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "RColorBrewer",
      "role": "Suggests"
    },
    {
      "package": "ggpubr",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-31",
      "n": 1
    },
    {
      "week": "2026-12",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.4.2",
      "date": "2025-07-30"
    },
    {
      "name": "1.4.3",
      "date": "2026-03-18"
    }
  ],
  "_stars": 1,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 609,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 625,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/cophescan"
  },
  "_devurl": "https://github.com/ichcha-m/cophescan",
  "_pkgdown": "https://ichcha-m.github.io/cophescan/",
  "_searchresults": 41,
  "_topics": [
    "cpp",
    "openmp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/cophescan.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/ichcha-m/cophescan",
  "_realowner": "ichcha-m",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.3.2",
      "date": "2023-10-25"
    },
    {
      "version": "1.4.0",
      "date": "2024-03-11"
    },
    {
      "version": "1.4.1",
      "date": "2024-06-11"
    },
    {
      "version": "1.4.2",
      "date": "2025-08-01"
    },
    {
      "version": "1.4.3",
      "date": "2026-03-18"
    }
  ],
  "_exports": [
    "adjust_priors",
    "average_piks",
    "average_piks_list",
    "average_posterior_prob",
    "average_posterior_prob_list",
    "combine.bf",
    "cophe_heatmap",
    "cophe_plot",
    "cophe.bf_bf",
    "cophe.hyp.predict",
    "cophe.multitrait",
    "cophe.prepare.dat.single",
    "cophe.prepare.dat.susie",
    "cophe.single",
    "cophe.single.lbf",
    "cophe.susie",
    "cophe.susie.lbf",
    "get_beta",
    "get_posterior_prob",
    "Hc.cutoff.fdr",
    "hypothesis.priors",
    "logd_alpha",
    "logd_beta",
    "logd_gamma",
    "loglik",
    "logpost",
    "logpriors",
    "logsum",
    "logsumexp",
    "metrop_run",
    "multitrait.simplify",
    "pars_init",
    "pars2pik",
    "per.snp.priors",
    "piks",
    "plot_trait_manhat",
    "posterior_prob",
    "prepare_plot_data",
    "propose",
    "run_metrop_priors",
    "sample_alpha",
    "sample_beta",
    "sample_gamma",
    "summary.cophe",
    "target"
  ],
  "_datasets": [
    {
      "name": "cophe_multi_trait_data",
      "title": "Simulated multi-trait data",
      "object": "cophe_multi_trait_data",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "cophescan-package",
      "title": "The 'cophescan' package.",
      "topics": [
        "cophescan-package",
        "cophescan"
      ]
    },
    {
      "page": "adjust_priors",
      "title": "adjust_priors",
      "topics": [
        "adjust_priors"
      ]
    },
    {
      "page": "average_piks",
      "title": "Average of priors: pnk, pak and pck",
      "topics": [
        "average_piks"
      ]
    },
    {
      "page": "average_piks_list",
      "title": "Average of priors: pnk, pak and pck from list (memory intensive)",
      "topics": [
        "average_piks_list"
      ]
    },
    {
      "page": "average_posterior_prob",
      "title": "Average of posterior probabilities: Hn, Ha and Hc",
      "topics": [
        "average_posterior_prob"
      ]
    },
    {
      "page": "average_posterior_prob_list",
      "title": "Average of posterior probabilities: Hn, Ha and Hc from list (memory intensive)",
      "topics": [
        "average_posterior_prob_list"
      ]
    },
    {
      "page": "combine.bf",
      "title": "combine.bf",
      "topics": [
        "combine.bf"
      ]
    },
    {
      "page": "cophe_heatmap",
      "title": "Heatmap of multi-trait cophescan results",
      "topics": [
        "cophe_heatmap"
      ]
    },
    {
      "page": "cophe_multi_trait_data",
      "title": "Simulated multi-trait data",
      "topics": [
        "cophe_multi_trait_data"
      ]
    },
    {
      "page": "cophe_plot",
      "title": "cophe_plots showing the Ha and Hc of all traits and labelled above the specified threshold",
      "topics": [
        "cophe_plot"
      ]
    },
    {
      "page": "cophe.hyp.predict",
      "title": "Predict cophescan hypothesis for tested associations",
      "topics": [
        "cophe.hyp.predict"
      ]
    },
    {
      "page": "cophe.multitrait",
      "title": "Run cophescan on multiple traits at once",
      "topics": [
        "cophe.multitrait"
      ]
    },
    {
      "page": "cophe.single",
      "title": "Bayesian cophescan analysis using Approximate Bayes Factors",
      "topics": [
        "cophe.single"
      ]
    },
    {
      "page": "cophe.single.lbf",
      "title": "cophe.single.lbf",
      "topics": [
        "cophe.single.lbf"
      ]
    },
    {
      "page": "cophe.susie",
      "title": "run 'cophe.susie' using susie to detect separate signals",
      "topics": [
        "cophe.susie"
      ]
    },
    {
      "page": "cophe.susie.lbf",
      "title": "cophe.susie.lbf",
      "topics": [
        "cophe.susie.lbf"
      ]
    },
    {
      "page": "get_beta",
      "title": "Extract beta and p-values of queried variant",
      "topics": [
        "get_beta"
      ]
    },
    {
      "page": "get_posterior_prob",
      "title": "Calculation of the posterior prob of Hn, Ha and Hc",
      "topics": [
        "get_posterior_prob"
      ]
    },
    {
      "page": "Hc.cutoff.fdr",
      "title": "Estimate the Hc.cutoff for the required FDR",
      "topics": [
        "Hc.cutoff.fdr"
      ]
    },
    {
      "page": "hypothesis.priors",
      "title": "hypothesis.priors",
      "topics": [
        "hypothesis.priors"
      ]
    },
    {
      "page": "logd_alpha",
      "title": "dnorm for alpha",
      "topics": [
        "logd_alpha"
      ]
    },
    {
      "page": "logd_beta",
      "title": "dgamma for beta",
      "topics": [
        "logd_beta"
      ]
    },
    {
      "page": "logd_gamma",
      "title": "dgamma for gamma",
      "topics": [
        "logd_gamma"
      ]
    },
    {
      "page": "loglik",
      "title": "Log likelihood calculation",
      "topics": [
        "loglik"
      ]
    },
    {
      "page": "logpost",
      "title": "Log posterior calculation",
      "topics": [
        "logpost"
      ]
    },
    {
      "page": "logpriors",
      "title": "Calculate log priors",
      "topics": [
        "logpriors"
      ]
    },
    {
      "page": "logsum",
      "title": "logsum",
      "topics": [
        "logsum"
      ]
    },
    {
      "page": "logsumexp",
      "title": "Log sum",
      "topics": [
        "logsumexp"
      ]
    },
    {
      "page": "metrop_run",
      "title": "Run the hierarchical mcmc model to infer priors",
      "topics": [
        "metrop_run"
      ]
    },
    {
      "page": "multitrait.simplify",
      "title": "Simplifying the output obtained from 'cophe.multitrait', 'cophe.single' or 'cophe.susie'",
      "topics": [
        "multitrait.simplify"
      ]
    },
    {
      "page": "pars_init",
      "title": "Initiate parameters alpha, beta and gamma",
      "topics": [
        "pars_init"
      ]
    },
    {
      "page": "pars2pik",
      "title": "Conversion of parameters alpha, beta and gamma to pnk, pak and pck",
      "topics": [
        "pars2pik"
      ]
    },
    {
      "page": "per.snp.priors",
      "title": "per.snp.priors",
      "topics": [
        "per.snp.priors"
      ]
    },
    {
      "page": "piks",
      "title": "List of priors: pn, pa and pc over all iterations",
      "topics": [
        "piks"
      ]
    },
    {
      "page": "plot_trait_manhat",
      "title": "Plot region Manhattan for a trait highlighting the queried variant",
      "topics": [
        "plot_trait_manhat"
      ]
    },
    {
      "page": "posterior_prob",
      "title": "List of posterior probabilities: Hn, Ha and Hc over all iterations",
      "topics": [
        "posterior_prob"
      ]
    },
    {
      "page": "prepare_plot_data",
      "title": "Prepare data for plotting",
      "topics": [
        "prepare_plot_data"
      ]
    },
    {
      "page": "propose",
      "title": "Proposal distribution",
      "topics": [
        "propose"
      ]
    },
    {
      "page": "run_metrop_priors",
      "title": "Run the hierarchical Metropolis Hastings model to infer priors",
      "topics": [
        "run_metrop_priors"
      ]
    },
    {
      "page": "sample_alpha",
      "title": "sample alpha",
      "topics": [
        "sample_alpha"
      ]
    },
    {
      "page": "sample_beta",
      "title": "sample beta",
      "topics": [
        "sample_beta"
      ]
    },
    {
      "page": "sample_gamma",
      "title": "sample gamma",
      "topics": [
        "sample_gamma"
      ]
    },
    {
      "page": "summary.cophe",
      "title": "print the summary of results from cophescan single or susie",
      "topics": [
        "summary.cophe"
      ]
    },
    {
      "page": "target",
      "title": "Target distribution",
      "topics": [
        "target"
      ]
    }
  ],
  "_pkglogo": "https://github.com/cran/cophescan/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/cran/cophescan/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "coloc",
    "cpp11",
    "crayon",
    "data.table",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "ggrepel",
    "glue",
    "gridExtra",
    "gtable",
    "irlba",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "matrixStats",
    "mixsqp",
    "pheatmap",
    "pillar",
    "pkgconfig",
    "plyr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "reshape",
    "rlang",
    "S7",
    "scales",
    "susieR",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridis",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "openmp",
      "homepage": "http://gcc.gnu.org/",
      "description": "GCC OpenMP (GOMP) support library"
    }
  ],
  "_vignettes": [
    {
      "source": "FixedPriors_03.Rmd",
      "filename": "FixedPriors_03.html",
      "title": "CoPheScan: Example with Fixed Priors",
      "author": "Ichcha Manipur",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Load test data"
      ],
      "created": "2023-10-25 07:30:44",
      "modified": "2026-03-18 15:42:32",
      "commits": 3
    },
    {
      "source": "HierarchicalPriors_04.Rmd",
      "filename": "HierarchicalPriors_04.html",
      "title": "CoPheScan: Example with Hierarchical Priors",
      "author": "Ichcha Manipur",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Multi-trait analysis",
        "Run hierarchical model for priors",
        "Diagnostics of the hierarchical model",
        "Prediction",
        "Visualisation"
      ],
      "created": "2023-10-25 07:30:44",
      "modified": "2026-03-18 15:42:32",
      "commits": 3
    },
    {
      "source": "InputData_02.Rmd",
      "filename": "InputData_02.html",
      "title": "CoPheScan: Input data",
      "author": "Ichcha Manipur",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2023-10-25 07:30:44",
      "modified": "2026-03-18 15:42:32",
      "commits": 2
    },
    {
      "source": "IntroductionCoPheScan_01.Rmd",
      "filename": "IntroductionCoPheScan_01.html",
      "title": "Introduction to CoPheScan",
      "author": "Ichcha Manipur",
      "engine": "knitr::rmarkdown",
      "headings": [
        "CoPheScan",
        "CoPheScan approaches",
        "Further reading"
      ],
      "created": "2023-10-25 07:30:44",
      "modified": "2026-03-18 15:42:32",
      "commits": 3
    }
  ],
  "_score": 4.214843848047698,
  "_indexed": false,
  "_nocasepkg": "cophescan",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://ichcha-m.r-universe.dev/cophescan",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.4.3",
      "date": "2026-06-16T08:17:54.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "5249d08a4d24ff375b16a3d599a5f7b7f14583f7",
      "fileid": "465c044d4403d765e89faeaa2b3677b1103757711370359b8bd4f74fa4ea4242",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27603663108"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.4.3",
      "date": "2026-06-16T08:17:26.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "5249d08a4d24ff375b16a3d599a5f7b7f14583f7",
      "fileid": "1347201c446ff94ded49fa4445a57a14fc1ecc451f89b57216df8f466fabf61f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27603663108"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.4.3",
      "date": "2026-06-16T08:18:03.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "5249d08a4d24ff375b16a3d599a5f7b7f14583f7",
      "fileid": "5f4a4e05834724b9ae72339f12e605b164274b638c7e765650ddf477e911cae3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27603663108"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.4.3",
      "date": "2026-06-16T08:17:49.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "5249d08a4d24ff375b16a3d599a5f7b7f14583f7",
      "fileid": "9f9c4b5c9e1cdb36d15c830bd3ebf770363a5fa2d6945b6f9a5895927e77fe96",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27603663108"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.4.3",
      "date": "2026-06-16T08:18:11.000Z",
      "arch": "emscripten",
      "commit": "5249d08a4d24ff375b16a3d599a5f7b7f14583f7",
      "fileid": "398219f0055818497d5e146025839ed045e044c38b2a9f2d050ea5548ed359c7",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27603663108"
    }
  ]
}