Current section

Files

Jump to
google_api_genomics lib google_api genomics v1 model variant_annotation.ex
Raw

lib/google_api/genomics/v1/model/variant_annotation.ex

# 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.VariantAnnotation do
@moduledoc """
## Attributes
- alternateBases (String): The alternate allele for this variant. If multiple alternate alleles exist at this location, create a separate variant for each one, as they may represent distinct conditions. Defaults to: `null`.
- clinicalSignificance (String): Describes the clinical significance of a variant. It is adapted from the ClinVar controlled vocabulary for clinical significance described at: http://www.ncbi.nlm.nih.gov/clinvar/docs/clinsig/ Defaults to: `null`.
- Enum - one of [CLINICAL_SIGNIFICANCE_UNSPECIFIED, CLINICAL_SIGNIFICANCE_OTHER, UNCERTAIN, BENIGN, LIKELY_BENIGN, LIKELY_PATHOGENIC, PATHOGENIC, DRUG_RESPONSE, HISTOCOMPATIBILITY, CONFERS_SENSITIVITY, RISK_FACTOR, ASSOCIATION, PROTECTIVE, MULTIPLE_REPORTED]
- conditions (List[ClinicalCondition]): The set of conditions associated with this variant. A condition describes the way a variant influences human health. Defaults to: `null`.
- effect (String): Effect of the variant on the coding sequence. Defaults to: `null`.
- Enum - one of [EFFECT_UNSPECIFIED, EFFECT_OTHER, FRAMESHIFT, FRAME_PRESERVING_INDEL, SYNONYMOUS_SNP, NONSYNONYMOUS_SNP, STOP_GAIN, STOP_LOSS, SPLICE_SITE_DISRUPTION]
- geneId (String): Google annotation ID of the gene affected by this variant. This should be provided when the variant is created. Defaults to: `null`.
- transcriptIds (List[String]): Google annotation IDs of the transcripts affected by this variant. These should be provided when the variant is created. Defaults to: `null`.
- type (String): Type has been adapted from ClinVar's list of variant types. Defaults to: `null`.
- Enum - one of [TYPE_UNSPECIFIED, TYPE_OTHER, INSERTION, DELETION, SUBSTITUTION, SNP, STRUCTURAL, CNV]
"""
defstruct [
:"alternateBases",
:"clinicalSignificance",
:"conditions",
:"effect",
:"geneId",
:"transcriptIds",
:"type"
]
end
defimpl Poison.Decoder, for: GoogleApi.Genomics.V1.Model.VariantAnnotation do
import GoogleApi.Genomics.V1.Deserializer
def decode(value, options) do
value
|> deserialize(:"conditions", :list, GoogleApi.Genomics.V1.Model.ClinicalCondition, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Genomics.V1.Model.VariantAnnotation do
def encode(value, options) do
GoogleApi.Genomics.V1.Deserializer.serialize_non_nil(value, options)
end
end