getQueryCounts: Return query counts for batch PubMed queries

Description Usage Arguments Value Author(s) References See Also Examples

Description

Trying to discover the biological meaning of a set of genes can be challenging. This function simply does batch PubMed queries and returns a matrix of record counts in matrix form with genes as rows and terms as columns.

Usage

1
getQueryCounts(genes, terms, baseline=NULL)

Arguments

genes

A character vector of gene names (or miRNAs, etc.). These will become the rows of the query count matrix returned.

terms

A character vector of terms to pair with each gene. These will become the columns of the query count matrix returned.

baseline

A string to include with ALL queries.

Value

A list with three items:

A vector of the number of of pubmed results for each gene, including the baseline terms if specified

A vector of the number of of pubmed results for each term, including the baseline terms if specified

A numeric matrix with column names taken from "terms" and row names taken from "genes". Each entry in the matrix is the count of records in PubMed for that pair of gene/term.

Author(s)

Sean Davis <sdavis2@mail.nih.gov>

References

http://www.ncbi.nlm.nih.gov/pubmed/

See Also

pubmedQuery

Examples

1
2
3
4
genes = c('BRCA1','AKT','PIK3CA','CDKN2A')
terms = c('cancer','cell cycle','tumor suppressor','oncogene')
qcounts = getQueryCounts(genes,terms)
qcounts

seandavi/Rpressa documentation built on May 29, 2019, 4:33 p.m.