{
  "_id": "6a103250acfb0bcc41c9773c",
  "Package": "emcAdr",
  "Type": "Package",
  "Title": "Evolutionary Version of the Metropolis-Hastings Algorithm",
  "Version": "1.3",
  "Date": "2026-02-04",
  "Author": "Jules Bangard [aut, cre] (ORCID:\n<https://orcid.org/0009-0007-4670-7860>)",
  "Authors@R": "c(\nperson(\"Jules\", \"Bangard\", , \"jules.bangard@etu.unistra.fr\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0009-0007-4670-7860\")))",
  "Maintainer": "Jules Bangard <jules.bangard@etu.unistra.fr>",
  "Description": "Provides computational methods for detecting adverse\nhigh-order drug interactions from individual case safety\nreports using statistical techniques, allowing the exploration\nof higher-order interactions among drug cocktails.",
  "License": "GPL-3",
  "RoxygenNote": "7.3.2",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-12 08:36:10 UTC",
    "User": "root"
  },
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-02-05 13:41:57 UTC",
  "RemoteUrl": "https://github.com/cran/emcAdr",
  "RemoteRef": "HEAD",
  "RemoteSha": "98805d95186e7c7b28129408fcff476b866ec83d",
  "MD5sum": "8d64f12bd65bbce317751565e3dbd574",
  "_user": "cran",
  "_type": "src",
  "_file": "emcAdr_1.3.tar.gz",
  "_fileid": "759d3970004c1f3076a30f05b879ac6cd02ff858893f517eab2d89c4cccd249e",
  "_filesize": 574176,
  "_sha256": "759d3970004c1f3076a30f05b879ac6cd02ff858893f517eab2d89c4cccd249e",
  "_created": "2026-05-12T08:36:10.000Z",
  "_published": "2026-05-22T10:39:12.387Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77363161845,
      "time": 212,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6939497732"
    },
    {
      "job": 77363162123,
      "time": 182,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6939487637"
    },
    {
      "job": 77363162638,
      "time": 165,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6939482485"
    },
    {
      "job": 77363162487,
      "time": 170,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6939486156"
    },
    {
      "job": 77363161265,
      "time": 321,
      "config": "source",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "6939427592"
    },
    {
      "job": 77363161397,
      "time": 166,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7158534730"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/25722952246",
  "_status": "failure",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/emcAdr",
  "_commit": {
    "id": "98805d95186e7c7b28129408fcff476b866ec83d",
    "author": "Jules Bangard <jules.bangard@etu.unistra.fr>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.3\n",
    "time": 1770298917
  },
  "_maintainer": {
    "name": "Jules Bangard",
    "email": "jules.bangard@etu.unistra.fr"
  },
  "_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": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "umap",
      "role": "Imports"
    },
    {
      "package": "dbscan",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "logistf",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "gridExtra",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-06",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.3",
      "date": "2026-02-05"
    }
  ],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 197,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/emcAdr"
  },
  "_searchresults": 1,
  "_topics": [
    "cpp",
    "openmp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/emcAdr.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.2",
      "date": "2025-02-27"
    },
    {
      "version": "1.3",
      "date": "2026-02-05"
    }
  ],
  "_exports": [
    "ATCtoNumeric",
    "calculate_divergence",
    "clustering_genetic_algorithm",
    "combination_data_frame",
    "compute_hypergeom_cocktail",
    "compute_hypergeom_on_list",
    "compute_RR_on_list",
    "computeMetrics_size2",
    "csv_to_population",
    "DistributionApproximation",
    "GeneticAlgorithm",
    "get_dissimilarity_from_cocktail_list",
    "get_dissimilarity_from_genetic_results",
    "get_dissimilarity_from_txt_file",
    "hclust_genetic_solution",
    "histogramToDitribution",
    "hyperparam_test_genetic_algorithm",
    "int_cocktail_to_string_cocktail",
    "OutsandingScoreToDistribution",
    "p_value_cocktails",
    "p_value_csv_file",
    "p_value_genetic_results",
    "p_value_on_sampled",
    "plot_evolution",
    "plot_frequency",
    "print_csv",
    "qq_plot_output",
    "remove_higher_cocktails",
    "run_firth_regression",
    "string_list_to_int_cocktails",
    "trueDistributionDrugs",
    "trueDistributionSizeTwoCocktail"
  ],
  "_datasets": [
    {
      "name": "ATC_Tree_UpperBound_2024",
      "title": "ATC Tree Upper Bound 2024",
      "object": "ATC_Tree_UpperBound_2024",
      "class": [
        "data.frame"
      ],
      "fields": [
        "ATCCode",
        "Name",
        "ATC_length",
        "upperBound"
      ],
      "rows": 6809,
      "table": true,
      "tojson": true
    },
    {
      "name": "FAERS_myopathy",
      "title": "FAERS Myopathy Dataset",
      "object": "FAERS_myopathy",
      "class": [
        "data.frame"
      ],
      "fields": [
        "patientATC",
        "patientADR"
      ],
      "rows": 100000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "emcAdr-package",
      "title": "Evolutionary Version of the Metropolis-Hastings Algorithm",
      "topics": [
        "emcAdr-package",
        "emcAdr"
      ]
    },
    {
      "page": "ATC_Tree_UpperBound_2024",
      "title": "ATC Tree Upper Bound 2024",
      "topics": [
        "ATC_Tree_UpperBound_2024"
      ]
    },
    {
      "page": "ATCtoNumeric",
      "title": "Convert ATC Code for each patients to the corresponding DFS number of the ATC tree",
      "topics": [
        "ATCtoNumeric"
      ]
    },
    {
      "page": "calculate_divergence",
      "title": "Calculate the divergence between 2 distributions (the true Distribution and the learned one)",
      "topics": [
        "calculate_divergence"
      ]
    },
    {
      "page": "clustering_genetic_algorithm",
      "title": "Clustering of the solutions of the genetic algorithm using the hclust algorithm",
      "topics": [
        "clustering_genetic_algorithm"
      ]
    },
    {
      "page": "combination_data_frame",
      "title": "Generate Matrix for Drug Combinations",
      "topics": [
        "combination_data_frame"
      ]
    },
    {
      "page": "compute_hypergeom_cocktail",
      "title": "Function used to compute the Hypergeometric score on a cocktail",
      "topics": [
        "compute_hypergeom_cocktail"
      ]
    },
    {
      "page": "compute_hypergeom_on_list",
      "title": "Function used to compute the Hypergeometric score on a list of cocktails",
      "topics": [
        "compute_hypergeom_on_list"
      ]
    },
    {
      "page": "compute_RR_on_list",
      "title": "Function used to compute the Relative Risk on a list of cocktails",
      "topics": [
        "compute_RR_on_list"
      ]
    },
    {
      "page": "computeMetrics_size2",
      "title": "Function used in the reference article to compare diverse Disproportionality Analysis metrics",
      "topics": [
        "computeMetrics_size2"
      ]
    },
    {
      "page": "csv_to_population",
      "title": "Function used to convert your genetic algorithm results that are stored into a .csv file to a Data structure that can be used by the clustering algorithm",
      "topics": [
        "csv_to_population"
      ]
    },
    {
      "page": "DistributionApproximation",
      "title": "The MCMC method that runs the random walk on a single cocktail in order to estimate the distribution of score among cocktails of size Smax.",
      "topics": [
        "DistributionApproximation"
      ]
    },
    {
      "page": "FAERS_myopathy",
      "title": "FAERS Myopathy Dataset",
      "topics": [
        "FAERS_myopathy"
      ]
    },
    {
      "page": "GeneticAlgorithm",
      "title": "Genetic algorithm, trying to reach riskiest cocktails (the ones which maximize the fitness function, Hypergeometric score in our case)",
      "topics": [
        "GeneticAlgorithm"
      ]
    },
    {
      "page": "get_dissimilarity_from_cocktail_list",
      "title": "Recover the square matrix of distance between cocktails where the index (i,j) of the matrix is the distance between cocktails i and j in an arbitrary cocktail list",
      "topics": [
        "get_dissimilarity_from_cocktail_list"
      ]
    },
    {
      "page": "get_dissimilarity_from_genetic_results",
      "title": "Recover the square matrix of distance between cocktails where the index (i,j) of the matrix is the distance between cocktails i and j in the genetic_results list.",
      "topics": [
        "get_dissimilarity_from_genetic_results"
      ]
    },
    {
      "page": "get_dissimilarity_from_txt_file",
      "title": "Recover the square matrix of distance between cocktails where the index (i,j) of the matrix is the distance between cocktails i and j in the csv file containing results of genetic algorithm",
      "topics": [
        "get_dissimilarity_from_txt_file"
      ]
    },
    {
      "page": "hclust_genetic_solution",
      "title": "Clustering of the solutions of the genetic algorithm using the hclust algorithm",
      "topics": [
        "hclust_genetic_solution"
      ]
    },
    {
      "page": "histogramToDitribution",
      "title": "Convert the histogram returned by the DistributionApproximation function, to a real number distribution (that can be used in a test for example)",
      "topics": [
        "histogramToDitribution"
      ]
    },
    {
      "page": "hyperparam_test_genetic_algorithm",
      "title": "This function can be used in order to try different set of parameters for the genetic algorithm in a convenient way. This will run each combination of mutation_rate, nb_elite and alphas possible nb_test_desired times. For each sets of parameters, results will be saved in a file named according to the set of parameter. One can regroup the results of each run in a csv file by using the print_csv function specifying the names of each file that needs to be treated and the number of performed runs on each parameter set",
      "topics": [
        "hyperparam_test_genetic_algorithm"
      ]
    },
    {
      "page": "int_cocktail_to_string_cocktail",
      "title": "Function used to convert integer cocktails (like the one outputed by the distributionApproximation function) to string cocktail in order to make them more readable",
      "topics": [
        "int_cocktail_to_string_cocktail"
      ]
    },
    {
      "page": "OutsandingScoreToDistribution",
      "title": "Output the outstanding score (Outstanding_score) outputed by the MCMC algorithm in a special format",
      "topics": [
        "OutsandingScoreToDistribution"
      ]
    },
    {
      "page": "p_value_cocktails",
      "title": "Used to add the p_value to each cocktail of cocktail list",
      "topics": [
        "p_value_cocktails"
      ]
    },
    {
      "page": "p_value_csv_file",
      "title": "Used to add the p_value to each cocktail of a csv_file that is an output of the genetic algorithm",
      "topics": [
        "p_value_csv_file"
      ]
    },
    {
      "page": "p_value_genetic_results",
      "title": "Used to add the p_value to each cocktail of an output of the genetic algorithm",
      "topics": [
        "p_value_genetic_results"
      ]
    },
    {
      "page": "p_value_on_sampled",
      "title": "Calculate p-value of sampled value",
      "topics": [
        "p_value_on_sampled"
      ]
    },
    {
      "page": "plot_evolution",
      "title": "Plot the evolution of the mean and the best value of the population used by the GeneticAlgorithm",
      "topics": [
        "plot_evolution"
      ]
    },
    {
      "page": "plot_frequency",
      "title": "Plot the histogram of the approximation of the RR distribution",
      "topics": [
        "plot_frequency"
      ]
    },
    {
      "page": "print_csv",
      "title": "Print every cocktails found during the genetic algorithm when used with the hyperparam_test_genetic_algorithm function. This enables to condense the solutions found in each files by collapsing similar cocktail in a single row by cocktail.",
      "topics": [
        "print_csv"
      ]
    },
    {
      "page": "qq_plot_output",
      "title": "Make a Quantile-Quantile diagram from the output of the MCMC algorithm (DistributionAproximation) and the algorithm that exhaustively calculates the distribution",
      "topics": [
        "qq_plot_output"
      ]
    },
    {
      "page": "remove_higher_cocktails",
      "title": "Filter out drug cocktails with high-level ATC classifications",
      "topics": [
        "remove_higher_cocktails"
      ]
    },
    {
      "page": "run_firth_regression",
      "title": "Firth Penalized Logistic Regression for Drug Cocktails",
      "topics": [
        "run_firth_regression"
      ]
    },
    {
      "page": "string_list_to_int_cocktails",
      "title": "Function used to convert a string vector of drugs in form \"drug1:drug2\" to a vector of index of the ATC tree ex: c(ATC_index(drug1), ATC_index(drugs2))",
      "topics": [
        "string_list_to_int_cocktails"
      ]
    },
    {
      "page": "trueDistributionDrugs",
      "title": "The true distribution of the score among every single nodes of the ATC",
      "topics": [
        "trueDistributionDrugs"
      ]
    },
    {
      "page": "trueDistributionSizeTwoCocktail",
      "title": "The true distribution of the score among every size-two cocktails",
      "topics": [
        "trueDistributionSizeTwoCocktail"
      ]
    }
  ],
  "_readme": "https://github.com/cran/emcAdr/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "backports",
    "bit",
    "bit64",
    "boot",
    "broom",
    "cli",
    "clipr",
    "codetools",
    "cpp11",
    "crayon",
    "dbscan",
    "dplyr",
    "farver",
    "forcats",
    "foreach",
    "formula.tools",
    "generics",
    "ggplot2",
    "glmnet",
    "glue",
    "gtable",
    "haven",
    "here",
    "hms",
    "isoband",
    "iterators",
    "jomo",
    "jsonlite",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "logistf",
    "magrittr",
    "MASS",
    "Matrix",
    "mgcv",
    "mice",
    "minqa",
    "mitml",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "openssl",
    "operator.tools",
    "ordinal",
    "pan",
    "pillar",
    "pkgconfig",
    "png",
    "prettyunits",
    "progress",
    "purrr",
    "R6",
    "rappdirs",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "RcppTOML",
    "Rdpack",
    "readr",
    "reformulas",
    "reticulate",
    "rlang",
    "rpart",
    "rprojroot",
    "RSpectra",
    "S7",
    "scales",
    "shape",
    "stringi",
    "stringr",
    "survival",
    "sys",
    "tibble",
    "tidyr",
    "tidyselect",
    "tzdb",
    "ucminf",
    "umap",
    "utf8",
    "vctrs",
    "viridisLite",
    "vroom",
    "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": "base.Rmd",
      "filename": "base.html",
      "title": "emcAdr : Evolutionary Markov Chain for Adverse Drug Reaction",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Aim",
        "Data",
        "Score distribution estimation",
        "Visualize and compare the results",
        "Find cocktails with higher score"
      ],
      "created": "2025-02-27 17:33:20",
      "modified": "2025-02-27 17:33:20",
      "commits": 1
    }
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "emcadr",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3",
      "date": "2026-05-12T08:39:49.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "98805d95186e7c7b28129408fcff476b866ec83d",
      "fileid": "d600467967907a72e16c743183998b3bf42ba37e1db633e415f328607cd36141",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/25722952246"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3",
      "date": "2026-05-12T08:39:23.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "98805d95186e7c7b28129408fcff476b866ec83d",
      "fileid": "8c4099adbe3e4cd75053aaa8bdc5d8a45d7d513d40cde31a477e098d30d5e570",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/25722952246"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.3",
      "date": "2026-05-12T08:39:03.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "98805d95186e7c7b28129408fcff476b866ec83d",
      "fileid": "691b53b7ab87b278dc51107b99aa735323065e3c1389252b6231703e324636ab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/25722952246"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.3",
      "date": "2026-05-12T08:39:19.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "98805d95186e7c7b28129408fcff476b866ec83d",
      "fileid": "d34db8af193c5306802f22c0d0fa3f92f128a1ef71895f799c5eb62438063df0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/25722952246"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3",
      "date": "2026-05-22T10:38:22.000Z",
      "arch": "emscripten",
      "commit": "98805d95186e7c7b28129408fcff476b866ec83d",
      "fileid": "16f65d70e67c4960ea98509433fd9701faa44e1fc7dd71f7ebe365fd19001f0c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/25722952246"
    }
  ]
}