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 = "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/release/bioc/html/derfinderHelper.html",
        note = pkgVer('derfinderHelper', '1.1.6')
    ),
    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"
    )
)
