Method: Bio::Locations#length
- Defined in:
- lib/bio/location.rb
#length ⇒ Object Also known as: size
Returns a length of the spliced RNA.
429 430 431 432 433 434 435 436 437 438 439 |
# File 'lib/bio/location.rb', line 429 def length len = 0 @locations.each do |x| if x.sequence len += x.sequence.size else len += (x.to - x.from + 1) end end len end |