Class: Rafflesia::GenomeIntervalOverlap
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::GenomeIntervalOverlap
- Defined in:
- lib/rafflesia/genomes/genome_interval_overlap.rb
Constant Summary collapse
- HASH_ATTRS =
{ a_contig: :a_contig, a_end: :a_end, a_name: :a_name, a_start: :a_start, b_contig: :b_contig, b_end: :b_end, b_name: :b_name, b_start: :b_start, overlap_end: :overlap_end, overlap_length_bp: :overlap_length_bp, overlap_start: :overlap_start }.freeze
Instance Attribute Summary collapse
-
#a_contig ⇒ Object
Returns the value of attribute a_contig.
-
#a_end ⇒ Object
Returns the value of attribute a_end.
-
#a_name ⇒ Object
Returns the value of attribute a_name.
-
#a_start ⇒ Object
Returns the value of attribute a_start.
-
#b_contig ⇒ Object
Returns the value of attribute b_contig.
-
#b_end ⇒ Object
Returns the value of attribute b_end.
-
#b_name ⇒ Object
Returns the value of attribute b_name.
-
#b_start ⇒ Object
Returns the value of attribute b_start.
-
#overlap_end ⇒ Object
Returns the value of attribute overlap_end.
-
#overlap_length_bp ⇒ Object
Returns the value of attribute overlap_length_bp.
-
#overlap_start ⇒ Object
Returns the value of attribute overlap_start.
Instance Method Summary collapse
-
#initialize(json) ⇒ GenomeIntervalOverlap
constructor
A new instance of GenomeIntervalOverlap.
Constructor Details
#initialize(json) ⇒ GenomeIntervalOverlap
Returns a new instance of GenomeIntervalOverlap.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/rafflesia/genomes/genome_interval_overlap.rb', line 35 def initialize(json) super() hash = self.class.normalize(json) @a_contig = hash[:a_contig] @a_end = hash[:a_end] @a_name = hash[:a_name] @a_start = hash[:a_start] @b_contig = hash[:b_contig] @b_end = hash[:b_end] @b_name = hash[:b_name] @b_start = hash[:b_start] @overlap_end = hash[:overlap_end] @overlap_length_bp = hash[:overlap_length_bp] @overlap_start = hash[:overlap_start] end |
Instance Attribute Details
#a_contig ⇒ Object
Returns the value of attribute a_contig.
22 23 24 |
# File 'lib/rafflesia/genomes/genome_interval_overlap.rb', line 22 def a_contig @a_contig end |
#a_end ⇒ Object
Returns the value of attribute a_end.
22 23 24 |
# File 'lib/rafflesia/genomes/genome_interval_overlap.rb', line 22 def a_end @a_end end |
#a_name ⇒ Object
Returns the value of attribute a_name.
22 23 24 |
# File 'lib/rafflesia/genomes/genome_interval_overlap.rb', line 22 def a_name @a_name end |
#a_start ⇒ Object
Returns the value of attribute a_start.
22 23 24 |
# File 'lib/rafflesia/genomes/genome_interval_overlap.rb', line 22 def a_start @a_start end |
#b_contig ⇒ Object
Returns the value of attribute b_contig.
22 23 24 |
# File 'lib/rafflesia/genomes/genome_interval_overlap.rb', line 22 def b_contig @b_contig end |
#b_end ⇒ Object
Returns the value of attribute b_end.
22 23 24 |
# File 'lib/rafflesia/genomes/genome_interval_overlap.rb', line 22 def b_end @b_end end |
#b_name ⇒ Object
Returns the value of attribute b_name.
22 23 24 |
# File 'lib/rafflesia/genomes/genome_interval_overlap.rb', line 22 def b_name @b_name end |
#b_start ⇒ Object
Returns the value of attribute b_start.
22 23 24 |
# File 'lib/rafflesia/genomes/genome_interval_overlap.rb', line 22 def b_start @b_start end |
#overlap_end ⇒ Object
Returns the value of attribute overlap_end.
22 23 24 |
# File 'lib/rafflesia/genomes/genome_interval_overlap.rb', line 22 def overlap_end @overlap_end end |
#overlap_length_bp ⇒ Object
Returns the value of attribute overlap_length_bp.
22 23 24 |
# File 'lib/rafflesia/genomes/genome_interval_overlap.rb', line 22 def overlap_length_bp @overlap_length_bp end |
#overlap_start ⇒ Object
Returns the value of attribute overlap_start.
22 23 24 |
# File 'lib/rafflesia/genomes/genome_interval_overlap.rb', line 22 def overlap_start @overlap_start end |