{
  "_id": "6ae44d8e3d0f299392dd2328",
  "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",
  "RoxygenNote": "7.3.2",
  "Biarch": "true",
  "SystemRequirements": "GNU make",
  "VignetteBuilder": "knitr",
  "LazyData": "true",
  "RdMacros": "Rdpack",
  "BugReports": "https://github.com/PhilipBerg/baldur/issues",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-30 07:45:29 UTC",
    "User": "root"
  },
  "Author": "Philip Berg [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-3772-6185>)",
  "Maintainer": "Philip Berg <pberg@live.se>",
  "Config/pak/sysreqs": "make",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2025-11-09 10:34:38 UTC",
  "RemoteUrl": "https://github.com/cran/baldur",
  "RemoteRef": "HEAD",
  "RemoteSha": "5ed4970ca839ed4671c3f1ef551450685f6813f1",
  "_user": "cran",
  "_type": "src",
  "_file": "baldur_0.0.4.tar.gz",
  "_fileid": "https://r2.ropensci.org/93b76e6ddc731092fdde3ebc1e02d88a76c91702626f2b8d843f0677dbf60433",
  "_filesize": 1756006,
  "_sha256": "93b76e6ddc731092fdde3ebc1e02d88a76c91702626f2b8d843f0677dbf60433",
  "_expires": "2027-02-07T07:55:56.000Z",
  "_created": "2026-10-30T07:45:29.000Z",
  "_published": "2026-10-30T07:55:58.454Z",
  "_upstream": "https://github.com/cran/baldur",
  "_status": "success",
  "_maintainer": {
    "name": "Philip Berg",
    "email": "pberg@live.se",
    "login": "philipberg",
    "description": "",
    "uuid": 16356166,
    "orcid": "0000-0002-3772-6185"
  },
  "_jobs": [
    {
      "job": 123952371100,
      "time": 300,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12962631519"
    },
    {
      "job": 123952371065,
      "time": 351,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12961947636"
    },
    {
      "job": 123952371072,
      "time": 307,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12961953659"
    },
    {
      "job": 123952371113,
      "time": 355,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12961973632"
    },
    {
      "job": 123949429577,
      "time": 535,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12962475406"
    },
    {
      "job": 123952371032,
      "time": 249,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12962117007"
    },
    {
      "job": 123952371081,
      "time": 380,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12961879438"
    },
    {
      "job": 123952371104,
      "time": 423,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12962840594"
    },
    {
      "job": 123952371138,
      "time": 408,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12962636036"
    },
    {
      "job": 123952371116,
      "time": 401,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12962153464"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/41021400029",
  "_commit": {
    "id": "5ed4970ca839ed4671c3f1ef551450685f6813f1",
    "author": "Philip Berg <pberg@live.se>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.0.4\n",
    "time": 1762684478
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-45",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.0.4",
      "date": "2025-11-09"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "philipberg",
      "count": 1,
      "uuid": 16356166
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 634,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 319,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/baldur"
  },
  "_devurl": "https://github.com/philipberg/baldur",
  "_searchresults": 10,
  "_topics": [
    "onetbb",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/baldur.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/philipberg/baldur",
  "_realowner": "philipberg",
  "_cranurl": false,
  "_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/cran/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": "libtbb",
      "package": "libtbb12",
      "headers": "libtbb-dev",
      "source": "onetbb",
      "version": "2022.3.0-2",
      "name": "onetbb",
      "homepage": "https://uxlfoundation.github.io/oneTBB/",
      "description": "parallelism library for C++ - runtime files"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "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": "2023-05-16 07:40:07",
      "modified": "2025-11-09 10:34:38",
      "commits": 3
    },
    {
      "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": "2025-11-09 10:34:38",
      "modified": "2025-11-09 10:34:38",
      "commits": 1
    }
  ],
  "_score": 3,
  "_indexed": false,
  "_nocasepkg": "baldur",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://philipberg.r-universe.dev/baldur",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.4",
      "date": "2026-10-30T07:50:29.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "5ed4970ca839ed4671c3f1ef551450685f6813f1",
      "fileid": "https://r2.ropensci.org/2b8a3787ce3b402ca3eb574be0f3acc224b9d9ac231cdfb40e576ad888c2a89b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/41021400029"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.4",
      "date": "2026-10-30T07:51:16.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "5ed4970ca839ed4671c3f1ef551450685f6813f1",
      "fileid": "https://r2.ropensci.org/f84b22e2c59814be55ddda8d12b6389ace6bd9ce99bbb520f5bf77e7286d9c8e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/41021400029"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.4",
      "date": "2026-10-30T07:50:31.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "5ed4970ca839ed4671c3f1ef551450685f6813f1",
      "fileid": "https://r2.ropensci.org/89f59e394a76d7623cd5b869a6a0c407c0bccdf8a91e736207340ea4a9b59baa",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/41021400029"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.4",
      "date": "2026-10-30T07:50:37.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "5ed4970ca839ed4671c3f1ef551450685f6813f1",
      "fileid": "https://r2.ropensci.org/8b9f82ac047d9d6bd99a1b923e5c9a2b9b07e8dca945173818c5c3948abb9c58",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/41021400029"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.4",
      "date": "2026-10-30T07:50:45.000Z",
      "arch": "emscripten",
      "commit": "5ed4970ca839ed4671c3f1ef551450685f6813f1",
      "fileid": "https://r2.ropensci.org/db80f319ad5019558521914044f687a807546d6c19645ac72bbd2b728cc80c7f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/41021400029"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.4",
      "date": "2026-10-30T07:51:40.000Z",
      "arch": "aarch64",
      "commit": "5ed4970ca839ed4671c3f1ef551450685f6813f1",
      "fileid": "https://r2.ropensci.org/c87d594bc39d889d9ede0dd9810c71fa6d24bb39fd85de419e0cae762f9882c8",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/41021400029"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.4",
      "date": "2026-10-30T07:50:15.000Z",
      "arch": "x86_64",
      "commit": "5ed4970ca839ed4671c3f1ef551450685f6813f1",
      "fileid": "https://r2.ropensci.org/5310d25042490e762920454bf183938a40029b955caeca9022fb97c84d73bb66",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/41021400029"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.4",
      "date": "2026-10-30T07:52:11.000Z",
      "arch": "aarch64",
      "commit": "5ed4970ca839ed4671c3f1ef551450685f6813f1",
      "fileid": "https://r2.ropensci.org/0445d907125b0a4d84ed95b9a7a058097a906e6e30af73ec09c464deddd73d37",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/41021400029"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.4",
      "date": "2026-10-30T07:50:28.000Z",
      "arch": "x86_64",
      "commit": "5ed4970ca839ed4671c3f1ef551450685f6813f1",
      "fileid": "https://r2.ropensci.org/f11b69edd4226ce99d677179f8cadc97d1cf7ac6f59e9ca3d01bd86225e87400",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/41021400029"
    }
  ]
}