{
  "_id": "6a250be94b233be198387f42",
  "Package": "baldur",
  "Title": "Bayesian Hierarchical Modeling for Label-Free Proteomics",
  "Version": "0.0.4",
  "Authors@R": "person(\"Philip\", \"Berg\", , \"pberg@live.se\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-3772-6185\"))",
  "Description": "Statistical decision in proteomics data using a\nhierarchical Bayesian model. There are two regression models\nfor describing the mean-variance trend, a gamma regression or a\nlatent gamma mixture regression. The regression model is then\nused as an Empirical Bayes estimator for the prior on the\nvariance in a peptide. Further, it assumes that each\nmeasurement has an uncertainty (increased variance) associated\nwith it that is also inferred. Finally, it tries to estimate\nthe posterior distribution (by Hamiltonian Monte Carlo) for the\ndifferences in means for each peptide in the data. Once the\nposterior is inferred, it integrates the tails to estimate the\nprobability of error from which a statistical decision can be\nmade. See Berg and Popescu for details\n(<doi:10.1016/j.mcpro.2023.100658>).",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/PhilipBerg/baldur",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "Biarch": "true",
  "SystemRequirements": "GNU make",
  "VignetteBuilder": "knitr",
  "LazyData": "true",
  "RdMacros": "Rdpack",
  "BugReports": "https://github.com/PhilipBerg/baldur/issues",
  "Config/pak/sysreqs": "make libicu-dev",
  "Repository": "https://philipberg.r-universe.dev",
  "Date/Publication": "2025-11-08 21:54:56 UTC",
  "RemoteUrl": "https://github.com/philipberg/baldur",
  "RemoteRef": "HEAD",
  "RemoteSha": "d28dd18c755c98b825ccf4f510504c4a660037ba",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-06 10:12:32 UTC",
    "User": "root"
  },
  "Author": "Philip Berg [aut, cre] (ORCID: <https://orcid.org/0000-0002-3772-6185>)",
  "Maintainer": "Philip Berg <pberg@live.se>",
  "MD5sum": "f9ed28a1694f4b69959ad2c710ba33a6",
  "_user": "philipberg",
  "_type": "src",
  "_file": "baldur_0.0.4.tar.gz",
  "_fileid": "c5f7ebd1fd53b15f4afedd60db79d0ce9bb2023853043e272e6872724a80f0c5",
  "_filesize": 1753633,
  "_sha256": "c5f7ebd1fd53b15f4afedd60db79d0ce9bb2023853043e272e6872724a80f0c5",
  "_created": "2026-06-06T10:12:32.000Z",
  "_published": "2026-06-07T06:12:57.658Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79936135822,
      "time": 366,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7453579540"
    },
    {
      "job": 79936135864,
      "time": 391,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7453581851"
    },
    {
      "job": 79936135811,
      "time": 354,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7453578767"
    },
    {
      "job": 79936135900,
      "time": 371,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7453579695"
    },
    {
      "job": 79936135807,
      "time": 306,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7453571264"
    },
    {
      "job": 79936135903,
      "time": 482,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7453589720"
    },
    {
      "job": 79936135794,
      "time": 252,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7453566080"
    },
    {
      "job": 79936135762,
      "time": 538,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7453595080"
    },
    {
      "job": 79936135661,
      "time": 456,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7453542089"
    },
    {
      "job": 79936135667,
      "time": 149,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 79936135702,
      "time": 460,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7461339600"
    },
    {
      "job": 79936135848,
      "time": 410,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7453583820"
    },
    {
      "job": 79936135752,
      "time": 422,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7453584861"
    }
  ],
  "_buildurl": "https://github.com/r-universe/philipberg/actions/runs/27059423614",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/philipberg/baldur",
  "_commit": {
    "id": "d28dd18c755c98b825ccf4f510504c4a660037ba",
    "author": "PhilipBerg <pberg@live.se>",
    "committer": "PhilipBerg <pberg@live.se>",
    "message": "Fixed broken package links in docs\n",
    "time": 1762638896
  },
  "_maintainer": {
    "name": "Philip Berg",
    "email": "pberg@live.se",
    "login": "philipberg",
    "description": "",
    "uuid": 16356166,
    "orcid": "0000-0002-3772-6185"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.2.0",
      "role": "Depends"
    },
    {
      "package": "BH",
      "version": ">= 1.66.0",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.0",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "version": ">= 0.3.3.3.0",
      "role": "LinkingTo"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.0.1",
      "role": "LinkingTo"
    },
    {
      "package": "rstan",
      "version": ">= 2.26.0",
      "role": "LinkingTo"
    },
    {
      "package": "StanHeaders",
      "version": ">= 2.26.0",
      "role": "LinkingTo"
    },
    {
      "package": "dplyr",
      "version": ">= 1.0.9",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "version": ">= 2.0.3",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "version": ">= 0.3.4",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.0",
      "role": "Imports"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.0.1",
      "role": "Imports"
    },
    {
      "package": "rstan",
      "version": ">= 2.26.0",
      "role": "Imports"
    },
    {
      "package": "rstantools",
      "version": ">= 2.2.0",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "version": ">= 1.0.4",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "version": ">= 1.2.0",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 1.0.2",
      "role": "Imports"
    },
    {
      "package": "Rdpack",
      "version": ">= 2.4",
      "role": "Imports"
    },
    {
      "package": "multidplyr",
      "version": ">= 0.1.1",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.3.6",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "version": ">= 3.1.7",
      "role": "Imports"
    },
    {
      "package": "viridisLite",
      "version": ">= 0.4.1",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "philipberg",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-25",
      "n": 1
    },
    {
      "week": "2025-34",
      "n": 2
    },
    {
      "week": "2025-35",
      "n": 5
    },
    {
      "week": "2025-41",
      "n": 1
    },
    {
      "week": "2025-45",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.0.4",
      "date": "2025-08-25"
    }
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "philipberg",
      "count": 170,
      "uuid": 16356166
    },
    {
      "user": "andrjohns",
      "count": 1,
      "uuid": 27717896
    }
  ],
  "_userbio": {
    "uuid": 16356166,
    "type": "user",
    "name": "Philip Berg"
  },
  "_downloads": {
    "count": 213,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/baldur"
  },
  "_devurl": "https://github.com/philipberg/baldur",
  "_searchresults": 10,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/baldur.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/philipberg/baldur",
  "_realowner": "philipberg",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.1",
      "date": "2023-05-16"
    },
    {
      "version": "0.0.2",
      "date": "2023-09-02"
    },
    {
      "version": "0.0.3",
      "date": "2023-09-18"
    },
    {
      "version": "0.0.4",
      "date": "2025-11-09"
    }
  ],
  "_exports": [
    "%>%",
    "calculate_mean_sd_trends",
    "empirical_bayes",
    "estimate_beta",
    "estimate_gamma_hyperparameters",
    "estimate_uncertainty",
    "fit_gamma_regression",
    "fit_lgmr",
    "infer_data_and_decision_model",
    "lgmr_model",
    "plot_gamma",
    "plot_gamma_regression",
    "plot_lgmr_regression",
    "plot_regression_field",
    "plot_sa",
    "plot_volcano",
    "psrn",
    "weakly_informative"
  ],
  "_datasets": [
    {
      "name": "ups",
      "title": "Spiked-in data set of peptides",
      "object": "ups",
      "class": [
        "spec_tbl_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "identifier",
        "fmol25_1",
        "fmol25_2",
        "fmol25_3",
        "fmol25_4",
        "fmol50_1",
        "fmol50_2",
        "fmol50_3",
        "fmol50_4",
        "fmol100_1",
        "fmol100_2",
        "fmol100_3",
        "fmol100_4"
      ],
      "rows": 10599,
      "table": true,
      "tojson": true
    },
    {
      "name": "yeast",
      "title": "Spiked-in data set of reversibly oxidized cysteines",
      "object": "yeast",
      "class": [
        "spec_tbl_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "identifier",
        "ng50_1",
        "ng50_2",
        "ng50_3",
        "ng100_1",
        "ng100_2",
        "ng100_3"
      ],
      "rows": 2235,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "baldur-package",
      "title": "The 'baldur' package.",
      "topics": [
        "baldur-package",
        "baldur"
      ]
    },
    {
      "page": "calculate_mean_sd_trends",
      "title": "Calculate the Mean-Variance trend",
      "topics": [
        "calculate_mean_sd_trends"
      ]
    },
    {
      "page": "empirical_bayes",
      "title": "Baldur's empirical Bayes Prior For The Mean In Conditions",
      "topics": [
        "empirical_bayes"
      ]
    },
    {
      "page": "estimate_gamma_hyperparameters",
      "title": "Estimate Gamma hyperparameters for sigma",
      "topics": [
        "estimate_beta",
        "estimate_beta.glm",
        "estimate_beta.lgmr",
        "estimate_gamma_hyperparameters",
        "estimate_gamma_hyperparameters.glm",
        "estimate_gamma_hyperparameters.lgmr"
      ]
    },
    {
      "page": "estimate_uncertainty",
      "title": "Estimate measurement uncertainty",
      "topics": [
        "estimate_uncertainty",
        "estimate_uncertainty.glm",
        "estimate_uncertainty.lgmr"
      ]
    },
    {
      "page": "fit_gamma_regression",
      "title": "Function for Fitting the Mean-Variance Gamma Regression Models",
      "topics": [
        "fit_gamma_regression"
      ]
    },
    {
      "page": "fit_lgmr",
      "title": "Fit Latent Gamma Mixture Regression",
      "topics": [
        "coef.lgmr",
        "fit_lgmr",
        "print.lgmr"
      ]
    },
    {
      "page": "infer_data_and_decision_model",
      "title": "Sample the Posterior of the data and decision model and generate point estimates",
      "topics": [
        "infer_data_and_decision_model"
      ]
    },
    {
      "page": "lgmr_model",
      "title": "Latent Gamma Regression Model",
      "topics": [
        "lgmr_model"
      ]
    },
    {
      "page": "lgmr_plotting",
      "title": "Visualization of LGMR models",
      "topics": [
        "lgmr_plotting",
        "plot_lgmr_regression",
        "plot_regression_field"
      ]
    },
    {
      "page": "plot_gamma",
      "title": "Function for plotting the gamma regression for the mean-variance trend",
      "topics": [
        "plot_gamma"
      ]
    },
    {
      "page": "plot_gamma_regression",
      "title": "Function for plotting the mean-variance gamma regressions",
      "topics": [
        "plot_gamma_regression"
      ]
    },
    {
      "page": "plot_sa",
      "title": "Plot the trend between the log fold-change and sigma, coloring significant hits",
      "topics": [
        "plot_sa"
      ]
    },
    {
      "page": "plot_volcano",
      "title": "Plot the -log10(err) against the log fold-change",
      "topics": [
        "plot_volcano"
      ]
    },
    {
      "page": "psrn",
      "title": "Normalize data to a pseudo-reference",
      "topics": [
        "psrn"
      ]
    },
    {
      "page": "ups",
      "title": "Spiked-in data set of peptides",
      "topics": [
        "ups"
      ]
    },
    {
      "page": "weakly_informative",
      "title": "Baldur's weakly informative prior for the mean in conditions",
      "topics": [
        "weakly_informative"
      ]
    },
    {
      "page": "yeast",
      "title": "Spiked-in data set of reversibly oxidized cysteines",
      "topics": [
        "yeast"
      ]
    }
  ],
  "_readme": "https://github.com/philipberg/baldur/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "BH",
    "callr",
    "checkmate",
    "cli",
    "cpp11",
    "crayon",
    "desc",
    "distributional",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "inline",
    "isoband",
    "labeling",
    "lifecycle",
    "loo",
    "magrittr",
    "matrixStats",
    "multidplyr",
    "numDeriv",
    "otel",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "posterior",
    "processx",
    "ps",
    "purrr",
    "qs2",
    "QuickJSR",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "RcppParallel",
    "Rdpack",
    "rlang",
    "rstan",
    "rstantools",
    "S7",
    "scales",
    "StanHeaders",
    "stringfish",
    "stringi",
    "stringr",
    "tensorA",
    "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"
    }
  ],
  "_vignettes": [
    {
      "source": "baldur_ups_tutorial.Rmd",
      "filename": "baldur_ups_tutorial.html",
      "title": "Baldur UPS Tutorial",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Setup",
        "2. Mean-Variance trends and Gamma Regression fitting",
        "3. Sampling from the Data and Decision model",
        "4. Inference with Latent Gamma Mixuter Regression",
        "5. Visualization of the results"
      ],
      "created": "2022-09-28 09:44:20",
      "modified": "2024-02-21 04:22:23",
      "commits": 13
    },
    {
      "source": "Baldur_Yeast_Tutorial.Rmd",
      "filename": "Baldur_Yeast_Tutorial.html",
      "title": "Baldur Yeast Tutorial",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Setup",
        "2. Mean-Variance trends and Gamma Regression fitting",
        "3. Run the sampling procedure",
        "4. Running Baldur with Latent Gamma Mixture Regression estimation",
        "5. Visualization of the results"
      ],
      "created": "2022-09-27 17:26:32",
      "modified": "2024-02-21 04:22:23",
      "commits": 16
    }
  ],
  "_score": 4.698970004336019,
  "_indexed": true,
  "_nocasepkg": "baldur",
  "_universes": [
    "philipberg"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.4",
      "date": "2026-06-06T10:17:56.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "d28dd18c755c98b825ccf4f510504c4a660037ba",
      "fileid": "1cb5fe9f5093dddbb91468ee98df790993898422a2a63abd918398935e7b163c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/philipberg/actions/runs/27059423614"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.4",
      "date": "2026-06-06T10:17:49.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "d28dd18c755c98b825ccf4f510504c4a660037ba",
      "fileid": "7b8602e607d6d6be8a453f0377a39d3a9cfcdc80634e6eabbf5d987542329f87",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/philipberg/actions/runs/27059423614"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.0.4",
      "date": "2026-06-06T10:17:33.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "d28dd18c755c98b825ccf4f510504c4a660037ba",
      "fileid": "d39342cbc98be20fa6851e38f6c4fc69a9247dc142d63de3bdc21a860f999836",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/philipberg/actions/runs/27059423614"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.0.4",
      "date": "2026-06-06T10:17:35.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "d28dd18c755c98b825ccf4f510504c4a660037ba",
      "fileid": "c0b1cd6a092a2c47ed3ab4f07074a2332243325f80452192d4a417d0d21fa099",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/philipberg/actions/runs/27059423614"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.4",
      "date": "2026-06-06T10:17:11.000Z",
      "arch": "aarch64",
      "commit": "d28dd18c755c98b825ccf4f510504c4a660037ba",
      "fileid": "1dd39a0b6b346a50c7be8fc62290839248143fde47a346fed4b9f171951cb3fc",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/philipberg/actions/runs/27059423614"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.4",
      "date": "2026-06-06T10:18:08.000Z",
      "arch": "x86_64",
      "commit": "d28dd18c755c98b825ccf4f510504c4a660037ba",
      "fileid": "874cf93d8a81c2bd416fc09e7ac2ec06e62b58ac10930c18cf54633a8fce55c8",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/philipberg/actions/runs/27059423614"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.0.4",
      "date": "2026-06-06T10:16:57.000Z",
      "arch": "aarch64",
      "commit": "d28dd18c755c98b825ccf4f510504c4a660037ba",
      "fileid": "ccbc9684d7fdd4c41ba531516bb931bc293955ad6e4dcd31b1a33ce225e90f5e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/philipberg/actions/runs/27059423614"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.0.4",
      "date": "2026-06-06T10:18:38.000Z",
      "arch": "x86_64",
      "commit": "d28dd18c755c98b825ccf4f510504c4a660037ba",
      "fileid": "88c9e2e14fbd7675682b4c3feacad5faae2ccca0e518f6d025f352fafbc3eb19",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/philipberg/actions/runs/27059423614"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.4",
      "date": "2026-06-07T06:06:30.000Z",
      "arch": "x86_64",
      "commit": "d28dd18c755c98b825ccf4f510504c4a660037ba",
      "fileid": "330f2e217f66d7570f11e2e7e60851c0cd43825163859500c2ed790ba70eac1b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/philipberg/actions/runs/27059423614"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.4",
      "date": "2026-06-06T10:16:25.000Z",
      "arch": "x86_64",
      "commit": "d28dd18c755c98b825ccf4f510504c4a660037ba",
      "fileid": "359ea939b046a3fa7d9f3341743003b3705c61b68cb68967c38c3d0bbad45530",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/philipberg/actions/runs/27059423614"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.0.4",
      "date": "2026-06-06T10:16:24.000Z",
      "arch": "x86_64",
      "commit": "d28dd18c755c98b825ccf4f510504c4a660037ba",
      "fileid": "f1e4393ef82b49d449667ba934d909c1e28c77d612c4801e1d1d6b7bb570aed6",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/philipberg/actions/runs/27059423614"
    }
  ]
}