Class: Bio::AssemblyGraphAlgorithms::SequenceHasher::DistancedOrientedNodeTrail
- Inherits:
-
Velvet::Graph::OrientedNodeTrail
- Object
- Velvet::Graph::OrientedNodeTrail
- Bio::AssemblyGraphAlgorithms::SequenceHasher::DistancedOrientedNodeTrail
- 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
-
#distance ⇒ Object
Returns the value of attribute distance.
Attributes inherited from Velvet::Graph::OrientedNodeTrail
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
#distance ⇒ Object
Returns the value of attribute distance.
57 58 59 |
# File 'lib/assembly/sequence_hasher.rb', line 57 def distance @distance end |
Instance Method Details
#copy ⇒ Object
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_s ⇒ Object
66 67 68 |
# File 'lib/assembly/sequence_hasher.rb', line 66 def to_s "DistancedOrientedTrail: #{object_id}: #{to_shorthand} distance=#{@distance}" end |