Learn R Programming

pubmed.mineR (version 1.0.1)

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)

Arguments

genes
genes a character vector containing the gene/s.
abs
abs an S4 object of class Abstracts
filename
filename specifies the output file name.

Value

  • an output file containing the sentences for given gene.

Examples

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

Run the code above in your browser using DataLab