# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule GoogleApi.Genomics.V1.Model.VariantSet do @moduledoc """ A variant set is a collection of call sets and variants. It contains summary statistics of those contents. A variant set belongs to a dataset. For more genomics resource definitions, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) ## Attributes - datasetId (String): The dataset to which this variant set belongs. Defaults to: `null`. - description (String): A textual description of this variant set. Defaults to: `null`. - id (String): The server-generated variant set ID, unique across all variant sets. Defaults to: `null`. - metadata (List[VariantSetMetadata]): The metadata associated with this variant set. Defaults to: `null`. - name (String): User-specified, mutable name. Defaults to: `null`. - referenceBounds (List[ReferenceBound]): A list of all references used by the variants in a variant set with associated coordinate upper bounds for each one. Defaults to: `null`. - referenceSetId (String): The reference set to which the variant set is mapped. The reference set describes the alignment provenance of the variant set, while the `referenceBounds` describe the shape of the actual variant data. The reference set's reference names are a superset of those found in the `referenceBounds`. For example, given a variant set that is mapped to the GRCh38 reference set and contains a single variant on reference 'X', `referenceBounds` would contain only an entry for 'X', while the associated reference set enumerates all possible references: '1', '2', 'X', 'Y', 'MT', etc. Defaults to: `null`. """ defstruct [ :"datasetId", :"description", :"id", :"metadata", :"name", :"referenceBounds", :"referenceSetId" ] end defimpl Poison.Decoder, for: GoogleApi.Genomics.V1.Model.VariantSet do import GoogleApi.Genomics.V1.Deserializer def decode(value, options) do value |> deserialize(:"metadata", :list, GoogleApi.Genomics.V1.Model.VariantSetMetadata, options) |> deserialize(:"referenceBounds", :list, GoogleApi.Genomics.V1.Model.ReferenceBound, options) end end defimpl Poison.Encoder, for: GoogleApi.Genomics.V1.Model.VariantSet do def encode(value, options) do GoogleApi.Genomics.V1.Deserializer.serialize_non_nil(value, options) end end