Current section

Files

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

lib/google_api/genomics/v1/model/transcript.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.Transcript do
@moduledoc """
A transcript represents the assertion that a particular region of the reference genome may be transcribed as RNA.
## Attributes
- codingSequence (CodingSequence): The range of the coding sequence for this transcript, if any. To determine the exact ranges of coding sequence, intersect this range with those of the exons, if any. If there are any exons, the codingSequence must start and end within them. Note that in some cases, the reference genome will not exactly match the observed mRNA transcript e.g. due to variance in the source genome from reference. In these cases, exon.frame will not necessarily match the expected reference reading frame and coding exon reference bases cannot necessarily be concatenated to produce the original transcript mRNA. Defaults to: `null`.
- exons (List[Exon]): The <a href=\"http://en.wikipedia.org/wiki/Exon\">exons</a> that compose this transcript. This field should be unset for genomes where transcript splicing does not occur, for example prokaryotes. Introns are regions of the transcript that are not included in the spliced RNA product. Though not explicitly modeled here, intron ranges can be deduced; all regions of this transcript that are not exons are introns. Exonic sequences do not necessarily code for a translational product (amino acids). Only the regions of exons bounded by the codingSequence correspond to coding DNA sequence. Exons are ordered by start position and may not overlap. Defaults to: `null`.
- geneId (String): The annotation ID of the gene from which this transcript is transcribed. Defaults to: `null`.
"""
defstruct [
:"codingSequence",
:"exons",
:"geneId"
]
end
defimpl Poison.Decoder, for: GoogleApi.Genomics.V1.Model.Transcript do
import GoogleApi.Genomics.V1.Deserializer
def decode(value, options) do
value
|> deserialize(:"codingSequence", :struct, GoogleApi.Genomics.V1.Model.CodingSequence, options)
|> deserialize(:"exons", :list, GoogleApi.Genomics.V1.Model.Exon, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Genomics.V1.Model.Transcript do
def encode(value, options) do
GoogleApi.Genomics.V1.Deserializer.serialize_non_nil(value, options)
end
end