gatb.core-API-0.0.0
|
Class providing helpers for graph traversal. More...
#include <IterativeExtensions.hpp>
Public Types | |
typedef kmer::impl::Kmer< span >::ModelCanonical | Model |
Public Member Functions | |
IterativeExtensions (const Graph_t &graph, TerminatorTemplate< Node, Edge, Graph_t > &terminator, tools::misc::TraversalKind traversalKind, tools::misc::ExtendStopMode_e whenToStop, tools::misc::SearchMode_e searchMode, bool dontOutputFirstNucl, int max_depth, int max_nodes) | |
void | construct_linear_seqs (const std::string &L, const std::string &R, bank::IBank *outputBank, bool swf=false) |
void | construct_linear_seqs (const std::string &L, const std::string &R, const std::string &output_file, bool swf=false) |
Class providing helpers for graph traversal.
The implementation relies on the Graph class of GATB-CORE, which provides the API to traverse a de Bruijn graph.
typedef kmer::impl::Kmer<span>::ModelCanonical Model |
ShortcutS.
IterativeExtensions | ( | const Graph_t & | graph, |
TerminatorTemplate< Node, Edge, Graph_t > & | terminator, | ||
tools::misc::TraversalKind | traversalKind, | ||
tools::misc::ExtendStopMode_e | whenToStop, | ||
tools::misc::SearchMode_e | searchMode, | ||
bool | dontOutputFirstNucl, | ||
int | max_depth, | ||
int | max_nodes | ||
) |
Constructor.
[in] | graph | : de Bruijn graph of the reads |
[in] | terminator | : object used to mark nodes during graph traversal. |
[in] | traversalKind | : kind of graph traversal (unitig,contig) |
[in] | whenToStop | : tells when to stop the extension |
[in] | searchMode | : mode of graph traversal |
[in] | dontOutputFirstNucl | : tells whether the first nucleotide of an extension has to be output |
[in] | max_depth | : max depth of the graph traversal |
[in] | max_nodes | : max nodes |
void construct_linear_seqs | ( | const std::string & | L, |
const std::string & | R, | ||
bank::IBank * | outputBank, | ||
bool | swf = false |
||
) |
Return the unitig/contig which starts with L, as well as all ths contigs that follow him, up to max_depth. Results go to a fasta file (output_file)
[in] | L | : starter string for the unitig/contig |
[in] | R | : |
[in] | outputBank | : bank where the unitig/contig have to be dumped |
[in] | swf | : to be detailed |
void construct_linear_seqs | ( | const std::string & | L, |
const std::string & | R, | ||
const std::string & | output_file, | ||
bool | swf = false |
||
) |
Return the unitig/contig which starts with L, as well as all ths contigs that follow him, up to max_depth. Results go to a fasta file (output_file)
[in] | L | : starter string for the unitig/contig |
[in] | R | : |
[in] | output_file | : uri of the file where the unitig/contig have to be dumped |
[in] | swf | : to be detailed |