pkgVer <- function(pkg, default) { 
    x <- packageDescription(pkg, fields = 'Version')
    ver <- ifelse(is.na(x), default, x)
    paste0('https://github.com/leekgroup/', 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.2.1')
    ),
    bibentry(bibtype="article",
            title = "derfinder: Software for annotation-agnostic RNA-seq differential expression analysis",
            author = personList(
                as.person("Leonardo Collado-Torres"),
                as.person("Alyssa C. Frazee"),
                as.person("Michael I. Love"),
                as.person("Rafael A. Irizarry"),
                as.person("Andrew E. Jaffe"),
                as.person("Jeffrey T. Leek")
            ),
            year = 2015,
            journal = "bioRxiv",
            doi = "10.1101/015370",
            url = "http://www.biorxiv.org/content/early/2015/02/19/015370.abstract"
        )
)
