Description Usage Arguments Value Author(s) Examples
Get a template query for a mine. A template contain a saved query with a view and constraint. The user can modify this query to obtain the desired result. The view is a vector containing the output columns of the query. The constraint is a matrix containing the following columns: path (the path of the constraint), op (the constraint operator, one of '=', '!=', 'LOOKUP', 'ONE OF', 'NONE OF', '>', '<', '>=', '<=', 'LIKE'), value (the constraint value), code (the name of the constraint), extraValue (optional, required for LOOKUP constraints).
1  | getTemplateQuery(im, name, timeout=3)
 | 
im | 
 a Service object containing the base URL and API token, created by   | 
name | 
 a string, representing the name of the pre-defined template.  | 
timeout | 
 an integer, representing the number of seconds to wait for the webservice to respond.  | 
a list, reprenting the query contained in the pre-defined template. The list should contain at least two elements, view and constrain.
InterMine Team
1 2 3 4  | # Get template queries from HumanMine
im <- initInterMine(listMines()["HumanMine"])
queryGeneIden <- getTemplateQuery(im, "Gene_Identifiers")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.