View source: R/pubmed_functions.R
search_pubmed | R Documentation |
Perform a PubMed search for multiple genes and terms.
search_pubmed(genes_list, terms_list, rank_method = "weighted", verbose = TRUE)
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. |
A data frame with search results, including genes, terms, and their corresponding publication counts and ranks.
genes <- c("TP53", "BRCA1")
terms <- c("cancer", "tumor")
search_results <- search_pubmed(genes, terms, rank_method = "weighted", verbose = FALSE)
print(search_results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.