newQuery: Initialize a new list query

Description Usage Arguments Value Author(s) See Also Examples

View source: R/queries.R

Description

A query needs to have at least view, constraints and constraintLogic. The view is a vector containing the columns of the query output. 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). The constraintLogic by default is "AND" operation, e.g., "A and B", where A and B are the codes in the constraints.

Usage

1
2
newQuery(name="", view=character(), sortOrder="", longDescription="",
      constraintLogic=NULL)

Arguments

name

a string, representing the name of the query.

view

a character vector, representing the fields to be selected from InterMine.

sortOrder

a string, representing the field according to which the query result is sorted and the sort order ("asc" or "desc"), following the format "FIELD ORDER".

longDescription

a string, representing the description of the query.

constraintLogic

a string, representing the logical relationship between the constraints, e.g., "A or B" where "A" and "B" are the codes in the constraints.

Value

a list representing the query.

Author(s)

InterMine Team

See Also

runQuery

Examples

1
nq <-  newQuery()

intermine/rintermine documentation built on Jan. 10, 2022, 4:24 p.m.