extract {psygenet2r} | R Documentation

## Raw data from `DataGeNET.Psy` and `JaccardIndexPsy`.

### Description

Obtain the raw data from a PsyGeNET's query stored in a `DataGeNET.Psy` object or the raw data with all the Jaccard Index for the disease of interest of an `JaccardIndexPsy` object.

### Usage

    extract(object, ...)

    ## S4 method for signature 'DataGeNET.Psy'
    extract(object)

    ## S4 method for signature 'JaccardIndexPsy'
    extract(object, order.cl = "pval", ...)

### Arguments

`object` | Object of class `DataGeNET.Psy` or `JaccardIndexPsy`
`...` | NO USED
`order.cl` | Order resulting `data.frame` by the name of this column.

### Value

A `data.frame` containing the raw result from PsyGeNET or a `data.frame` with the result Jaccard Index for each disease.

A `data.frame` containing the raw result from PsyGeNET

A `data.frame` with the result Jaccard Index for each disease.

### Methods (by class)

- `DataGeNET.Psy`: Extract function for DataGeNET.Psy

- `JaccardIndexPsy`: Extract function for JacardIndexPsy

### Examples

    data(qr)
    extract(qr)[1:2, ] # get internat data.frame
    ## Not run:
    #Being x an JaccardIndexPsy
    extract(x)

    ## End(Not run)

[Package psygenet2r version 1.12.0 Index]