easyPubMed-package: Retrieve and Process Scientific Publication Records from...

easyPubMed-packageR Documentation

Retrieve and Process Scientific Publication Records from Pubmed

Description

Query NCBI Entrez and retrieve PubMed records in XML or TXT format. PubMed records can be downloaded and saved as XML or text files. Data integrity is enforced during data download, allowing to retrieve and save very large number of records effortlessly. PubMed records can be processed to extract publication- and author-specific information.

Details

This software is based on the information included in the Entrez Programming Utilities Help manual authored by Eric Sayers, PhD and available on the NCBI Bookshelf (NBK25500). This R library is NOT endorsed, supported, maintained NOR affiliated with NCBI.

Author(s)

Damiano Fantini damiano.fantini@gmail.com

References

See Also

Useful links:

Examples

## Example 01: retrieve data in XML format, extract info, show
# Note: a time limit can be set in order to kill the operation when/if 
# the NCBI/Entrez server becomes unresponsive.
setTimeLimit(elapsed = 4.9)
try({
  my_query_string <- 'Damiano Fantini[AU] AND "2018"[PDAT]'
  epm <- epm_query(my_query_string)
  epm <- epm_fetch(epm)
  epm <- epm_parse(epm, max_authors = 5, max_references = 10)
  processed_data <- get_epm_data(epm)
  utils::head(processed_data)
}, silent = TRUE)
setTimeLimit(elapsed = Inf)

## Not run: 
## Example 02: retrieve data in medline format
my_query_string <- 'Damiano Fantini[AU] AND "2018"[PDAT]'
epm <- epm_query(my_query_string)
epm <- epm_fetch(epm, format = 'medline')
medline_data <- get_epm_raw(epm)
first_record <- medline_data[[1]] 
cat(first_record, sep = '\n')


## Additional Examples: show easyPubMed Vignette
library(easyPubMed)
vignette("easyPubMed_demo")


## End(Not run)


dami82/easyPubMed documentation built on Jan. 4, 2024, 6:21 a.m.