pkgVer <- function(pkg) {
    if (!exists("meta") || is.null(meta)) meta <- packageDescription(pkg)
    ver <- meta$Version
    paste0('R package version ', ver)
}

c(
    bibentry(bibtype="manual",
        title = "spatialDE: R wrapper for SpatialDE",
        author = personList(
            as.person("Davide Corso"),
            as.person("Milan Malfait"),
            as.person("Lambda Moses")
        ),
        year = format(Sys.Date(), "%Y"),
        url = "http://www.bioconductor.org/packages/spatialDE",
        note = pkgVer('spatialDE'),
        doi = '10.18129/B9.bioc.spatialDE'
    ),
    bibentry(bibtype="article",
        Title = "SpatialDE: identification of spatially variable genes",
        Author = personList(
            as.person("Valentine Svensson"),
            as.person("Sarah A. Teichmann"),
            as.person("Oliver Stegle")
        ),
        Copyright = "2018 Nature Publishing Group, a division of Macmillan Publishers Limited. All Rights Reserved.",
        Year = "2018",
        Journal = "Nature Methods",
        Volume = "15",
        Pages = "343--346",
        Number = "5",
        Doi = "10.1038/nmeth.4636",
        Issn = "1548-7105",
        Url = "https://www.nature.com/articles/nmeth.4636"
    )
)