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

c(

    bibentry(bibtype="manual",
        title = "regutools: an R package for data extraction from RegulonDB",
        author = personList(
            as.person("Joselyn Chávez"),
            as.person("Carmina Barberena-Jonas"),
            as.person("Jesus Emiliano Sotelo-Fonseca"),
            as.person("Jose Alquicira-Hernandez"),
            as.person("Heladia Salgado"),
            as.person("Leonardo Collado-Torres"),
            as.person("Alejandro Reyes")
        ),
        year = format(Sys.Date(), "%Y"),
        url = "http://www.bioconductor.org/packages/regutools",
        note = pkgVer('regutools'),
        doi = '10.18129/B9.bioc.regutools'
    ),
    bibentry(bibtype="article",
        title = "Programmatic access to bacterial regulatory networks with regutools",
        author = personList(
            as.person("Joselyn Chávez"),
            as.person("Carmina Barberena-Jonas"),
            as.person("Jesus Emiliano Sotelo-Fonseca"),
            as.person("Jose Alquicira-Hernandez"),
            as.person("Heladia Salgado"),
            as.person("Leonardo Collado-Torres"),
            as.person("Alejandro Reyes")
        ),
        year = 2020,
        journal = "Bioinformatics",
        doi = "10.1093/bioinformatics/btaa575",
        url = "https://academic.oup.com/bioinformatics/advance-article-abstract/doi/10.1093/bioinformatics/btaa575/5861528"
    )
)
