Class: Google::Apis::GenomicsV1::Reference

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/genomics_v1/classes.rb,
generated/google/apis/genomics_v1/representations.rb,
generated/google/apis/genomics_v1/representations.rb

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Reference

Returns a new instance of Reference



2271
2272
2273
# File 'generated/google/apis/genomics_v1/classes.rb', line 2271

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#idString

The server-generated reference ID, unique across all references. Corresponds to the JSON property id

Returns:

  • (String)


2235
2236
2237
# File 'generated/google/apis/genomics_v1/classes.rb', line 2235

def id
  @id
end

#lengthFixnum

The length of this reference's sequence. Corresponds to the JSON property length

Returns:

  • (Fixnum)


2240
2241
2242
# File 'generated/google/apis/genomics_v1/classes.rb', line 2240

def length
  @length
end

#md5checksumString

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. Corresponds to the JSON property md5checksum

Returns:

  • (String)


2247
2248
2249
# File 'generated/google/apis/genomics_v1/classes.rb', line 2247

def md5checksum
  @md5checksum
end

#nameString

The name of this reference, for example 22. Corresponds to the JSON property name

Returns:

  • (String)


2252
2253
2254
# File 'generated/google/apis/genomics_v1/classes.rb', line 2252

def name
  @name
end

#ncbi_taxon_idFixnum

ID from http://www.ncbi.nlm.nih.gov/taxonomy. For example, 9606 for human. Corresponds to the JSON property ncbiTaxonId

Returns:

  • (Fixnum)


2257
2258
2259
# File 'generated/google/apis/genomics_v1/classes.rb', line 2257

def ncbi_taxon_id
  @ncbi_taxon_id
end

#source_accessionsArray<String>

All known corresponding accession IDs in INSDC (GenBank/ENA/DDBJ) ideally with a version number, for example GCF_000001405.26. Corresponds to the JSON property sourceAccessions

Returns:

  • (Array<String>)


2263
2264
2265
# File 'generated/google/apis/genomics_v1/classes.rb', line 2263

def source_accessions
  @source_accessions
end

#source_uriString

The URI from which the sequence was obtained. Typically specifies a FASTA format file. Corresponds to the JSON property sourceUri

Returns:

  • (String)


2269
2270
2271
# File 'generated/google/apis/genomics_v1/classes.rb', line 2269

def source_uri
  @source_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2276
2277
2278
2279
2280
2281
2282
2283
2284
# File 'generated/google/apis/genomics_v1/classes.rb', line 2276

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @length = args[:length] if args.key?(:length)
  @md5checksum = args[:md5checksum] if args.key?(:md5checksum)
  @name = args[:name] if args.key?(:name)
  @ncbi_taxon_id = args[:ncbi_taxon_id] if args.key?(:ncbi_taxon_id)
  @source_accessions = args[:source_accessions] if args.key?(:source_accessions)
  @source_uri = args[:source_uri] if args.key?(:source_uri)
end