Class: GenomicLocus::Position
- Inherits:
-
Object
- Object
- GenomicLocus::Position
- Includes:
- GenomicLocus
- Defined in:
- lib/genomic_locus.rb
Instance Attribute Summary collapse
-
#pos ⇒ Object
(also: #start, #stop)
Returns the value of attribute pos.
-
#seqname ⇒ Object
Returns the value of attribute seqname.
Instance Method Summary collapse
- #copy ⇒ Object
-
#initialize(seqname, pos) ⇒ Position
constructor
A new instance of Position.
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, pos) ⇒ Position
Returns a new instance of Position.
7 8 9 |
# File 'lib/genomic_locus.rb', line 7 def initialize seqname, pos @seqname, @pos = seqname, pos end |
Instance Attribute Details
#pos ⇒ Object Also known as: start, stop
Returns the value of attribute pos.
6 7 8 |
# File 'lib/genomic_locus.rb', line 6 def pos @pos end |
#seqname ⇒ Object
Returns the value of attribute seqname.
6 7 8 |
# File 'lib/genomic_locus.rb', line 6 def seqname @seqname end |
Instance Method Details
#copy ⇒ Object
13 14 15 |
# File 'lib/genomic_locus.rb', line 13 def copy self.class.new seqname, pos end |