Class: Bio::AssemblyGraphAlgorithms::SequenceHasher::DistancedOrientedNodeTrail

Inherits:
Velvet::Graph::OrientedNodeTrail show all
Defined in:
lib/assembly/sequence_hasher.rb

Constant Summary

Constants inherited from Velvet::Graph::OrientedNodeTrail

Velvet::Graph::OrientedNodeTrail::END_IS_FIRST, Velvet::Graph::OrientedNodeTrail::START_IS_FIRST

Instance Attribute Summary collapse

Attributes inherited from Velvet::Graph::OrientedNodeTrail

#trail

Instance Method Summary collapse

Methods inherited from Velvet::Graph::OrientedNodeTrail

#==, #[], #add_node, #add_oriented_node, #add_setabled_nodes, #coverage, create_from_shorthand, create_from_super_shorthand, #delete_at, #each, #include_oriented_node?, #initialize, #inspect, #last, #length, #length_in_bp, #length_in_bp_within_path, #neighbours_of_last_node, #remove_last_node, #reverse, #reverse!, #sequence, #sequences_within_path, #to_short_s, #to_shorthand

Constructor Details

This class inherits a constructor from Bio::Velvet::Graph::OrientedNodeTrail

Instance Attribute Details

#distanceObject

Returns the value of attribute distance.



57
58
59
# File 'lib/assembly/sequence_hasher.rb', line 57

def distance
  @distance
end

Instance Method Details

#copyObject



59
60
61
62
63
64
# File 'lib/assembly/sequence_hasher.rb', line 59

def copy
  o = DistancedOrientedNodeTrail.new
  o.trail = Array.new(@trail.collect{|onode| onode.copy})
  o.distance = @distance
  return o
end

#to_sObject



66
67
68
# File 'lib/assembly/sequence_hasher.rb', line 66

def to_s
  "DistancedOrientedTrail: #{object_id}: #{to_shorthand} distance=#{@distance}"
end