{
  "_id": "6a105eb8acfb0bcc41ca5bb3",
  "Package": "moire",
  "Title": "Multiplicity of Infection and Allele Frequency Recovery from\nNoisy Polyallelic Genetics Data",
  "Version": "3.5.0",
  "Authors@R": "c(\nperson(given = \"Maxwell\",\nfamily = \"Murphy\",\nrole = c(\"aut\", \"cre\"),\nemail = \"murphy2122@berkeley.edu\",\ncomment = c(ORCID = \"0000-0003-0332-4388\")),\nperson(given = \"Bryan\",\nfamily = \"Greenhouse\",\nrole = c(\"aut\", \"ths\"),\nemail = \"bryan.greenhouse@ucsf.edu\",\ncomment = c(ORCID = \"0000-0003-0287-9111\")))",
  "Description": "A Markov Chain Monte Carlo (MCMC) based approach to\nBayesian estimation of individual level multiplicity of\ninfection, within host relatedness, and population allele\nfrequencies from polyallelic genetic data.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "LazyDataCompression": "bzip2",
  "SystemRequirements": "C++17, GNU make",
  "URL": "https://github.com/EPPIcenter/moire,\nhttps://eppicenter.github.io/moire/,\nhttps://eppicenter.ucsf.edu/resources",
  "BugReports": "https://github.com/EPPIcenter/moire/issues",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.1",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "make libicu-dev",
  "Repository": "https://plasmogenepi.r-universe.dev",
  "Date/Publication": "2024-11-06 21:35:57 UTC",
  "RemoteUrl": "https://github.com/eppicenter/moire",
  "RemoteRef": "HEAD",
  "RemoteSha": "656dcfbb827430edeffa40a0af7b44cc89f689bd",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-08 09:22:30 UTC",
    "User": "root"
  },
  "Author": "Maxwell Murphy [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-0332-4388>),\nBryan Greenhouse [aut, ths] (ORCID:\n<https://orcid.org/0000-0003-0287-9111>)",
  "Maintainer": "Maxwell Murphy <murphy2122@berkeley.edu>",
  "MD5sum": "d28e34dcf2c1aac190645c533498e8c6",
  "_user": "plasmogenepi",
  "_type": "src",
  "_file": "moire_3.5.0.tar.gz",
  "_fileid": "b673a33cf2748203c007d9fdca3259341badf9891353c36b08e803d08e8aee81",
  "_filesize": 4489814,
  "_sha256": "b673a33cf2748203c007d9fdca3259341badf9891353c36b08e803d08e8aee81",
  "_created": "2026-05-08T09:22:30.000Z",
  "_published": "2026-05-22T13:48:40.775Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77392575425,
      "time": 180,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6876007195"
    },
    {
      "job": 77392575708,
      "time": 196,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6876013538"
    },
    {
      "job": 77392575717,
      "time": 192,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6876010459"
    },
    {
      "job": 77392575697,
      "time": 191,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6876010393"
    },
    {
      "job": 77392576032,
      "time": 107,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6876150119"
    },
    {
      "job": 77392575835,
      "time": 360,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6876133058"
    },
    {
      "job": 77392575716,
      "time": 161,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6876141906"
    },
    {
      "job": 77392575599,
      "time": 216,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6876103156"
    },
    {
      "job": 77392574843,
      "time": 284,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6875953509"
    },
    {
      "job": 77392574900,
      "time": 165,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7162082898"
    },
    {
      "job": 77392575540,
      "time": 208,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6876015682"
    },
    {
      "job": 77392575593,
      "time": 213,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6876017311"
    },
    {
      "job": 77392575619,
      "time": 206,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6876015066"
    }
  ],
  "_buildurl": "https://github.com/r-universe/plasmogenepi/actions/runs/25547617603",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/eppicenter/moire",
  "_commit": {
    "id": "656dcfbb827430edeffa40a0af7b44cc89f689bd",
    "author": "Maxwell Murphy <murphy2122@berkeley.edu>",
    "committer": "Maxwell Murphy <murphy2122@berkeley.edu>",
    "message": "update article\n",
    "time": 1730928957
  },
  "_maintainer": {
    "name": "Maxwell Murphy",
    "email": "murphy2122@berkeley.edu",
    "login": "m-murphy",
    "orcid": "0000-0003-0332-4388",
    "twitter": "@MxMrphy",
    "uuid": 5225200
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppProgress",
      "role": "LinkingTo"
    },
    {
      "package": "RcppParallel",
      "role": "LinkingTo"
    },
    {
      "package": "BH",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "RcppProgress",
      "role": "Imports"
    },
    {
      "package": "RcppParallel",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "markdown",
      "role": "Suggests"
    },
    {
      "package": "forcats",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "parallelly",
      "role": "Suggests"
    }
  ],
  "_owner": "eppicenter",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "genomics",
    "malaria",
    "mcmc",
    "cpp",
    "openmp"
  ],
  "_stars": 7,
  "_contributors": [
    {
      "user": "m-murphy",
      "count": 149,
      "uuid": 5225200
    }
  ],
  "_userbio": {
    "uuid": 140542976,
    "type": "organization",
    "name": "PlasmoGenEpi",
    "description": "We are a network of scientists who have come together since 2018 to address challenges in malaria genomic epidemiology."
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/moire"
  },
  "_devurl": "https://github.com/eppicenter/moire",
  "_pkgdown": "https://eppicenter.github.io/moire/",
  "_searchresults": 25,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/moire.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "calculate_he",
    "calculate_med_allele_freqs",
    "calculate_naive_allele_frequencies",
    "calculate_naive_coi",
    "calculate_naive_coi_offset",
    "load_delimited_data",
    "load_long_form_data",
    "plot_chain_swaps",
    "rdirichlet",
    "run_mcmc",
    "simulate_allele_frequencies",
    "simulate_data",
    "simulate_observed_allele",
    "simulate_observed_genotype",
    "simulate_sample_coi",
    "simulate_sample_genotype",
    "summarize_allele_freq_fn",
    "summarize_allele_freqs",
    "summarize_coi",
    "summarize_effective_coi",
    "summarize_epsilon_neg",
    "summarize_epsilon_pos",
    "summarize_he",
    "summarize_relatedness"
  ],
  "_datasets": [
    {
      "name": "mcmc_results",
      "title": "MCMC results from using the packaged simulated data and calling 'run_mcmc()'",
      "object": "mcmc_results",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "namibia_data",
      "title": "Genetic and epidemiological data from Namibia",
      "object": "namibia_data",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "sample_id",
        "HealthFacility",
        "HealthDistrict",
        "Region",
        "Country",
        "locus",
        "allele"
      ],
      "rows": 97214,
      "table": true,
      "tojson": true
    },
    {
      "name": "regional_allele_frequencies",
      "title": "Allele frequencies for different regions",
      "object": "regional_allele_frequencies",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "simulated_data",
      "title": "Simulated genotyping data",
      "object": "simulated_data",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "calculate_he",
      "title": "Calculate the expected heterozygosity from allele frequencies",
      "topics": [
        "calculate_he"
      ]
    },
    {
      "page": "calculate_med_allele_freqs",
      "title": "Calculate the geometric median of the posterior distribution of allele frequencies",
      "topics": [
        "calculate_med_allele_freqs"
      ]
    },
    {
      "page": "calculate_naive_allele_frequencies",
      "title": "Calculate naive allele frequencies",
      "topics": [
        "calculate_naive_allele_frequencies"
      ]
    },
    {
      "page": "calculate_naive_coi",
      "title": "Calculate naive COI",
      "topics": [
        "calculate_naive_coi"
      ]
    },
    {
      "page": "calculate_naive_coi_offset",
      "title": "Calculate naive COI offset",
      "topics": [
        "calculate_naive_coi_offset"
      ]
    },
    {
      "page": "load_delimited_data",
      "title": "Load delimited data",
      "topics": [
        "load_delimited_data"
      ]
    },
    {
      "page": "load_long_form_data",
      "title": "Load long form data",
      "topics": [
        "load_long_form_data"
      ]
    },
    {
      "page": "mcmc_results",
      "title": "MCMC results from using the packaged simulated data and calling 'run_mcmc()'",
      "topics": [
        "mcmc_results"
      ]
    },
    {
      "page": "namibia_data",
      "title": "Genetic and epidemiological data from Namibia",
      "topics": [
        "namibia_data"
      ]
    },
    {
      "page": "plot_chain_swaps",
      "title": "Plot chain swap acceptance rates",
      "topics": [
        "plot_chain_swaps"
      ]
    },
    {
      "page": "rdirichlet",
      "title": "Dirichlet distribution",
      "topics": [
        "rdirichlet"
      ]
    },
    {
      "page": "regional_allele_frequencies",
      "title": "Allele frequencies for different regions",
      "topics": [
        "regional_allele_frequencies"
      ]
    },
    {
      "page": "run_mcmc",
      "title": "Sample from the target distribution using MCMC",
      "topics": [
        "run_mcmc"
      ]
    },
    {
      "page": "simulate_allele_frequencies",
      "title": "Simulate allele frequencies",
      "topics": [
        "simulate_allele_frequencies"
      ]
    },
    {
      "page": "simulate_data",
      "title": "Simulate data generated according to the assumed model",
      "topics": [
        "simulate_data"
      ]
    },
    {
      "page": "simulate_observed_allele",
      "title": "Simulates the observation process",
      "topics": [
        "simulate_observed_allele"
      ]
    },
    {
      "page": "simulate_observed_genotype",
      "title": "Simulate observed genotypes",
      "topics": [
        "simulate_observed_genotype"
      ]
    },
    {
      "page": "simulate_sample_coi",
      "title": "Simulate sample COI",
      "topics": [
        "simulate_sample_coi"
      ]
    },
    {
      "page": "simulate_sample_genotype",
      "title": "Simulate sample genotype",
      "topics": [
        "simulate_sample_genotype"
      ]
    },
    {
      "page": "simulated_data",
      "title": "Simulated genotyping data",
      "topics": [
        "simulated_data"
      ]
    },
    {
      "page": "summarize_allele_freq_fn",
      "title": "Summarize Function of Allele Frequencies",
      "topics": [
        "summarize_allele_freq_fn"
      ]
    },
    {
      "page": "summarize_allele_freqs",
      "title": "Summarize allele frequencies",
      "topics": [
        "summarize_allele_freqs"
      ]
    },
    {
      "page": "summarize_coi",
      "title": "Summarize COI",
      "topics": [
        "summarize_coi"
      ]
    },
    {
      "page": "summarize_effective_coi",
      "title": "Summarize effective COI",
      "topics": [
        "summarize_effective_coi"
      ]
    },
    {
      "page": "summarize_epsilon_neg",
      "title": "Summarize epsilon_neg",
      "topics": [
        "summarize_epsilon_neg"
      ]
    },
    {
      "page": "summarize_epsilon_pos",
      "title": "Summarize epsilon_pos",
      "topics": [
        "summarize_epsilon_pos"
      ]
    },
    {
      "page": "summarize_he",
      "title": "Summarize locus heterozygosity",
      "topics": [
        "summarize_he"
      ]
    },
    {
      "page": "summarize_relatedness",
      "title": "Summarize relatedness",
      "topics": [
        "summarize_relatedness"
      ]
    }
  ],
  "_pkglogo": "https://github.com/eppicenter/moire/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/eppicenter/moire/raw/HEAD/README.md",
  "_rundeps": [
    "BH",
    "cli",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppParallel",
    "RcppProgress",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "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": "namibia.Rmd",
      "filename": "namibia.html",
      "title": "Application to Namibia",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Running MOIRE on Namibia data"
      ],
      "created": "2024-03-18 22:03:28",
      "modified": "2024-08-01 01:36:32",
      "commits": 3
    },
    {
      "source": "mcmc_demo.Rmd",
      "filename": "mcmc_demo.html",
      "title": "MCMC Demonstration",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Simulation and MCMC",
        "Estimating COI",
        "Estimating effective COI",
        "What is effective COI?",
        "Estimating Relatedness",
        "Estimating allele frequencies",
        "Estimating expected heterozygosity"
      ],
      "created": "2020-08-24 22:23:04",
      "modified": "2023-12-19 19:37:25",
      "commits": 14
    }
  ],
  "_score": 4.243038048686294,
  "_indexed": false,
  "_nocasepkg": "moire",
  "_universes": [
    "plasmogenepi"
  ],
  "_indexurl": "https://eppicenter.r-universe.dev/moire",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "3.5.0",
      "date": "2026-05-08T09:25:26.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "656dcfbb827430edeffa40a0af7b44cc89f689bd",
      "fileid": "4003a8dcb3aa2326d9a5195f7da1ba00f4c852b5f8d47254a952ee1057dcca76",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plasmogenepi/actions/runs/25547617603"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "3.5.0",
      "date": "2026-05-08T09:25:43.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "656dcfbb827430edeffa40a0af7b44cc89f689bd",
      "fileid": "e3e5a7ef95d266bd458e5bb7ef1855ddcdc460979f8a96d2a2d4ea4662f2e6ec",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plasmogenepi/actions/runs/25547617603"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "3.5.0",
      "date": "2026-05-08T09:25:40.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "656dcfbb827430edeffa40a0af7b44cc89f689bd",
      "fileid": "659dc9431ca93bba07c3b6e1f440eafd52ba207d01d7bac26369ddaa51dc97bc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plasmogenepi/actions/runs/25547617603"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "3.5.0",
      "date": "2026-05-08T09:25:35.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "656dcfbb827430edeffa40a0af7b44cc89f689bd",
      "fileid": "27401bd20d8aaec29842872f277f300987b3dc632bb54de634f0f77bbe121a0a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plasmogenepi/actions/runs/25547617603"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "3.5.0",
      "date": "2026-05-08T09:34:02.000Z",
      "arch": "aarch64",
      "commit": "656dcfbb827430edeffa40a0af7b44cc89f689bd",
      "fileid": "371990561901e58a196961b20e73d1b312961079c7711f37168953989d877d89",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plasmogenepi/actions/runs/25547617603"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "3.5.0",
      "date": "2026-05-08T09:31:24.000Z",
      "arch": "x86_64",
      "commit": "656dcfbb827430edeffa40a0af7b44cc89f689bd",
      "fileid": "dead616e3672474e0613a47354538191719ba2f3e1b8c0032a84a417ebb617d5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plasmogenepi/actions/runs/25547617603"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "3.5.0",
      "date": "2026-05-08T09:33:15.000Z",
      "arch": "aarch64",
      "commit": "656dcfbb827430edeffa40a0af7b44cc89f689bd",
      "fileid": "9cd111d59292601feea6866f4b707595523a8d2f000ccdb0c92f9069832c920d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plasmogenepi/actions/runs/25547617603"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "3.5.0",
      "date": "2026-05-08T09:30:37.000Z",
      "arch": "x86_64",
      "commit": "656dcfbb827430edeffa40a0af7b44cc89f689bd",
      "fileid": "999f96208e764f6b3bc11598e05f82ffc07a3e3d45dee807b8481e166d828581",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plasmogenepi/actions/runs/25547617603"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "3.5.0",
      "date": "2026-05-08T09:24:50.000Z",
      "arch": "x86_64",
      "commit": "656dcfbb827430edeffa40a0af7b44cc89f689bd",
      "fileid": "30c8362825fd8b044714420fb2152734cf2259887e8c46c279ebf1e508abb952",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plasmogenepi/actions/runs/25547617603"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "3.5.0",
      "date": "2026-05-08T09:24:58.000Z",
      "arch": "x86_64",
      "commit": "656dcfbb827430edeffa40a0af7b44cc89f689bd",
      "fileid": "b323fb30cdf9da6f7c9b29b49326ba2479d5b2b37e8d4395905e15ba9da06afe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plasmogenepi/actions/runs/25547617603"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "3.5.0",
      "date": "2026-05-08T09:24:43.000Z",
      "arch": "x86_64",
      "commit": "656dcfbb827430edeffa40a0af7b44cc89f689bd",
      "fileid": "2b577355ab75879c06eb24d036b6bdfc557bed88f55198b3c534055f73e32473",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plasmogenepi/actions/runs/25547617603"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "3.5.0",
      "date": "2026-05-22T13:47:38.000Z",
      "arch": "emscripten",
      "commit": "656dcfbb827430edeffa40a0af7b44cc89f689bd",
      "fileid": "a711ad516002d4d349c6a91a92524c2fdc0cd3133af8b9dd74aa3c6da7fa516c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/plasmogenepi/actions/runs/25547617603"
    }
  ]
}