Class: Google::Apis::GenomicsV1::Annotation
- Inherits:
-
Object
- Object
- Google::Apis::GenomicsV1::Annotation
- 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
-
#annotation_set_id ⇒ String
The annotation set to which this annotation belongs.
-
#end ⇒ Fixnum
The end position of the range on the reference, 0-based exclusive.
-
#id ⇒ String
The server-generated annotation ID, unique across all annotations.
-
#info ⇒ Hash<String,Array<Object>>
A map of additional read alignment information.
-
#name ⇒ String
The display name of this annotation.
-
#reference_id ⇒ String
The ID of the Google Genomics reference associated with this range.
-
#reference_name ⇒ String
The display name corresponding to the reference specified by
referenceId, for examplechr1,1, orchrX. -
#reverse_strand ⇒ Boolean
(also: #reverse_strand?)
Whether this range refers to the reverse strand, as opposed to the forward strand.
-
#start ⇒ Fixnum
The start position of the range on the reference, 0-based inclusive.
-
#transcript ⇒ Google::Apis::GenomicsV1::Transcript
A transcript represents the assertion that a particular region of the reference genome may be transcribed as RNA.
-
#type ⇒ String
The data type for this annotation.
-
#variant ⇒ Google::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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Annotation
constructor
A new instance of Annotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Annotation
Returns a new instance of Annotation
1995 1996 1997 |
# File 'generated/google/apis/genomics_v1/classes.rb', line 1995 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotation_set_id ⇒ String
The annotation set to which this annotation belongs.
Corresponds to the JSON property annotationSetId
1962 1963 1964 |
# File 'generated/google/apis/genomics_v1/classes.rb', line 1962 def annotation_set_id @annotation_set_id end |
#end ⇒ Fixnum
The end position of the range on the reference, 0-based exclusive.
Corresponds to the JSON property end
1946 1947 1948 |
# File 'generated/google/apis/genomics_v1/classes.rb', line 1946 def end @end end |
#id ⇒ String
The server-generated annotation ID, unique across all annotations.
Corresponds to the JSON property id
1985 1986 1987 |
# File 'generated/google/apis/genomics_v1/classes.rb', line 1985 def id @id end |
#info ⇒ Hash<String,Array<Object>>
A map of additional read alignment information. This must be of the form
mapinfo
1941 1942 1943 |
# File 'generated/google/apis/genomics_v1/classes.rb', line 1941 def info @info end |
#name ⇒ String
The display name of this annotation.
Corresponds to the JSON property name
1967 1968 1969 |
# File 'generated/google/apis/genomics_v1/classes.rb', line 1967 def name @name end |
#reference_id ⇒ String
The ID of the Google Genomics reference associated with this range.
Corresponds to the JSON property referenceId
1980 1981 1982 |
# File 'generated/google/apis/genomics_v1/classes.rb', line 1980 def reference_id @reference_id end |
#reference_name ⇒ String
The display name corresponding to the reference specified by
referenceId, for example chr1, 1, or chrX.
Corresponds to the JSON property referenceName
1929 1930 1931 |
# File 'generated/google/apis/genomics_v1/classes.rb', line 1929 def reference_name @reference_name end |
#reverse_strand ⇒ Boolean 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
1992 1993 1994 |
# File 'generated/google/apis/genomics_v1/classes.rb', line 1992 def reverse_strand @reverse_strand end |
#start ⇒ Fixnum
The start position of the range on the reference, 0-based inclusive.
Corresponds to the JSON property start
1957 1958 1959 |
# File 'generated/google/apis/genomics_v1/classes.rb', line 1957 def start @start end |
#transcript ⇒ Google::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
1952 1953 1954 |
# File 'generated/google/apis/genomics_v1/classes.rb', line 1952 def transcript @transcript end |
#type ⇒ String
The data type for this annotation. Must match the containing annotation
set's type.
Corresponds to the JSON property type
1935 1936 1937 |
# File 'generated/google/apis/genomics_v1/classes.rb', line 1935 def type @type end |
#variant ⇒ Google::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
1975 1976 1977 |
# File 'generated/google/apis/genomics_v1/classes.rb', line 1975 def variant @variant end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 |
# File 'generated/google/apis/genomics_v1/classes.rb', line 2000 def update!(**args) @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) @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) end |