class Bio::Spidey::Report::Segment

Segment informations of a segment pair.

Attributes

from[R]

start position

seq[R]

sequence data

strand[R]

strand information

to[R]

end position

Public Class Methods

new(pos_st, pos_ed, strand = nil, seq = nil) click to toggle source

Creates a new Segment object. It is designed to be called internally from Bio::Spidey::Report::* classes. Users shall not call it directly.

# File lib/bio/appl/spidey/report.rb, line 263
def initialize(pos_st, pos_ed, strand = nil, seq = nil)
  @from   = pos_st ? pos_st.to_i : nil
  @to     = pos_ed ? pos_ed.to_i : nil
  @strand = strand
  @seq    = seq
end