Class: Bio::Spidey::Report::Segment
- Defined in:
- lib/bio/appl/spidey/report.rb
Overview
Segment informations of a segment pair.
Instance Attribute Summary collapse
-
#from ⇒ Object
readonly
start position.
-
#seq ⇒ Object
readonly
sequence data.
-
#strand ⇒ Object
readonly
strand information.
-
#to ⇒ Object
readonly
end position.
Instance Method Summary collapse
-
#initialize(pos_st, pos_ed, strand = nil, seq = nil) ⇒ Segment
constructor
Creates a new Segment object.
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
#from ⇒ Object (readonly)
start position
271 272 273 |
# File 'lib/bio/appl/spidey/report.rb', line 271 def from @from end |
#seq ⇒ Object (readonly)
sequence data
280 281 282 |
# File 'lib/bio/appl/spidey/report.rb', line 280 def seq @seq end |
#strand ⇒ Object (readonly)
strand information
277 278 279 |
# File 'lib/bio/appl/spidey/report.rb', line 277 def strand @strand end |
#to ⇒ Object (readonly)
end position
274 275 276 |
# File 'lib/bio/appl/spidey/report.rb', line 274 def to @to end |