Learn R Programming

DeSciDe (version 1.0.2)

search_pubmed: Search PubMed with Multiple Genes and Terms

Description

Perform a PubMed search for multiple genes and terms.

Usage

search_pubmed(genes_list, terms_list, rank_method = "weighted", verbose = TRUE)

Value

A data frame with search results, including genes, terms, and their corresponding publication counts and ranks.

Arguments

genes_list

A list of gene IDs.

terms_list

A list of search terms.

rank_method

The method to rank results, either "weighted" or "total". Defaults to "weighted".

verbose

Logical flag indicating whether to display messages. Default is TRUE.

Examples

Run this code
genes <- c("TP53", "BRCA1")
terms <- c("cancer", "tumor")
search_results <- search_pubmed(genes, terms, rank_method = "weighted", verbose = FALSE)
print(search_results)

Run the code above in your browser using DataLab