pkgVer <- function(pkg, default) { 
    x <- packageDescription(pkg, fields = 'Version')
    ver <- ifelse(is.na(x), default, x)
    paste0('https://github.com/lcolladotor/', pkg, ' - R package version ', ver)
}
c(
    bibentry(bibtype="manual",
        title = "regionReport: Generate HTML reports for exploring a set of regions",
        author = personList(
            as.person("Leonardo Collado-Torres"),
            as.person("Andrew E. Jaffe"),
            as.person("Jeffrey T. Leek")
        ),
        year = 2015,
        url = "http://www.bioconductor.org/packages/release/bioc/html/regionReport.html",
        note = pkgVer('regionReport', '1.0.5')
    ),
    bibentry(bibtype="manual",
        title = "derfinder: Annotation-agnostic differential expression analysis of RNA-seq data at base-pair resolution",
        author = personList(
            as.person("Leonardo Collado-Torres"),
            as.person("Alyssa C. Frazee"),
            as.person("Andrew E. Jaffe"),
            as.person("Jeffrey T. Leek")
        ),
        year = 2014,
        url = "http://www.bioconductor.org/packages/release/bioc/html/derfinder.html",
        note = pkgVer('derfinder', '1.0.6')
    )
)
