Current section

Files

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

lib/google_api/genomics/v1/model/reference.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.Reference do
@moduledoc """
A reference is a canonical assembled DNA sequence, intended to act as a reference coordinate space for other genomic annotations. A single reference might represent the human chromosome 1 or mitochandrial DNA, for instance. A reference belongs to one or more reference sets.
## Attributes
- id (String.t): The server-generated reference ID, unique across all references. Defaults to: `null`.
- length (String.t): The length of this reference's sequence. Defaults to: `null`.
- md5checksum (String.t): MD5 of the upper-case sequence excluding all whitespace characters (this is equivalent to SQ:M5 in SAM). This value is represented in lower case hexadecimal format. Defaults to: `null`.
- name (String.t): The name of this reference, for example `22`. Defaults to: `null`.
- ncbiTaxonId (integer()): ID from http://www.ncbi.nlm.nih.gov/taxonomy. For example, 9606 for human. Defaults to: `null`.
- sourceAccessions ([String.t]): All known corresponding accession IDs in INSDC (GenBank/ENA/DDBJ) ideally with a version number, for example `GCF_000001405.26`. Defaults to: `null`.
- sourceUri (String.t): The URI from which the sequence was obtained. Typically specifies a FASTA format file. Defaults to: `null`.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:id => any(),
:length => any(),
:md5checksum => any(),
:name => any(),
:ncbiTaxonId => any(),
:sourceAccessions => list(any()),
:sourceUri => any()
}
field(:id)
field(:length)
field(:md5checksum)
field(:name)
field(:ncbiTaxonId)
field(:sourceAccessions, type: :list)
field(:sourceUri)
end
defimpl Poison.Decoder, for: GoogleApi.Genomics.V1.Model.Reference do
def decode(value, options) do
GoogleApi.Genomics.V1.Model.Reference.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Genomics.V1.Model.Reference do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end