getTemplates {InterMineR} | R Documentation

## Get the information (name and title) of the templates pre-defined in InterMine

### Description

Get the information (name and title) of the templates pre-defined in InterMine. A template contain a query with fixed set of output columns, and at least one editable constraint, and possibly more.

### Usage

    getTemplates(im, format = "data.frame", timeout = 3)

### Arguments

`im` | a list, containing the base URL and API token.
`format` | a string with values being either "data.frame" or "list", representing the output format of the template information.
`timeout` | an integer, representing the number of seconds to wait for the webservice to respond.

### Value

a data.frame or list object, representing the information (name and title) for the pre-define templates in the mine.

### Author(s)

InterMine Team

### Examples

    # Get HumanMine template queries
    im <- initInterMine(listMines()["HumanMine"])

    templates <- getTemplates(im)

[Package InterMineR version 1.4.1 Index]