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 = "derfinderHelper: derfinder helper package",
        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/derfinderHelper",
        note = pkgVer('derfinderHelper', '1.6.2')
    ),
    bibentry(bibtype="article",
        title = "Flexible expressed region analysis for RNA-seq with derfinder",
        author = personList(
            as.person("Leonardo Collado-Torres"),
            as.person("Abhinav Nellore"),
            as.person("Alyssa C. Frazee"),
            as.person("Christopher Wilks"),
            as.person("Michael I. Love"),
            as.person("Rafael A. Irizarry"),
            as.person("Jeffrey T. Leek"),
            as.person("Andrew E. Jaffe")
        ),
        year = 2016,
        journal = "bioRxiv",
        doi = "10.1101/015370",
        url = "http://biorxiv.org/content/early/2016/05/07/015370"
    )
)
