Loads a Salmon Data Package from disk. When canonical SDP CSV metadata files
are present, those are treated as the source of truth. If they are missing,
the function falls back to reconstructing metadata from datapackage.json
for backwards compatibility with older metasalmon outputs.
Usage
read_salmon_datapackage(path)
Arguments
- path
Character; path to directory containing Salmon Data Package files
Value
A list with components:
dataset: Dataset metadata tibble
tables: Table metadata tibble
dictionary: Dictionary tibble
codes: Codes tibble (if available)
resources: Named list of data tibbles
Examples
if (FALSE) { # \dontrun{
# Read a package
pkg <- read_salmon_datapackage("path/to/package")
pkg$resources$main_table
} # }