Class: Bio::Spidey::Report::Segment

Inherits:
Object
  • Object
show all
Defined in:
lib/bio/appl/spidey/report.rb

Overview

Segment informations of a segment pair.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pos_st, pos_ed, strand = nil, seq = nil) ⇒ Segment

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



263
264
265
266
267
268
# 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

Instance Attribute Details

#fromObject (readonly)

start position



271
272
273
# File 'lib/bio/appl/spidey/report.rb', line 271

def from
  @from
end

#seqObject (readonly)

sequence data



280
281
282
# File 'lib/bio/appl/spidey/report.rb', line 280

def seq
  @seq
end

#strandObject (readonly)

strand information



277
278
279
# File 'lib/bio/appl/spidey/report.rb', line 277

def strand
  @strand
end

#toObject (readonly)

end position



274
275
276
# File 'lib/bio/appl/spidey/report.rb', line 274

def to
  @to
end