Pure.
Value
A one-row tibble of symbol, ensembl, uniprot, protein_class,
disease_involvement, and source_url. NULL when the record is empty.
Details
protein_class and disease_involvement are list columns, because a gene
carries any number of tags and flattening them to one string would make them
unusable without re-splitting.
Examples
body <- list(
Gene = "TP53",
Ensembl = "ENSG00000141510",
Uniprot = list("P04637"),
`Protein class` = list("Cancer-related genes", "Transcription factors"),
`Disease involvement` = list("Tumor suppressor")
)
hpa_parse_gene(body, "ENSG00000141510")
#> # A tibble: 1 × 6
#> symbol ensembl uniprot protein_class disease_involvement source_url
#> <chr> <chr> <list> <list> <list> <chr>
#> 1 TP53 ENSG00000141510 <chr [1]> <chr [2]> <chr [1]> https://ww…