search_pubmed: Search PubMed with Multiple Genes and Terms

View source: R/pubmed_functions.R

search_pubmedR Documentation

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)

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.

Value

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

Examples

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

DeSciDe documentation built on Sept. 1, 2025, 1:08 a.m.