pkgVer <- function(pkg) {
    if (!exists("meta") || is.null(meta)) meta <- packageDescription(pkg)
    ver <- meta$Version
    paste0(
        'https://github.com/LieberInstitute/DeconvoBuddies/',
        pkg,
        ' - R package version ',
        ver
    )
}

c(
    bibentry(
        bibtype = "manual",
        title = "DeconvoBuddies: a R/Bioconductor package with deconvolution helper functions",
        author = personList(
            as.person("Louise A. Huuki-Myers"),
            as.person("Kristen R. Maynard"),
            as.person("Stephanie C. Hicks"),
            as.person("Peter Zandi"),
            as.person("Joel E. Kleinman"),
            as.person("Tom M. Hyde"),
            as.person("Fernando S. Goes"),
            as.person("Leonardo Collado-Torres")
        ),
        year = format(Sys.Date(), "%Y"),
        url = "http://www.bioconductor.org/packages/DeconvoBuddies",
        note = pkgVer('DeconvoBuddies'),
        doi = '10.18129/B9.bioc.DeconvoBuddies'
    ),
    bibentry(
        bibtype = "article",
        title = "Benchmark of cellular deconvolution methods using a multi-assay dataset from postmortem human prefrontal cortex",
        author = personList(
            as.person("Louise A. Huuki-Myers"),
            as.person("Kelsey D. Montgomery"),
            as.person("Sang Ho Kwon"),
            as.person("Sophia Cinquemani"),
            as.person("Nicholas J. Eagles"),
            as.person("Daianna Gonzalez-Padilla"),
            as.person("Sean K. Maden"),
            as.person("Joel E. Kleinman"),
            as.person("Thomas M. Hyde"),
            as.person("Stephanie C. Hicks"),
            as.person("Kristen R. Maynard"),
            as.person("Leonardo Collado-Torres")
        ),
        year = "2025",
        journal = "Genome Biol",
        doi = "10.1186/s13059-025-03552-3",
        url = "https://doi.org/10.1186/s13059-025-03552-3"
    )
)
