Class: Google::Apis::GenomicsV1::Annotation

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

An annotation describes a region of reference genome. The value of an annotation may be one of several canonical types, supplemented by arbitrary info tags. An annotation is not inherently associated with a specific sample or individual (though a client could choose to use annotations in this way). Example canonical annotation types are GENE and VARIANT.

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) ⇒ Annotation

Returns a new instance of Annotation



1513
1514
1515
# File 'generated/google/apis/genomics_v1/classes.rb', line 1513

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

Instance Attribute Details

#annotation_set_idString

The annotation set to which this annotation belongs. Corresponds to the JSON property annotationSetId

Returns:

  • (String)


1446
1447
1448
# File 'generated/google/apis/genomics_v1/classes.rb', line 1446

def annotation_set_id
  @annotation_set_id
end

#endFixnum

The end position of the range on the reference, 0-based exclusive. Corresponds to the JSON property end

Returns:

  • (Fixnum)


1500
1501
1502
# File 'generated/google/apis/genomics_v1/classes.rb', line 1500

def end
  @end
end

#idString

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

Returns:

  • (String)


1469
1470
1471
# File 'generated/google/apis/genomics_v1/classes.rb', line 1469

def id
  @id
end

#infoHash<String,Array<Object>>

A map of additional read alignment information. This must be of the form map (string key mapping to a list of string values). Corresponds to the JSON property info

Returns:

  • (Hash<String,Array<Object>>)


1495
1496
1497
# File 'generated/google/apis/genomics_v1/classes.rb', line 1495

def info
  @info
end

#nameString

The display name of this annotation. Corresponds to the JSON property name

Returns:

  • (String)


1451
1452
1453
# File 'generated/google/apis/genomics_v1/classes.rb', line 1451

def name
  @name
end

#reference_idString

The ID of the Google Genomics reference associated with this range. Corresponds to the JSON property referenceId

Returns:

  • (String)


1464
1465
1466
# File 'generated/google/apis/genomics_v1/classes.rb', line 1464

def reference_id
  @reference_id
end

#reference_nameString

The display name corresponding to the reference specified by referenceId, for example chr1, 1, or chrX. Corresponds to the JSON property referenceName

Returns:

  • (String)


1483
1484
1485
# File 'generated/google/apis/genomics_v1/classes.rb', line 1483

def reference_name
  @reference_name
end

#reverse_strandBoolean Also known as: reverse_strand?

Whether this range refers to the reverse strand, as opposed to the forward strand. Note that regardless of this field, the start/end position of the range always refer to the forward strand. Corresponds to the JSON property reverseStrand

Returns:

  • (Boolean)


1476
1477
1478
# File 'generated/google/apis/genomics_v1/classes.rb', line 1476

def reverse_strand
  @reverse_strand
end

#startFixnum

The start position of the range on the reference, 0-based inclusive. Corresponds to the JSON property start

Returns:

  • (Fixnum)


1511
1512
1513
# File 'generated/google/apis/genomics_v1/classes.rb', line 1511

def start
  @start
end

#transcriptGoogle::Apis::GenomicsV1::Transcript

A transcript represents the assertion that a particular region of the reference genome may be transcribed as RNA. Corresponds to the JSON property transcript



1506
1507
1508
# File 'generated/google/apis/genomics_v1/classes.rb', line 1506

def transcript
  @transcript
end

#typeString

The data type for this annotation. Must match the containing annotation set's type. Corresponds to the JSON property type

Returns:

  • (String)


1489
1490
1491
# File 'generated/google/apis/genomics_v1/classes.rb', line 1489

def type
  @type
end

#variantGoogle::Apis::GenomicsV1::VariantAnnotation

A variant annotation, which describes the effect of a variant on the genome, the coding sequence, and/or higher level consequences at the organism level e.g. pathogenicity. This field is only set for annotations of type VARIANT. Corresponds to the JSON property variant



1459
1460
1461
# File 'generated/google/apis/genomics_v1/classes.rb', line 1459

def variant
  @variant
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
# File 'generated/google/apis/genomics_v1/classes.rb', line 1518

def update!(**args)
  @annotation_set_id = args[:annotation_set_id] if args.key?(:annotation_set_id)
  @name = args[:name] if args.key?(:name)
  @variant = args[:variant] if args.key?(:variant)
  @reference_id = args[:reference_id] if args.key?(:reference_id)
  @id = args[:id] if args.key?(:id)
  @reverse_strand = args[:reverse_strand] if args.key?(:reverse_strand)
  @reference_name = args[:reference_name] if args.key?(:reference_name)
  @type = args[:type] if args.key?(:type)
  @info = args[:info] if args.key?(:info)
  @end = args[:end] if args.key?(:end)
  @transcript = args[:transcript] if args.key?(:transcript)
  @start = args[:start] if args.key?(:start)
end