get_table {CTDquerier} | R Documentation

## Method to obtain a specific inner table from a `CTDdata` object.

### Description

Obtain the raw data from a `CTDdata` object, result from a query to CTDbase.

### Usage

    get_table(object, index_name, ...)

### Arguments

`object` | Object of class `CTDdata`.
`index_name` | String indicating the type of data to obtain.
`...` | NOT USED

### Details

Available tables are (`index_name`):

1. `"gene interactions"`: (Only for chemicals) Table with a relation of the genes interacting with the given chemicals.

2. `"chemical interactions"`: (Only for genes) Table with a relation of the chemicals interacting with the given genes.

3. `"diseases"`: Table with a relation of the diseases associated with given genes or chemicals.

4. `"gene-gene interactions"`: (Only for genes) Table with a relation of the genes interacting with the given genes.

5. `"kegg pathways"`: Table with a relation of the KEGG pathways affected by the given chemicals or where the given genes play a role.

6. `"go terms"`: Table with a relatio of the GO terms afected by the given chemicals or where the given genes play a role.

### Value

A `DataFrame` containing the raw result from CTDdata.

### Examples

    data("gala")
    get_table(gala, "diseases")[1:3, ]

[Package CTDquerier version 1.5.0 Index]