Class: Bio::FinishM::HybridGraph
- Inherits:
-
Velvet::Graph
- Object
- Velvet::Graph
- Bio::FinishM::HybridGraph
- Includes:
- Logging
- Defined in:
- lib/assembly/hybrid_velvet_graph.rb
Overview
A velvet Graph where the nodes and arcs are in Ruby, but the NodedReads are in C
Defined Under Namespace
Classes: LazyShortReadArray, NodeArray
Instance Attribute Summary collapse
-
#bio_velvet_underground_graph ⇒ Object
Returns the value of attribute bio_velvet_underground_graph.
Instance Method Summary collapse
-
#initialize(bio_velvet_graph, bio_velvet_underground_graph) ⇒ HybridGraph
constructor
A new instance of HybridGraph.
Methods included from Logging
Methods inherited from Velvet::Graph
#depth_first_search, #neighbours_of, #neighbours_of_node_id
Constructor Details
#initialize(bio_velvet_graph, bio_velvet_underground_graph) ⇒ HybridGraph
Returns a new instance of HybridGraph.
7 8 9 10 11 12 13 14 15 |
# File 'lib/assembly/hybrid_velvet_graph.rb', line 7 def initialize(bio_velvet_graph, bio_velvet_underground_graph) @bio_velvet_underground_graph = bio_velvet_underground_graph @nodes = NodeArray.new(bio_velvet_graph, bio_velvet_underground_graph, self) @hash_length = bio_velvet_graph.hash_length @number_of_nodes = bio_velvet_graph.number_of_nodes @number_of_sequences = bio_velvet_graph.number_of_sequences @arcs = bio_velvet_graph.arcs end |
Instance Attribute Details
#bio_velvet_underground_graph ⇒ Object
Returns the value of attribute bio_velvet_underground_graph.
5 6 7 |
# File 'lib/assembly/hybrid_velvet_graph.rb', line 5 def bio_velvet_underground_graph @bio_velvet_underground_graph end |