# Genomics API . callsets

## Instance Methods

Creates a new call set.

Deletes a call set.

Gets a call set by ID.

Updates a call set. This method supports patch semantics.

Gets a list of call sets matching the criteria. Implements [GlobalAllianceApi.searchCallSets](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/variantmethods.avdl#L178).

### Method Details

`create(body, x__xgafv=None)`

    Creates a new call set.

    Args:
      body: object, The request body. (required)
        The object takes the form of:

    { # A call set is a collection of variant calls, typically for one sample. It belongs to a variant set.
      "info": { # A map of additional call set information. This must be of the form map (string key mapping to a list of string values).
        "a_key": [
          "",
        ],
      },
      "name": "A String", # The call set name.
      "created": "A String", # The date this call set was created in milliseconds from the epoch.
      "sampleId": "A String", # The sample ID this call set corresponds to.
      "variantSetIds": [ # The IDs of the variant sets this call set belongs to. This field must have exactly length one, as a call set belongs to a single variant set. This field is repeated for compatibility with the [GA4GH 0.5.1 API](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/variants.avdl#L76).
        "A String",
      ],
      "id": "A String", # The server-generated call set ID, unique across all call sets.
    }

      x__xgafv: string, V1 error format.

    Returns:
      An object of the form:

        { # A call set is a collection of variant calls, typically for one sample. It belongs to a variant set.
        "info": { # A map of additional call set information. This must be of the form map (string key mapping to a list of string values).
          "a_key": [
            "",
          ],
        },
        "name": "A String", # The call set name.
        "created": "A String", # The date this call set was created in milliseconds from the epoch.
        "sampleId": "A String", # The sample ID this call set corresponds to.
        "variantSetIds": [ # The IDs of the variant sets this call set belongs to. This field must have exactly length one, as a call set belongs to a single variant set. This field is repeated for compatibility with the [GA4GH 0.5.1 API](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/variants.avdl#L76).
          "A String",
        ],
        "id": "A String", # The server-generated call set ID, unique across all call sets.
      }

`delete(callSetId, x__xgafv=None)`

    Deletes a call set.

    Args:
      callSetId: string, The ID of the call set to be deleted. (required)
      x__xgafv: string, V1 error format.

    Returns:
      An object of the form:

        { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
      }

`get(callSetId, x__xgafv=None)`

    Gets a call set by ID.

    Args:
      callSetId: string, The ID of the call set. (required)
      x__xgafv: string, V1 error format.

    Returns:
      An object of the form:

        { # A call set is a collection of variant calls, typically for one sample. It belongs to a variant set.
        "info": { # A map of additional call set information. This must be of the form map (string key mapping to a list of string values).
          "a_key": [
            "",
          ],
        },
        "name": "A String", # The call set name.
        "created": "A String", # The date this call set was created in milliseconds from the epoch.
        "sampleId": "A String", # The sample ID this call set corresponds to.
        "variantSetIds": [ # The IDs of the variant sets this call set belongs to. This field must have exactly length one, as a call set belongs to a single variant set. This field is repeated for compatibility with the [GA4GH 0.5.1 API](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/variants.avdl#L76).
          "A String",
        ],
        "id": "A String", # The server-generated call set ID, unique across all call sets.
      }

`patch(callSetId, body, updateMask=None, x__xgafv=None)`

    Updates a call set. This method supports patch semantics.

    Args:
      callSetId: string, The ID of the call set to be updated. (required)
      body: object, The request body. (required)
        The object takes the form of:

    { # A call set is a collection of variant calls, typically for one sample. It belongs to a variant set.
      "info": { # A map of additional call set information. This must be of the form map (string key mapping to a list of string values).
        "a_key": [
          "",
        ],
      },
      "name": "A String", # The call set name.
      "created": "A String", # The date this call set was created in milliseconds from the epoch.
      "sampleId": "A String", # The sample ID this call set corresponds to.
      "variantSetIds": [ # The IDs of the variant sets this call set belongs to. This field must have exactly length one, as a call set belongs to a single variant set. This field is repeated for compatibility with the [GA4GH 0.5.1 API](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/variants.avdl#L76).
        "A String",
      ],
      "id": "A String", # The server-generated call set ID, unique across all call sets.
    }

      updateMask: string, An optional mask specifying which fields to update. At this time, the only mutable field is [name][google.genomics.v1.CallSet.name]. The only acceptable value is "name". If unspecified, all mutable fields will be updated.
      x__xgafv: string, V1 error format.

    Returns:
      An object of the form:

        { # A call set is a collection of variant calls, typically for one sample. It belongs to a variant set.
        "info": { # A map of additional call set information. This must be of the form map (string key mapping to a list of string values).
          "a_key": [
            "",
          ],
        },
        "name": "A String", # The call set name.
        "created": "A String", # The date this call set was created in milliseconds from the epoch.
        "sampleId": "A String", # The sample ID this call set corresponds to.
        "variantSetIds": [ # The IDs of the variant sets this call set belongs to. This field must have exactly length one, as a call set belongs to a single variant set. This field is repeated for compatibility with the [GA4GH 0.5.1 API](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/variants.avdl#L76).
          "A String",
        ],
        "id": "A String", # The server-generated call set ID, unique across all call sets.
      }

`search(body, x__xgafv=None)`

    Gets a list of call sets matching the criteria. Implements [GlobalAllianceApi.searchCallSets](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/variantmethods.avdl#L178).

    Args:
      body: object, The request body. (required)
        The object takes the form of:

    { # The call set search request.
        "pageToken": "A String", # The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of `nextPageToken` from the previous response.
        "variantSetIds": [ # Restrict the query to call sets within the given variant sets. At least one ID must be provided.
          "A String",
        ],
        "name": "A String", # Only return call sets for which a substring of the name matches this string.
        "pageSize": 42, # The maximum number of call sets to return. If unspecified, defaults to 1000.
      }

      x__xgafv: string, V1 error format.

    Returns:
      An object of the form:

        { # The call set search response.
        "nextPageToken": "A String", # The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results. This field will be empty if there aren't any additional results.
        "callSets": [ # The list of matching call sets.
          { # A call set is a collection of variant calls, typically for one sample. It belongs to a variant set.
            "info": { # A map of additional call set information. This must be of the form map (string key mapping to a list of string values).
              "a_key": [
                "",
              ],
            },
            "name": "A String", # The call set name.
            "created": "A String", # The date this call set was created in milliseconds from the epoch.
            "sampleId": "A String", # The sample ID this call set corresponds to.
            "variantSetIds": [ # The IDs of the variant sets this call set belongs to. This field must have exactly length one, as a call set belongs to a single variant set. This field is repeated for compatibility with the [GA4GH 0.5.1 API](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/variants.avdl#L76).
              "A String",
            ],
            "id": "A String", # The server-generated call set ID, unique across all call sets.
          },
        ],
      }