Class: ORFnucleotides
- Inherits:
-
ORFsequence
- Object
- ORFsequence
- ORFnucleotides
- Defined in:
- lib/bigbio/sequence/predictorf.rb
Overview
Helper class for storing ORF information
Instance Attribute Summary collapse
-
#start ⇒ Object
readonly
Returns the value of attribute start.
-
#stop ⇒ Object
readonly
Returns the value of attribute stop.
Instance Method Summary collapse
- #fullseq ⇒ Object
-
#initialize(sequence, start, stop) ⇒ ORFnucleotides
constructor
A new instance of ORFnucleotides.
- #seq ⇒ Object
- #to_s ⇒ Object
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
#start ⇒ Object (readonly)
Returns the value of attribute start.
15 16 17 |
# File 'lib/bigbio/sequence/predictorf.rb', line 15 def start @start end |
#stop ⇒ Object (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
#fullseq ⇒ Object
26 27 28 |
# File 'lib/bigbio/sequence/predictorf.rb', line 26 def fullseq @seq end |
#seq ⇒ Object
22 23 24 |
# File 'lib/bigbio/sequence/predictorf.rb', line 22 def seq @seq[@start..@stop-1] end |
#to_s ⇒ Object
30 31 32 |
# File 'lib/bigbio/sequence/predictorf.rb', line 30 def to_s seq end |