Class: ORFnucleotides

Inherits:
ORFsequence show all
Defined in:
lib/bigbio/sequence/predictorf.rb

Overview

Helper class for storing ORF information

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sequence, start, stop) ⇒ ORFnucleotides

Returns a new instance of ORFnucleotides.



16
17
18
19
20
# File 'lib/bigbio/sequence/predictorf.rb', line 16

def initialize sequence, start, stop
  super(sequence)
  @start = start
  @stop = stop
end

Instance Attribute Details

#startObject (readonly)

Returns the value of attribute start.



15
16
17
# File 'lib/bigbio/sequence/predictorf.rb', line 15

def start
  @start
end

#stopObject (readonly)

Returns the value of attribute stop.



15
16
17
# File 'lib/bigbio/sequence/predictorf.rb', line 15

def stop
  @stop
end

Instance Method Details

#fullseqObject



26
27
28
# File 'lib/bigbio/sequence/predictorf.rb', line 26

def fullseq
  @seq
end

#seqObject



22
23
24
# File 'lib/bigbio/sequence/predictorf.rb', line 22

def seq
  @seq[@start..@stop-1]
end

#to_sObject



30
31
32
# File 'lib/bigbio/sequence/predictorf.rb', line 30

def to_s
  seq
end