Class: Bio::Velvet::Underground::Graph::NodedRead
- Inherits:
-
Object
- Object
- Bio::Velvet::Underground::Graph::NodedRead
- Defined in:
- lib/bio-velvet_underground/graph.rb
Instance Attribute Summary collapse
-
#direction ⇒ Object
Returns the value of attribute direction.
Instance Method Summary collapse
-
#initialize(short_read_struct, direction) ⇒ NodedRead
constructor
A new instance of NodedRead.
- #offset_from_start_of_node ⇒ Object
- #read_id ⇒ Object
- #start_coord ⇒ Object
Constructor Details
#initialize(short_read_struct, direction) ⇒ NodedRead
Returns a new instance of NodedRead.
172 173 174 175 |
# File 'lib/bio-velvet_underground/graph.rb', line 172 def initialize(short_read_struct, direction) @internal_short_read_struct = short_read_struct @direction = direction end |
Instance Attribute Details
#direction ⇒ Object
Returns the value of attribute direction.
170 171 172 |
# File 'lib/bio-velvet_underground/graph.rb', line 170 def direction @direction end |
Instance Method Details
#offset_from_start_of_node ⇒ Object
181 182 183 |
# File 'lib/bio-velvet_underground/graph.rb', line 181 def offset_from_start_of_node @offset_from_start_of_node ||= @internal_short_read_struct[:position] end |
#read_id ⇒ Object
177 178 179 |
# File 'lib/bio-velvet_underground/graph.rb', line 177 def read_id @read_id ||= @internal_short_read_struct[:readID] end |
#start_coord ⇒ Object
185 186 187 |
# File 'lib/bio-velvet_underground/graph.rb', line 185 def start_coord @start_coord ||= @internal_short_read_struct[:offset] end |