Module: Bio::Big::FrameCodonHelpers::TrackSequenceTrait
- Included in:
- FrameCodonSequence
- Defined in:
- lib/bigbio/db/emitters/orf_emitter.rb
Overview
Track sequence position in parent sequence (in nucleotides)
Instance Attribute Summary collapse
-
#track_ntseq_pos ⇒ Object
Returns the value of attribute track_ntseq_pos.
Class Method Summary collapse
- .update_reversed_sequence_pos(orfs, ntseq_pos) ⇒ Object
- .update_sequence_pos(orfs, ntseq_pos) ⇒ Object
Instance Attribute Details
#track_ntseq_pos ⇒ Object
Returns the value of attribute track_ntseq_pos.
14 15 16 |
# File 'lib/bigbio/db/emitters/orf_emitter.rb', line 14 def track_ntseq_pos @track_ntseq_pos end |
Class Method Details
.update_reversed_sequence_pos(orfs, ntseq_pos) ⇒ Object
19 20 21 22 23 |
# File 'lib/bigbio/db/emitters/orf_emitter.rb', line 19 def TrackSequenceTrait.update_reversed_sequence_pos orfs, ntseq_pos # is the same orfs.each { | orf | orf.track_ntseq_pos = ntseq_pos + orf.pos*3 } orfs end |
.update_sequence_pos(orfs, ntseq_pos) ⇒ Object
15 16 17 18 |
# File 'lib/bigbio/db/emitters/orf_emitter.rb', line 15 def TrackSequenceTrait.update_sequence_pos orfs, ntseq_pos orfs.each { | orf | orf.track_ntseq_pos = ntseq_pos + orf.pos*3 } orfs end |