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

c(

    bibentry(bibtype="manual",
        title = "megadepth: BigWig and BAM related utilities",
        author = personList(
            as.person("David Zhang"),
            as.person("Leonardo Collado-Torres")
        ),
        year = format(Sys.Date(), "%Y"),
        url = "http://www.bioconductor.org/packages/megadepth",
        note = pkgVer('megadepth'),
        doi = '10.18129/B9.bioc.megadepth'
    ),
    bibentry(bibtype="article",
        title = "Megadepth: efficient coverage quantification for BigWigs and BAMs",
        author = personList(
            as.person("Christopher Wilks"),
            as.person("Omar Ahmed"), 
            as.person("Daniel N. Baker"), 
            as.person("David Zhang"),
            as.person("Leonardo Collado-Torres"),
            as.person("Ben Langmead")
        ),
        year = 2020,
        journal = "bioRxiv",
        doi = "https://doi.org/10.1101/2020.12.17.423317",
        url = "https://www.biorxiv.org/content/10.1101/2020.12.17.423317v1"
    )
)
