gatb.core-API-0.0.0
|
Structure representing a path in the De Bruijn graph. More...
#include <Graph.hpp>
Public Member Functions | |
Path_t (size_t n=0) | |
size_t | size () const |
void | resize (size_t n) |
char | ascii (size_t i) const |
void | push_back (kmer::Nucleotide nt) |
void | clear () |
kmer::Nucleotide & | operator[] (size_t i) |
const kmer::Nucleotide & | operator[] (size_t i) const |
Public Attributes | |
Node | start |
std::vector< kmer::Nucleotide > | path |
Structure representing a path in the De Bruijn graph.
The Path structure provides information on a linear path in the DB graph. It mainly holds the succession of nucleotides that define the path.
The path start is defined by an Node object, which defines without ambiguity the first node of the path.
It can be used by clients such a contiger tool.
Note: by now, the structure is not perfect and some adaptations could come.
|
inline |
Constructor (default one)
[in] | n | : size of the path. |
|
inline |
Get the ascii value of the ith nucleotide in the path.
[in] | i | : index of the nucleotide |
|
inline |
Clear the path (ie remove all the nucleotides).
|
inline |
Retrieve a reference on the ith nucleotide in the path.
[in] | i | : index od the nucleotide to be retrieved. |
|
inline |
Retrieve a reference on the ith nucleotide in the path.
[in] | i | : index od the nucleotide to be retrieved. |
|
inline |
Add a nucleotide to the path.
[in] | nt | : nucleotide to be appended to the path. |
|
inline |
Set the size of the path
[in] | n | : the size of the path. |
|
inline |
Get the path size
std::vector<kmer::Nucleotide> path |
Path definition as a succession of nucleotides.
Node start |
Node defining the initial transition of the path.