getTemplates {InterMineR} | R Documentation |
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.
getTemplates(im, format = "data.frame", timeout = 3)
im |
a Service object containing the base URL and API token, created by |
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. |
a data.frame or list object, representing the information (name and title) for the pre-define templates in the mine.
InterMine Team
# Get HumanMine template queries im <- initInterMine(listMines()["HumanMine"]) templates <- getTemplates(im)