Learn R Programming

pubmed.mineR (version 1.0.21)

get_gene_sentences: To extract the sentences for genes from the corpus.

Description

get_gene_sentences is used to extract the exact sentence in which query gene is discussed.

Usage

get_gene_sentences(genes, abs, filename)

Value

an output file containing the sentences for given gene.

Arguments

genes

genes a character vector containing the gene symbols.

abs

abs an S4 object of class Abstracts

filename

filename specifies the output file name.

Author

S.Ramachandran

Examples

Run this code
if (FALSE) get_gene_sentences("RBP4", abstracts, "RBP4_sentence.txt")

Run the code above in your browser using DataLab