Class: GenomicLocus::Position

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, 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

#posObject 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

#seqnameObject

Returns the value of attribute seqname.



6
7
8
# File 'lib/genomic_locus.rb', line 6

def seqname
  @seqname
end

Instance Method Details

#copyObject



13
14
15
# File 'lib/genomic_locus.rb', line 13

def copy
  self.class.new seqname, pos
end