extractSentences {psygenet2r} | R Documentation

## Method to obtain the sentences that support a gene-disease association from a `DataGeNET.Psy` object.

### Description

PsyGeNET contains a list of sentences that support a gene-disease association from public literature. The internal table of a `DataGeNET.Psy` object contains this information. The method `extractSentences` allows to extract those sentences that support a gene-disease association given a `DataGeNET.Psy` object and a disorder of interest.

### Usage

    extractSentences(object, disorder, verbose)

    ## S4 method for signature 'DataGeNET.Psy'
    extractSentences(object, disorder, verbose = FALSE)

### Arguments

`object` | Object of class `DataGeNET.Psy`.
`disorder` | The disorder of interest. Only those sentences supporting a gene-disease association with this specific disorder will be extracted. Disorder must be provided by using "Disease Id" or "Disease Name". The "Disease Id" can be provided with or without the "uml" tag. Example of a "Disease Name": "schizophrenia"; Example of a "Disease Id": "umls:C0036341", that is equivalent of using "C0036341".
`verbose` | If set to `TRUE` informative messages are show.

### Value

A data frame showing the sentences.

### Methods (by class)

- `DataGeNET.Psy`: Get sentences or evidences

### Examples

    data(qr)
    extractSentences(qr, "Depression")

[Package psygenet2r version 1.24.0 Index]