pkgVer <- function(pkg) {
    if (!exists("meta") || is.null(meta)) meta <- packageDescription(pkg)
    ver <- meta$Version
    paste0('https://github.com/lcolladotor/', pkg, ' - R package version ', ver)
}
c(
    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("Ben Langmead"),
            as.person("Rafael A. Irizarry"),
            as.person("Jeffrey T. Leek"),
            as.person("Andrew E. Jaffe")
        ),
        year = 2017,
        journal = "Nucl. Acids Res.",
        doi = "10.1093/nar/gkw852",
        url = "http://nar.oxfordjournals.org/content/early/2016/09/29/nar.gkw852"
    ),
    bibentry(bibtype="article",
        title = "Differential expression analysis of RNA-seq data at single-base resolution",
        author = personList(
            as.person("Alyssa C. Frazee"), 
            as.person("Sarven Sabunciyan"),
            as.person("Kasper D. Hansen"),
            as.person("Rafael A. Irizarry"),
            as.person("Jeffrey T. Leek")
        ),
        year = 2014,
        journal = "Biostatistics",
        volume = "15 (3)",
        pages = "413-426",
        doi = "10.1093/biostatistics/kxt053",
        url = "http://biostatistics.oxfordjournals.org/content/15/3/413.long"
    ),
    bibentry(bibtype="manual",
        title = "derfinder: Annotation-agnostic differential expression analysis of RNA-seq data at base-pair resolution via the DER Finder approach",
        author = personList(
            as.person("Leonardo Collado-Torres"),
            as.person("Andrew E. Jaffe"),
            as.person("Jeffrey T. Leek")
        ),
        year = 2017,
        url = "http://www.bioconductor.org/packages/derfinder",
        note = pkgVer('derfinder'),
        doi = '10.18129/B9.bioc.derfinder'
    )
)
