Class: GenomicLocus::Region
- Inherits:
-
Object
- Object
- GenomicLocus::Region
- Includes:
- GenomicLocus
- Defined in:
- lib/genomic_locus.rb
Instance Attribute Summary collapse
-
#seqname ⇒ Object
Returns the value of attribute seqname.
-
#start ⇒ Object
Returns the value of attribute start.
-
#stop ⇒ Object
Returns the value of attribute stop.
Instance Method Summary collapse
- #copy ⇒ Object
-
#initialize(seqname, start, stop) ⇒ Region
constructor
A new instance of Region.
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
#seqname ⇒ Object
Returns the value of attribute seqname.
20 21 22 |
# File 'lib/genomic_locus.rb', line 20 def seqname @seqname end |
#start ⇒ Object
Returns the value of attribute start.
20 21 22 |
# File 'lib/genomic_locus.rb', line 20 def start @start end |
#stop ⇒ Object
Returns the value of attribute stop.
20 21 22 |
# File 'lib/genomic_locus.rb', line 20 def stop @stop end |
Instance Method Details
#copy ⇒ Object
25 26 27 |
# File 'lib/genomic_locus.rb', line 25 def copy self.class.new seqname, start, stop end |