Class: Bio::Velvet::Underground::Graph::NodedRead

Inherits:
Object
  • Object
show all
Defined in:
lib/bio-velvet_underground/graph.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(short_read_struct, direction) ⇒ NodedRead

Returns a new instance of NodedRead.



161
162
163
164
# File 'lib/bio-velvet_underground/graph.rb', line 161

def initialize(short_read_struct, direction)
  @internal_short_read_struct = short_read_struct
  @direction = direction
end

Instance Attribute Details

#directionObject

Returns the value of attribute direction.



159
160
161
# File 'lib/bio-velvet_underground/graph.rb', line 159

def direction
  @direction
end

Instance Method Details

#offset_from_start_of_nodeObject



170
171
172
# File 'lib/bio-velvet_underground/graph.rb', line 170

def offset_from_start_of_node
  @internal_short_read_struct[:position]
end

#read_idObject



166
167
168
# File 'lib/bio-velvet_underground/graph.rb', line 166

def read_id
  @internal_short_read_struct[:readID]
end

#start_coordObject



174
175
176
# File 'lib/bio-velvet_underground/graph.rb', line 174

def start_coord
  @internal_short_read_struct[:offset]
end