Open arvi1000 opened 5 months ago
Hi @arvi1000,
You're right, the default method only returns a subset of Europe PMC data. To access all data, use the raw
option. Here's an example parser for your query:
library(europepmc)
library(tidyverse)
my_epmc_data <- epmc_search("PMC10669250", output = "raw")
#> 1 records found, returning 1
tibble::tibble(
id = map_chr(my_epmc_data, "id"),
tm_accession_type = map(my_epmc_data, "tmAccessionTypeList") |>
map_chr("accessionType")
)
#> # A tibble: 1 × 2
#> id tm_accession_type
#> <chr> <chr>
#> 1 PMC10669250 chebi
Created on 2024-06-12 with reprex v2.1.0
Thank you for this package, maintainers!
I notice that
epmc_search
doesn't return some of the useful fields that are available in the API. I think it would would be valuable to return all fields. For example, the API returns both the booleanhasTMAaccessionNumbers
but also theaccessionType
, while the package returns only the former.Example of different fields returned:
from the package:
from the API: