Class: Rafflesia::GenomeIntervalOverlap

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_contigObject

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_endObject

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_nameObject

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_startObject

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_contigObject

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_endObject

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_nameObject

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_startObject

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_endObject

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_bpObject

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_startObject

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