get_source_metadata: Get the source metadata of a dvobject

View source: R/source_metadata.R

get_source_metadataR Documentation

Get the source metadata of a dvobject

Description

Returns where each source in a dvobject came from: release, dates, URLs, licence, attribution, the parsed files with their SHA-256 hashes, and the dbparser version that parsed them. A merged dvobject has one row per source. Unknown values are NA.

Usage

get_source_metadata(dvobject)

Arguments

dvobject

a dvobject returned by a parser or a merge function

Value

a tibble with one row per source and columns metadata_version, source, source_name, release, release_date, retrieved_at, source_url, licence, licence_url, attribution, files (a list column of data.frames with name and sha256) and parser. It has no rows when the dvobject carries no source metadata (e.g. one saved by an older dbparser version).

See Also

Other utility: add_database_info(), get_genes_for_phenotype(), search_phenotypes(), show_dvobject_metadata(), subset_drugbank_dvobject(), subset_onsides_dvobject()

Examples

drugbank <- parseDrugBank(
  system.file("extdata", "drugbank_record_biotech.xml",
              package = "dbparser"))
get_source_metadata(drugbank)


dbparser documentation built on Nov. 9, 2026, 1:10 a.m.