def __init__(<EOL>self,<EOL>dataset_id,<EOL>query=None,<EOL>genome_build=None,<EOL>filters=None,<EOL>fields=None,<EOL>exclude_fields=None,<EOL>entities=None,<EOL>ordering=None,<EOL>limit=float('<STR_LIT>'),<EOL>page_size=DEFAULT_PAGE_SIZE,<EOL>result_class=dict,<EOL>debug=False,<EOL>error=None,<EOL>**kwargs):
self._dataset_id = dataset_id<EOL>self._data_url = '<STR_LIT>'.format(dataset_id)<EOL>self._query = query<EOL>self._genome_build = genome_build<EOL>self._result_class = result_class<EOL>self._fields = fields<EOL>self._exclude_fields = exclude_fields<EOL>self._entities = entities<EOL>self._ordering = ordering<EOL>self._debug = debug<EOL>self._error = error<EOL>if filters:<EOL><INDENT>if isinstance(filters, Filter):<EOL><INDENT>filters = [filters]<EOL><DEDENT><DEDENT>else:<EOL><INDENT>filters = []<EOL><DEDENT>self._filters = filters<EOL>self._response = None<EOL>self._limit = limit<EOL>self._page_size = int(page_size)<EOL>self._page_offset = None<EOL>self._slice = None<EOL>if self._limit < <NUM_LIT:0>:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>if self._page_size <= <NUM_LIT:0>:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>self._client = kwargs.get('<STR_LIT>') or self._client or client<EOL>
Creates a new Query object.

:Parameters:
  - `dataset_id`: Unique ID of dataset to query.
  - `query` (optional): An optional query string.
  - `genome_build`: The genome build to use for the query.
  - `result_class` (optional): Class of object returned by query.
  - `fields` (optional): List of specific fields to retrieve.
  - `exclude_fields` (optional): List of specific fields to exclude.
  - `entities` (optional): List of entity tuples to filter on.
  - `ordering` (optional): List of fields to order the results by.
  - `filters` (optional): Filter or List of filter objects.
  - `limit` (optional): Maximum number of query results to return.
  - `page_size` (optional): Number of results to fetch per query page.
  - `debug` (optional): Sends debug information to the API.