Class: GenomicLocus::Region

Inherits:
Object
  • Object
show all
Includes:
GenomicLocus
Defined in:
lib/genomic_locus.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from GenomicLocus

#default_stop, #loc, #long_chrom, #range, #short_chrom

Methods included from IntervalList::Interval

#above?, #below?, #center, #clone, #contains?, #diff, #dist, #intersect, #overlaps?, #size, #union

Constructor Details

#initialize(seqname, start, stop) ⇒ Region

Returns a new instance of Region.



21
22
23
# File 'lib/genomic_locus.rb', line 21

def initialize seqname, start, stop
  @seqname, @start, @stop = seqname, start, stop
end

Instance Attribute Details

#seqnameObject

Returns the value of attribute seqname.



20
21
22
# File 'lib/genomic_locus.rb', line 20

def seqname
  @seqname
end

#startObject

Returns the value of attribute start.



20
21
22
# File 'lib/genomic_locus.rb', line 20

def start
  @start
end

#stopObject

Returns the value of attribute stop.



20
21
22
# File 'lib/genomic_locus.rb', line 20

def stop
  @stop
end

Instance Method Details

#copyObject



25
26
27
# File 'lib/genomic_locus.rb', line 25

def copy
  self.class.new seqname, start, stop
end