Skip to content

[Feature request] Add metadata from Bioconductor packages #99

@averissimo

Description

@averissimo

The pkgcache::meta_cache_list("SummarizedExperiment")$published currently returns a NULL date for Bioc packages

The date information is available under https://bioconductor.org/packages/3.17/bioc/VIEWS and can be parsed on the Date/Publication field. bioc::BiocPkgTools package may also be able to access the information

Considerations:

There could be an issue about which version from Bioconductor to use for the date. Possible workarounds can be implemented by defaulting to pkgcache::bioc_version() or as a parameter for meta_cache_list function

Simple sample code that retrieves publication date (without any caching)

sample_bioc_date <- \(package) {
  uri <- url(glue::glue("https://bioconductor.org/packages/{pkgcache::bioc_version()}/bioc/VIEWS"))
  data_raw <- data.frame(read.dcf(uri))
  data_raw[data_raw$Package == package, "Date.Publication"]
}

sample_bioc_date("SummarizedExperiment")

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions