| 1 |
\hypertarget{classCompactedDBG}{}\section{Compacted\+D\+BG$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$ Class Template Reference} |
| 2 |
\label{classCompactedDBG}\index{Compacted\+D\+B\+G$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$@{Compacted\+D\+B\+G$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$}} |
| 3 |
|
| 4 |
|
| 5 |
Represent a Compacted de Bruijn graph. |
| 6 |
|
| 7 |
|
| 8 |
\subsection*{Public Types} |
| 9 |
\begin{DoxyCompactItemize} |
| 10 |
\item |
| 11 |
typedef \hyperlink{classunitigIterator}{unitig\+Iterator}$<$ U, G, false $>$ \hyperlink{classCompactedDBG_af4a6df70628f698d9a2ee843b5359883}{iterator} |
| 12 |
\begin{DoxyCompactList}\small\item\em An iterator for the unitigs of the graph. \end{DoxyCompactList}\item |
| 13 |
typedef \hyperlink{classunitigIterator}{unitig\+Iterator}$<$ U, G, true $>$ \hyperlink{classCompactedDBG_a7725fc78ad52227df1f70d9b8f44622c}{const\+\_\+iterator} |
| 14 |
\begin{DoxyCompactList}\small\item\em A constant iterator for the unitigs of the graph. \end{DoxyCompactList}\end{DoxyCompactItemize} |
| 15 |
\subsection*{Public Member Functions} |
| 16 |
\begin{DoxyCompactItemize} |
| 17 |
\item |
| 18 |
\hyperlink{classCompactedDBG_ad6584f016b02651312c69ac444349bfe}{Compacted\+D\+BG} (const int kmer\+\_\+length=31, const int minimizer\+\_\+length=23) |
| 19 |
\begin{DoxyCompactList}\small\item\em Constructor (set up an empty compacted d\+BG). \end{DoxyCompactList}\item |
| 20 |
\hyperlink{classCompactedDBG_a84fbb8da0cf47e8cdf9cb60fb2eab0f0}{Compacted\+D\+BG} (const \hyperlink{classCompactedDBG}{Compacted\+D\+BG} \&o) |
| 21 |
\begin{DoxyCompactList}\small\item\em Copy constructor (copy a compacted de Bruijn graph). \end{DoxyCompactList}\item |
| 22 |
\hyperlink{classCompactedDBG_ac93c3355910670b8244741b22baca929}{Compacted\+D\+BG} (\hyperlink{classCompactedDBG}{Compacted\+D\+BG} \&\&o) |
| 23 |
\begin{DoxyCompactList}\small\item\em Move constructor (move a compacted de Bruijn graph). \end{DoxyCompactList}\item |
| 24 |
\mbox{\Hypertarget{classCompactedDBG_a64299c748d198a2596facfd39c2bd280}\label{classCompactedDBG_a64299c748d198a2596facfd39c2bd280}} |
| 25 |
virtual \hyperlink{classCompactedDBG_a64299c748d198a2596facfd39c2bd280}{$\sim$\+Compacted\+D\+BG} () |
| 26 |
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item |
| 27 |
\hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ U, G $>$ \& \hyperlink{classCompactedDBG_a0c7e50223cdcb178110aa49e983e4ec2}{operator=} (const \hyperlink{classCompactedDBG}{Compacted\+D\+BG} \&o) |
| 28 |
\begin{DoxyCompactList}\small\item\em Copy assignment operator (copy a compacted de Bruijn graph). \end{DoxyCompactList}\item |
| 29 |
\hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ U, G $>$ \& \hyperlink{classCompactedDBG_a191a4cce892c9a6ceea7bfdfbf41e494}{operator=} (\hyperlink{classCompactedDBG}{Compacted\+D\+BG} \&\&o) |
| 30 |
\begin{DoxyCompactList}\small\item\em Move assignment operator (move a compacted de Bruijn graph). \end{DoxyCompactList}\item |
| 31 |
\hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ U, G $>$ \& \hyperlink{classCompactedDBG_af689cbbbe9328a0bd4f80eb8c0547e3c}{operator+=} (const \hyperlink{classCompactedDBG}{Compacted\+D\+BG} \&o) |
| 32 |
\begin{DoxyCompactList}\small\item\em Addition assignment operator (merge a compacted de Bruijn graph). \end{DoxyCompactList}\item |
| 33 |
bool \hyperlink{classCompactedDBG_a59b674356405c7c80bfbd7751d0d1aff}{operator==} (const \hyperlink{classCompactedDBG}{Compacted\+D\+BG} \&o) const |
| 34 |
\begin{DoxyCompactList}\small\item\em Equality operator. \end{DoxyCompactList}\item |
| 35 |
bool \hyperlink{classCompactedDBG_ae3039c04c5f7234281f4e8c04fffd0bc}{operator!=} (const \hyperlink{classCompactedDBG}{Compacted\+D\+BG} \&o) const |
| 36 |
\begin{DoxyCompactList}\small\item\em Inequality operator. \end{DoxyCompactList}\item |
| 37 |
\mbox{\Hypertarget{classCompactedDBG_ac85b803c8f7527ed3c68054b77224d6d}\label{classCompactedDBG_ac85b803c8f7527ed3c68054b77224d6d}} |
| 38 |
void \hyperlink{classCompactedDBG_ac85b803c8f7527ed3c68054b77224d6d}{clear} () |
| 39 |
\begin{DoxyCompactList}\small\item\em Clear the graph\+: empty the graph and reset its parameters. \end{DoxyCompactList}\item |
| 40 |
bool \hyperlink{classCompactedDBG_a6021ad2fe7b11998b886bc5fd9e1a4ba}{build} (\hyperlink{structCDBG__Build__opt}{C\+D\+B\+G\+\_\+\+Build\+\_\+opt} \&opt) |
| 41 |
\begin{DoxyCompactList}\small\item\em Build the Compacted de Bruijn graph. \end{DoxyCompactList}\item |
| 42 |
bool \hyperlink{classCompactedDBG_aa8c574863bed96d2a9415cbe3d154de6}{simplify} (const bool delete\+\_\+short\+\_\+isolated\+\_\+unitigs=true, const bool clip\+\_\+short\+\_\+tips=true, const bool verbose=false) |
| 43 |
\begin{DoxyCompactList}\small\item\em Simplify the Compacted de Bruijn graph\+: clip short ($<$ 2k length) tips and/or delete short ($<$ 2k length) isolated unitigs. \end{DoxyCompactList}\item |
| 44 |
bool \hyperlink{classCompactedDBG_a15707e8624006d247e58e4c67718a677}{write} (const string \&output\+\_\+filename, const size\+\_\+t nb\+\_\+threads=1, const bool G\+F\+A\+\_\+output=true, const bool verbose=false) const |
| 45 |
\begin{DoxyCompactList}\small\item\em Write the Compacted de Bruijn graph to disk (G\+F\+A1 format). \end{DoxyCompactList}\item |
| 46 |
bool \hyperlink{classCompactedDBG_a0930cb63a158caa70f4dcd425a088fb4}{read} (const string \&input\+\_\+filename, const bool verbose=false) |
| 47 |
\begin{DoxyCompactList}\small\item\em Read a Compacted de Bruijn graph from disk (G\+F\+A1 or F\+A\+S\+TA format). \end{DoxyCompactList}\item |
| 48 |
\hyperlink{classUnitigMap}{Unitig\+Map}$<$ U, G $>$ \hyperlink{classCompactedDBG_ad7c880affe4d79ec249f9384da1d3d65}{find} (const \hyperlink{classKmer}{Kmer} \&km, const bool extremities\+\_\+only=false) |
| 49 |
\begin{DoxyCompactList}\small\item\em Find the unitig containing the queried k-\/mer in the Compacted de Bruijn graph. \end{DoxyCompactList}\item |
| 50 |
\hyperlink{CompactedDBG_8hpp_a631369597e56604279ba89a211c14fd0}{const\+\_\+\+Unitig\+Map}$<$ U, G $>$ \hyperlink{classCompactedDBG_acca2582e9bf7abd1f2fdd15223d5b80a}{find} (const \hyperlink{classKmer}{Kmer} \&km, const bool extremities\+\_\+only=false) const |
| 51 |
\begin{DoxyCompactList}\small\item\em Find the unitig containing the queried k-\/mer in the Compacted de Bruijn graph. \end{DoxyCompactList}\item |
| 52 |
\hyperlink{classUnitigMap}{Unitig\+Map}$<$ U, G $>$ \hyperlink{classCompactedDBG_ac28279d78c552001464ac76587359445}{find\+Unitig} (const char $\ast$s, const size\+\_\+t pos, const size\+\_\+t len) |
| 53 |
\begin{DoxyCompactList}\small\item\em Find the unitig containing the k-\/mer starting at a given position in a query sequence and extends the mapping (if the k-\/mer is found, the function extends the mapping from the k-\/mer as long as the query sequence and the unitig matches). \end{DoxyCompactList}\item |
| 54 |
vector$<$ pair$<$ size\+\_\+t, \hyperlink{classUnitigMap}{Unitig\+Map}$<$ U, G $>$ $>$ $>$ \hyperlink{classCompactedDBG_af27c7bcb26d05371bdcc12075b4724eb}{search\+Sequence} (const string \&seq, const bool exact, const bool insertion, const bool deletion, const bool substitution, const bool or\+\_\+exclusive\+\_\+match=false) const |
| 55 |
\begin{DoxyCompactList}\small\item\em Performs exact and/or inexact search of the k-\/mers of a sequence query in the Compacted de Bruijn graph. \end{DoxyCompactList}\item |
| 56 |
bool \hyperlink{classCompactedDBG_a3c884106eb285d837918ddf53ca422bf}{add} (const string \&seq, const bool verbose=false) |
| 57 |
\begin{DoxyCompactList}\small\item\em Add a sequence to the Compacted de Bruijn graph. \end{DoxyCompactList}\item |
| 58 |
bool \hyperlink{classCompactedDBG_aa8e901dc6f1cf0adcc91608a6b34e999}{remove} (const \hyperlink{CompactedDBG_8hpp_a631369597e56604279ba89a211c14fd0}{const\+\_\+\+Unitig\+Map}$<$ U, G $>$ \&um, const bool verbose=false) |
| 59 |
\begin{DoxyCompactList}\small\item\em Remove a unitig from the Compacted de Bruijn graph. \end{DoxyCompactList}\item |
| 60 |
bool \hyperlink{classCompactedDBG_a936c3dc0ecc4c8aa28fd5b4dedd1746a}{merge} (const \hyperlink{classCompactedDBG}{Compacted\+D\+BG} \&o, const size\+\_\+t nb\+\_\+threads=1, const bool verbose=false) |
| 61 |
\begin{DoxyCompactList}\small\item\em Merge a compacted de Bruijn graph. \end{DoxyCompactList}\item |
| 62 |
bool \hyperlink{classCompactedDBG_ad71daf96811e96c97be70762d1cba7d8}{merge} (const vector$<$ \hyperlink{classCompactedDBG}{Compacted\+D\+BG} $>$ \&v, const size\+\_\+t nb\+\_\+threads=1, const bool verbose=false) |
| 63 |
\begin{DoxyCompactList}\small\item\em Merge multiple compacted de Bruijn graphs. \end{DoxyCompactList}\item |
| 64 |
\hyperlink{classCompactedDBG_af4a6df70628f698d9a2ee843b5359883}{iterator} \hyperlink{classCompactedDBG_aafac845b848ae5cf79f1f818db6c2ecc}{begin} () |
| 65 |
\begin{DoxyCompactList}\small\item\em Create an iterator to the first unitig of the Compacted de Bruijn graph (unitigs are N\+OT sorted lexicographically). \end{DoxyCompactList}\item |
| 66 |
\hyperlink{classCompactedDBG_a7725fc78ad52227df1f70d9b8f44622c}{const\+\_\+iterator} \hyperlink{classCompactedDBG_ab2768195113d859b806e77b56c9b3c2f}{begin} () const |
| 67 |
\begin{DoxyCompactList}\small\item\em Create an constant iterator to the first unitig of the Compacted de Bruijn graph (unitigs are N\+OT sorted lexicographically). \end{DoxyCompactList}\item |
| 68 |
\hyperlink{classCompactedDBG_af4a6df70628f698d9a2ee843b5359883}{iterator} \hyperlink{classCompactedDBG_ad8629de8e7d29ba9bca59c1179b1f88f}{end} () |
| 69 |
\begin{DoxyCompactList}\small\item\em Create an iterator to the \char`\"{}past-\/the-\/last\char`\"{} unitig of the Compacted de Bruijn graph (unitigs are N\+OT sorted lexicographically). \end{DoxyCompactList}\item |
| 70 |
\hyperlink{classCompactedDBG_a7725fc78ad52227df1f70d9b8f44622c}{const\+\_\+iterator} \hyperlink{classCompactedDBG_a9145ad4ca08f9be984cb85a1ab6477f3}{end} () const |
| 71 |
\begin{DoxyCompactList}\small\item\em Create a constant iterator to the \char`\"{}past-\/the-\/last\char`\"{} unitig of the Compacted de Bruijn graph (unitigs are N\+OT sorted lexicographically). \end{DoxyCompactList}\item |
| 72 |
size\+\_\+t \hyperlink{classCompactedDBG_a9f10000ce74e3b3cc6e9cc394cbaba3c}{length} () const |
| 73 |
\begin{DoxyCompactList}\small\item\em Return the sum of the unitigs length. \end{DoxyCompactList}\item |
| 74 |
bool \hyperlink{classCompactedDBG_a5c2e72fe85306aa4ac190ae9b3e9b3a7}{is\+Invalid} () const |
| 75 |
\begin{DoxyCompactList}\small\item\em Return a boolean indicating if the graph is invalid (wrong input parameters/files, error occurring during a method, etc.). \end{DoxyCompactList}\item |
| 76 |
int \hyperlink{classCompactedDBG_adbc36fa6e978151d41b259d09443cf97}{getK} () const |
| 77 |
\begin{DoxyCompactList}\small\item\em Return the length of k-\/mers of the graph. \end{DoxyCompactList}\item |
| 78 |
size\+\_\+t \hyperlink{classCompactedDBG_ad0c9c06a0d88cd230eabf889900ecd17}{size} () const |
| 79 |
\begin{DoxyCompactList}\small\item\em Return the number of unitigs in the graph. \end{DoxyCompactList}\item |
| 80 |
G $\ast$ \hyperlink{classCompactedDBG_a5d1471d870115ea46f86e5543fb02f9a}{get\+Data} () |
| 81 |
\begin{DoxyCompactList}\small\item\em Return a pointer to the graph data. \end{DoxyCompactList}\item |
| 82 |
const G $\ast$ \hyperlink{classCompactedDBG_a36e0f2f8e4f46b4da147550a45bb4247}{get\+Data} () const |
| 83 |
\begin{DoxyCompactList}\small\item\em Return a constant pointer to the graph data. \end{DoxyCompactList}\end{DoxyCompactItemize} |
| 84 |
|
| 85 |
|
| 86 |
\subsection{Detailed Description} |
| 87 |
\subsubsection*{template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$\newline |
| 88 |
class Compacted\+D\+B\+G$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$} |
| 89 |
|
| 90 |
Represent a Compacted de Bruijn graph. |
| 91 |
|
| 92 |
The two template parameters of this class corresponds to the type of data to associate with the unitigs of the graph (unitig data) and the type of data to associate with the graph (graph data). If no template parameters are specified or if the types are void, no data are associated with the unitigs nor the graph and no memory will be allocated for such data. |
| 93 |
\begin{DoxyCode} |
| 94 |
\hyperlink{classCompactedDBG}{CompactedDBG<>} cdbg\_1; \textcolor{comment}{// No unitig data, no graph data} |
| 95 |
\hyperlink{classCompactedDBG}{CompactedDBG<void>} cdbg\_2; \textcolor{comment}{// Equivalent to previous notation} |
| 96 |
\hyperlink{classCompactedDBG}{CompactedDBG<void, void>} cdbg\_3; \textcolor{comment}{// Equivalent to previous notation} |
| 97 |
\hyperlink{classCompactedDBG}{CompactedDBG<MyUnitigData>} cdbg\_4; \textcolor{comment}{// An object of type MyUnitigData will be |
| 98 |
associated with each unitig, no graph data} |
| 99 |
\hyperlink{classCompactedDBG}{CompactedDBG<MyUnitigData, void>} cdbg\_5; \textcolor{comment}{// Equivalent to previous notation} |
| 100 |
\hyperlink{classCompactedDBG}{CompactedDBG<void, MyGraphData>} cdbg\_6; \textcolor{comment}{// No unitig data, an object of type |
| 101 |
MyGraphData will be associated with the graph} |
| 102 |
\hyperlink{classCompactedDBG}{CompactedDBG<MyUnitigData, MyGraphData>} cdbg\_7; \textcolor{comment}{// Unitig data of |
| 103 |
type MyUnitigData for each unitig, graph data of type MyGraphData} |
| 104 |
\end{DoxyCode} |
| 105 |
If data are to be associated with the unitigs, these data must be wrapped into a class that inherits from the abstract class \hyperlink{classCDBG__Data__t}{C\+D\+B\+G\+\_\+\+Data\+\_\+t}, such as in\+: |
| 106 |
\begin{DoxyCode} |
| 107 |
\textcolor{keyword}{class }MyUnitigData : \textcolor{keyword}{public} \hyperlink{classCDBG__Data__t}{CDBG\_Data\_t}<MyUnitigData> \{ ... \}; |
| 108 |
\hyperlink{classCompactedDBG}{CompactedDBG<MyUnitigData>} cdbg; |
| 109 |
\end{DoxyCode} |
| 110 |
Because \hyperlink{classCDBG__Data__t}{C\+D\+B\+G\+\_\+\+Data\+\_\+t} is an abstract class, all the methods from the base class (\hyperlink{classCDBG__Data__t}{C\+D\+B\+G\+\_\+\+Data\+\_\+t}) must be implemented in your wrapper (the derived class, aka My\+Unitig\+Data in this example). I\+M\+P\+O\+R\+T\+A\+NT\+: If you do not implement those methods in your class, default ones that have no effect will be applied. |
| 111 |
|
| 112 |
\subsection{Member Typedef Documentation} |
| 113 |
\mbox{\Hypertarget{classCompactedDBG_a7725fc78ad52227df1f70d9b8f44622c}\label{classCompactedDBG_a7725fc78ad52227df1f70d9b8f44622c}} |
| 114 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!const\+\_\+iterator@{const\+\_\+iterator}} |
| 115 |
\index{const\+\_\+iterator@{const\+\_\+iterator}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 116 |
\subsubsection{\texorpdfstring{const\+\_\+iterator}{const\_iterator}} |
| 117 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 118 |
typedef \hyperlink{classunitigIterator}{unitig\+Iterator}$<$U, G, true$>$ \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::\hyperlink{classCompactedDBG_a7725fc78ad52227df1f70d9b8f44622c}{const\+\_\+iterator}} |
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
A constant iterator for the unitigs of the graph. |
| 123 |
|
| 124 |
No specific order is assumed. \mbox{\Hypertarget{classCompactedDBG_af4a6df70628f698d9a2ee843b5359883}\label{classCompactedDBG_af4a6df70628f698d9a2ee843b5359883}} |
| 125 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!iterator@{iterator}} |
| 126 |
\index{iterator@{iterator}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 127 |
\subsubsection{\texorpdfstring{iterator}{iterator}} |
| 128 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 129 |
typedef \hyperlink{classunitigIterator}{unitig\+Iterator}$<$U, G, false$>$ \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::\hyperlink{classCompactedDBG_af4a6df70628f698d9a2ee843b5359883}{iterator}} |
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
An iterator for the unitigs of the graph. |
| 134 |
|
| 135 |
No specific order is assumed. |
| 136 |
|
| 137 |
\subsection{Constructor \& Destructor Documentation} |
| 138 |
\mbox{\Hypertarget{classCompactedDBG_ad6584f016b02651312c69ac444349bfe}\label{classCompactedDBG_ad6584f016b02651312c69ac444349bfe}} |
| 139 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 140 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 141 |
\subsubsection{\texorpdfstring{Compacted\+D\+B\+G()}{CompactedDBG()}\hspace{0.1cm}{\footnotesize\ttfamily [1/3]}} |
| 142 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 143 |
\hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::\hyperlink{classCompactedDBG}{Compacted\+D\+BG} (\begin{DoxyParamCaption}\item[{const int}]{kmer\+\_\+length = {\ttfamily 31}, }\item[{const int}]{minimizer\+\_\+length = {\ttfamily 23} }\end{DoxyParamCaption})} |
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
Constructor (set up an empty compacted d\+BG). |
| 148 |
|
| 149 |
|
| 150 |
\begin{DoxyParams}{Parameters} |
| 151 |
{\em kmer\+\_\+length} & is the length k of k-\/mers used in the graph (each unitig is of length at least k). \\ |
| 152 |
\hline |
| 153 |
{\em minimizer\+\_\+length} & is the length g of minimizers (g $<$ k) used in the graph. \\ |
| 154 |
\hline |
| 155 |
\end{DoxyParams} |
| 156 |
\mbox{\Hypertarget{classCompactedDBG_a84fbb8da0cf47e8cdf9cb60fb2eab0f0}\label{classCompactedDBG_a84fbb8da0cf47e8cdf9cb60fb2eab0f0}} |
| 157 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 158 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 159 |
\subsubsection{\texorpdfstring{Compacted\+D\+B\+G()}{CompactedDBG()}\hspace{0.1cm}{\footnotesize\ttfamily [2/3]}} |
| 160 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 161 |
\hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::\hyperlink{classCompactedDBG}{Compacted\+D\+BG} (\begin{DoxyParamCaption}\item[{const \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$ \&}]{o }\end{DoxyParamCaption})} |
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
Copy constructor (copy a compacted de Bruijn graph). |
| 166 |
|
| 167 |
This function is expensive in terms of time and memory as the content of a compacted de Bruijn graph is copied. After the call to this function, the same graph exists twice in memory. |
| 168 |
\begin{DoxyParams}{Parameters} |
| 169 |
{\em o} & is a constant reference to the compacted de Bruijn graph to copy. \\ |
| 170 |
\hline |
| 171 |
\end{DoxyParams} |
| 172 |
\mbox{\Hypertarget{classCompactedDBG_ac93c3355910670b8244741b22baca929}\label{classCompactedDBG_ac93c3355910670b8244741b22baca929}} |
| 173 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 174 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 175 |
\subsubsection{\texorpdfstring{Compacted\+D\+B\+G()}{CompactedDBG()}\hspace{0.1cm}{\footnotesize\ttfamily [3/3]}} |
| 176 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 177 |
\hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::\hyperlink{classCompactedDBG}{Compacted\+D\+BG} (\begin{DoxyParamCaption}\item[{\hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$ \&\&}]{o }\end{DoxyParamCaption})} |
| 178 |
|
| 179 |
|
| 180 |
|
| 181 |
Move constructor (move a compacted de Bruijn graph). |
| 182 |
|
| 183 |
The content of o is moved (\char`\"{}transfered\char`\"{}) to a new compacted de Bruijn graph. The compacted de Bruijn graph referenced by o will be empty after the call to this constructor. |
| 184 |
\begin{DoxyParams}{Parameters} |
| 185 |
{\em o} & is a reference on a reference to the compacted de Bruijn graph to move. \\ |
| 186 |
\hline |
| 187 |
\end{DoxyParams} |
| 188 |
|
| 189 |
|
| 190 |
\subsection{Member Function Documentation} |
| 191 |
\mbox{\Hypertarget{classCompactedDBG_a3c884106eb285d837918ddf53ca422bf}\label{classCompactedDBG_a3c884106eb285d837918ddf53ca422bf}} |
| 192 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!add@{add}} |
| 193 |
\index{add@{add}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 194 |
\subsubsection{\texorpdfstring{add()}{add()}} |
| 195 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 196 |
bool \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::add (\begin{DoxyParamCaption}\item[{const string \&}]{seq, }\item[{const bool}]{verbose = {\ttfamily false} }\end{DoxyParamCaption})} |
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
Add a sequence to the Compacted de Bruijn graph. |
| 201 |
|
| 202 |
Non-\/\{A,C,G,T\} characters such as Ns are discarded. The function automatically breaks the sequence into unitig(s). Those unitigs can be stored as the reverse-\/complement of the input sequence. |
| 203 |
\begin{DoxyParams}{Parameters} |
| 204 |
{\em seq} & is a string containing the sequence to insert. \\ |
| 205 |
\hline |
| 206 |
{\em verbose} & is a boolean indicating if information messages must be printed during the function execution. \\ |
| 207 |
\hline |
| 208 |
\end{DoxyParams} |
| 209 |
\begin{DoxyReturn}{Returns} |
| 210 |
a boolean indicating if the sequence was successfully inserted in the graph. |
| 211 |
\end{DoxyReturn} |
| 212 |
\mbox{\Hypertarget{classCompactedDBG_aafac845b848ae5cf79f1f818db6c2ecc}\label{classCompactedDBG_aafac845b848ae5cf79f1f818db6c2ecc}} |
| 213 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!begin@{begin}} |
| 214 |
\index{begin@{begin}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 215 |
\subsubsection{\texorpdfstring{begin()}{begin()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}} |
| 216 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 217 |
\hyperlink{classCompactedDBG_af4a6df70628f698d9a2ee843b5359883}{iterator} \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::begin (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})} |
| 218 |
|
| 219 |
|
| 220 |
|
| 221 |
Create an iterator to the first unitig of the Compacted de Bruijn graph (unitigs are N\+OT sorted lexicographically). |
| 222 |
|
| 223 |
\begin{DoxyReturn}{Returns} |
| 224 |
an iterator to the first unitig of the graph. |
| 225 |
\end{DoxyReturn} |
| 226 |
\mbox{\Hypertarget{classCompactedDBG_ab2768195113d859b806e77b56c9b3c2f}\label{classCompactedDBG_ab2768195113d859b806e77b56c9b3c2f}} |
| 227 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!begin@{begin}} |
| 228 |
\index{begin@{begin}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 229 |
\subsubsection{\texorpdfstring{begin()}{begin()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}} |
| 230 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 231 |
\hyperlink{classCompactedDBG_a7725fc78ad52227df1f70d9b8f44622c}{const\+\_\+iterator} \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::begin (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const} |
| 232 |
|
| 233 |
|
| 234 |
|
| 235 |
Create an constant iterator to the first unitig of the Compacted de Bruijn graph (unitigs are N\+OT sorted lexicographically). |
| 236 |
|
| 237 |
\begin{DoxyReturn}{Returns} |
| 238 |
a constant iterator to the first unitig of the graph. |
| 239 |
\end{DoxyReturn} |
| 240 |
\mbox{\Hypertarget{classCompactedDBG_a6021ad2fe7b11998b886bc5fd9e1a4ba}\label{classCompactedDBG_a6021ad2fe7b11998b886bc5fd9e1a4ba}} |
| 241 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!build@{build}} |
| 242 |
\index{build@{build}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 243 |
\subsubsection{\texorpdfstring{build()}{build()}} |
| 244 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 245 |
bool \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::build (\begin{DoxyParamCaption}\item[{\hyperlink{structCDBG__Build__opt}{C\+D\+B\+G\+\_\+\+Build\+\_\+opt} \&}]{opt }\end{DoxyParamCaption})} |
| 246 |
|
| 247 |
|
| 248 |
|
| 249 |
Build the Compacted de Bruijn graph. |
| 250 |
|
| 251 |
|
| 252 |
\begin{DoxyParams}{Parameters} |
| 253 |
{\em opt} & is a structure from which the members are parameters of this function. See \hyperlink{structCDBG__Build__opt}{C\+D\+B\+G\+\_\+\+Build\+\_\+opt}. \\ |
| 254 |
\hline |
| 255 |
\end{DoxyParams} |
| 256 |
\begin{DoxyReturn}{Returns} |
| 257 |
boolean indicating if the graph has been built successfully. |
| 258 |
\end{DoxyReturn} |
| 259 |
\mbox{\Hypertarget{classCompactedDBG_ad8629de8e7d29ba9bca59c1179b1f88f}\label{classCompactedDBG_ad8629de8e7d29ba9bca59c1179b1f88f}} |
| 260 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!end@{end}} |
| 261 |
\index{end@{end}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 262 |
\subsubsection{\texorpdfstring{end()}{end()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}} |
| 263 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 264 |
\hyperlink{classCompactedDBG_af4a6df70628f698d9a2ee843b5359883}{iterator} \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::end (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})} |
| 265 |
|
| 266 |
|
| 267 |
|
| 268 |
Create an iterator to the \char`\"{}past-\/the-\/last\char`\"{} unitig of the Compacted de Bruijn graph (unitigs are N\+OT sorted lexicographically). |
| 269 |
|
| 270 |
\begin{DoxyReturn}{Returns} |
| 271 |
an iterator to the \char`\"{}past-\/the-\/last\char`\"{} unitig of the graph. |
| 272 |
\end{DoxyReturn} |
| 273 |
\mbox{\Hypertarget{classCompactedDBG_a9145ad4ca08f9be984cb85a1ab6477f3}\label{classCompactedDBG_a9145ad4ca08f9be984cb85a1ab6477f3}} |
| 274 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!end@{end}} |
| 275 |
\index{end@{end}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 276 |
\subsubsection{\texorpdfstring{end()}{end()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}} |
| 277 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 278 |
\hyperlink{classCompactedDBG_a7725fc78ad52227df1f70d9b8f44622c}{const\+\_\+iterator} \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::end (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const} |
| 279 |
|
| 280 |
|
| 281 |
|
| 282 |
Create a constant iterator to the \char`\"{}past-\/the-\/last\char`\"{} unitig of the Compacted de Bruijn graph (unitigs are N\+OT sorted lexicographically). |
| 283 |
|
| 284 |
\begin{DoxyReturn}{Returns} |
| 285 |
a constant iterator to the \char`\"{}past-\/the-\/last\char`\"{} unitig of the graph. |
| 286 |
\end{DoxyReturn} |
| 287 |
\mbox{\Hypertarget{classCompactedDBG_ad7c880affe4d79ec249f9384da1d3d65}\label{classCompactedDBG_ad7c880affe4d79ec249f9384da1d3d65}} |
| 288 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!find@{find}} |
| 289 |
\index{find@{find}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 290 |
\subsubsection{\texorpdfstring{find()}{find()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}} |
| 291 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 292 |
\hyperlink{classUnitigMap}{Unitig\+Map}$<$U, G$>$ \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::find (\begin{DoxyParamCaption}\item[{const \hyperlink{classKmer}{Kmer} \&}]{km, }\item[{const bool}]{extremities\+\_\+only = {\ttfamily false} }\end{DoxyParamCaption})} |
| 293 |
|
| 294 |
|
| 295 |
|
| 296 |
Find the unitig containing the queried k-\/mer in the Compacted de Bruijn graph. |
| 297 |
|
| 298 |
|
| 299 |
\begin{DoxyParams}{Parameters} |
| 300 |
{\em km} & is the queried k-\/mer (see \hyperlink{classKmer}{Kmer} class). It does not need to be a canonical k-\/mer. \\ |
| 301 |
\hline |
| 302 |
{\em extremities\+\_\+only} & is a boolean indicating if the k-\/mer must be searched only in the unitig heads and tails (extremities\+\_\+only = true). By default, the k-\/mer is searched everywhere (extremities\+\_\+only = false) but is is slightly slower than looking only in the unitig heads and tails. \\ |
| 303 |
\hline |
| 304 |
\end{DoxyParams} |
| 305 |
\begin{DoxyReturn}{Returns} |
| 306 |
Unitig\+Map$<$\+U, G$>$ object containing the k-\/mer mapping information to the unitig containing the queried k-\/mer (if present). If the queried k-\/mer is not found, \hyperlink{structUnitigMapBase_ade629940b2611494dbf233cb1144da80}{Unitig\+Map\+::is\+Empty} = true (see \hyperlink{classUnitigMap}{Unitig\+Map} class). |
| 307 |
\end{DoxyReturn} |
| 308 |
\mbox{\Hypertarget{classCompactedDBG_acca2582e9bf7abd1f2fdd15223d5b80a}\label{classCompactedDBG_acca2582e9bf7abd1f2fdd15223d5b80a}} |
| 309 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!find@{find}} |
| 310 |
\index{find@{find}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 311 |
\subsubsection{\texorpdfstring{find()}{find()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}} |
| 312 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 313 |
\hyperlink{CompactedDBG_8hpp_a631369597e56604279ba89a211c14fd0}{const\+\_\+\+Unitig\+Map}$<$U, G$>$ \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::find (\begin{DoxyParamCaption}\item[{const \hyperlink{classKmer}{Kmer} \&}]{km, }\item[{const bool}]{extremities\+\_\+only = {\ttfamily false} }\end{DoxyParamCaption}) const} |
| 314 |
|
| 315 |
|
| 316 |
|
| 317 |
Find the unitig containing the queried k-\/mer in the Compacted de Bruijn graph. |
| 318 |
|
| 319 |
|
| 320 |
\begin{DoxyParams}{Parameters} |
| 321 |
{\em km} & is the queried k-\/mer (see \hyperlink{classKmer}{Kmer} class). It does not need to be a canonical k-\/mer. \\ |
| 322 |
\hline |
| 323 |
{\em extremities\+\_\+only} & is a boolean indicating if the k-\/mer must be searched only in the unitig heads and tails (extremities\+\_\+only = true). By default, the k-\/mer is searched everywhere (extremities\+\_\+only = false) but is is slightly slower than looking only in the unitig heads and tails. \\ |
| 324 |
\hline |
| 325 |
\end{DoxyParams} |
| 326 |
\begin{DoxyReturn}{Returns} |
| 327 |
const\+\_\+\+Unitig\+Map$<$\+U, G$>$ object containing the k-\/mer mapping information to the unitig having the queried k-\/mer (if present). If the k-\/mer is not found, \hyperlink{structUnitigMapBase_ade629940b2611494dbf233cb1144da80}{const\+\_\+\+Unitig\+Map\+::is\+Empty} = true (see \hyperlink{classUnitigMap}{Unitig\+Map} class). |
| 328 |
\end{DoxyReturn} |
| 329 |
\mbox{\Hypertarget{classCompactedDBG_ac28279d78c552001464ac76587359445}\label{classCompactedDBG_ac28279d78c552001464ac76587359445}} |
| 330 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!find\+Unitig@{find\+Unitig}} |
| 331 |
\index{find\+Unitig@{find\+Unitig}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 332 |
\subsubsection{\texorpdfstring{find\+Unitig()}{findUnitig()}} |
| 333 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 334 |
\hyperlink{classUnitigMap}{Unitig\+Map}$<$U, G$>$ \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::find\+Unitig (\begin{DoxyParamCaption}\item[{const char $\ast$}]{s, }\item[{const size\+\_\+t}]{pos, }\item[{const size\+\_\+t}]{len }\end{DoxyParamCaption})} |
| 335 |
|
| 336 |
|
| 337 |
|
| 338 |
Find the unitig containing the k-\/mer starting at a given position in a query sequence and extends the mapping (if the k-\/mer is found, the function extends the mapping from the k-\/mer as long as the query sequence and the unitig matches). |
| 339 |
|
| 340 |
|
| 341 |
\begin{DoxyParams}{Parameters} |
| 342 |
{\em s} & is a pointer to an array of character containing the sequence to query. \\ |
| 343 |
\hline |
| 344 |
{\em pos} & is the position of the first k-\/mer to find in the sequence to query. \\ |
| 345 |
\hline |
| 346 |
{\em len} & is the length of s. \\ |
| 347 |
\hline |
| 348 |
\end{DoxyParams} |
| 349 |
\begin{DoxyReturn}{Returns} |
| 350 |
Unitig\+Map$<$\+U, G$>$ object containing the mapping information to the unitig having the queried k-\/mer (if present). If the k-\/mer is found, the function extends the mapping from the k-\/mer as long as the query sequence and the unitig matches (um.\+len $>$= 1). |
| 351 |
\end{DoxyReturn} |
| 352 |
\mbox{\Hypertarget{classCompactedDBG_a5d1471d870115ea46f86e5543fb02f9a}\label{classCompactedDBG_a5d1471d870115ea46f86e5543fb02f9a}} |
| 353 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!get\+Data@{get\+Data}} |
| 354 |
\index{get\+Data@{get\+Data}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 355 |
\subsubsection{\texorpdfstring{get\+Data()}{getData()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}} |
| 356 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 357 |
G$\ast$ \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::get\+Data (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}} |
| 358 |
|
| 359 |
|
| 360 |
|
| 361 |
Return a pointer to the graph data. |
| 362 |
|
| 363 |
Pointer is nullptr if type of graph data is void. \begin{DoxyReturn}{Returns} |
| 364 |
A pointer to the graph data. Pointer is nullptr if type of graph data is void. |
| 365 |
\end{DoxyReturn} |
| 366 |
\mbox{\Hypertarget{classCompactedDBG_a36e0f2f8e4f46b4da147550a45bb4247}\label{classCompactedDBG_a36e0f2f8e4f46b4da147550a45bb4247}} |
| 367 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!get\+Data@{get\+Data}} |
| 368 |
\index{get\+Data@{get\+Data}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 369 |
\subsubsection{\texorpdfstring{get\+Data()}{getData()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}} |
| 370 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 371 |
const G$\ast$ \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::get\+Data (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}} |
| 372 |
|
| 373 |
|
| 374 |
|
| 375 |
Return a constant pointer to the graph data. |
| 376 |
|
| 377 |
Pointer is nullptr if type of graph data is void. \begin{DoxyReturn}{Returns} |
| 378 |
A constant pointer to the graph data. Pointer is nullptr if type of graph data is void. |
| 379 |
\end{DoxyReturn} |
| 380 |
\mbox{\Hypertarget{classCompactedDBG_adbc36fa6e978151d41b259d09443cf97}\label{classCompactedDBG_adbc36fa6e978151d41b259d09443cf97}} |
| 381 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!getK@{getK}} |
| 382 |
\index{getK@{getK}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 383 |
\subsubsection{\texorpdfstring{get\+K()}{getK()}} |
| 384 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 385 |
int \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::getK (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}} |
| 386 |
|
| 387 |
|
| 388 |
|
| 389 |
Return the length of k-\/mers of the graph. |
| 390 |
|
| 391 |
\begin{DoxyReturn}{Returns} |
| 392 |
Length of k-\/mers of the graph. |
| 393 |
\end{DoxyReturn} |
| 394 |
\mbox{\Hypertarget{classCompactedDBG_a5c2e72fe85306aa4ac190ae9b3e9b3a7}\label{classCompactedDBG_a5c2e72fe85306aa4ac190ae9b3e9b3a7}} |
| 395 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!is\+Invalid@{is\+Invalid}} |
| 396 |
\index{is\+Invalid@{is\+Invalid}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 397 |
\subsubsection{\texorpdfstring{is\+Invalid()}{isInvalid()}} |
| 398 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 399 |
bool \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::is\+Invalid (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}} |
| 400 |
|
| 401 |
|
| 402 |
|
| 403 |
Return a boolean indicating if the graph is invalid (wrong input parameters/files, error occurring during a method, etc.). |
| 404 |
|
| 405 |
\begin{DoxyReturn}{Returns} |
| 406 |
A boolean indicating if the graph is invalid. |
| 407 |
\end{DoxyReturn} |
| 408 |
\mbox{\Hypertarget{classCompactedDBG_a9f10000ce74e3b3cc6e9cc394cbaba3c}\label{classCompactedDBG_a9f10000ce74e3b3cc6e9cc394cbaba3c}} |
| 409 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!length@{length}} |
| 410 |
\index{length@{length}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 411 |
\subsubsection{\texorpdfstring{length()}{length()}} |
| 412 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 413 |
size\+\_\+t \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::length (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const} |
| 414 |
|
| 415 |
|
| 416 |
|
| 417 |
Return the sum of the unitigs length. |
| 418 |
|
| 419 |
\begin{DoxyReturn}{Returns} |
| 420 |
An integer which corresponds to the sum of the unitigs length. |
| 421 |
\end{DoxyReturn} |
| 422 |
\mbox{\Hypertarget{classCompactedDBG_a936c3dc0ecc4c8aa28fd5b4dedd1746a}\label{classCompactedDBG_a936c3dc0ecc4c8aa28fd5b4dedd1746a}} |
| 423 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!merge@{merge}} |
| 424 |
\index{merge@{merge}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 425 |
\subsubsection{\texorpdfstring{merge()}{merge()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}} |
| 426 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 427 |
bool \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::merge (\begin{DoxyParamCaption}\item[{const \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$ \&}]{o, }\item[{const size\+\_\+t}]{nb\+\_\+threads = {\ttfamily 1}, }\item[{const bool}]{verbose = {\ttfamily false} }\end{DoxyParamCaption})} |
| 428 |
|
| 429 |
|
| 430 |
|
| 431 |
Merge a compacted de Bruijn graph. |
| 432 |
|
| 433 |
After merging, all unitigs of o have been added to and compacted with the current compacted de Bruijn graph (this). If the unitigs of o had data of type \char`\"{}\+My\+Unitig\+Data\char`\"{} associated, they have been added to the current compacted de Bruijn graph using the functions of the class My\+Unitig\+Data which are also present in its base class C\+D\+B\+G\+\_\+\+Data\+\_\+t$<$\+My\+Unitig\+Data$>$. Note that if multiple compacted de Bruijn graphs have to be merged, it is more efficient to call \hyperlink{classCompactedDBG_a936c3dc0ecc4c8aa28fd5b4dedd1746a}{Compacted\+D\+B\+G\+::merge} with a vector of \hyperlink{classCompactedDBG}{Compacted\+D\+BG} as input. |
| 434 |
\begin{DoxyParams}{Parameters} |
| 435 |
{\em o} & is a constant reference to the compacted de Bruijn graph to merge. \\ |
| 436 |
\hline |
| 437 |
{\em nb\+\_\+threads} & is an integer indicating how many threads can be used during the merging. \\ |
| 438 |
\hline |
| 439 |
{\em verbose} & is a boolean indicating if information messages must be printed during the execution of the function. \\ |
| 440 |
\hline |
| 441 |
\end{DoxyParams} |
| 442 |
\begin{DoxyReturn}{Returns} |
| 443 |
a boolean indicating if the graph has been successfully merged. |
| 444 |
\end{DoxyReturn} |
| 445 |
\mbox{\Hypertarget{classCompactedDBG_ad71daf96811e96c97be70762d1cba7d8}\label{classCompactedDBG_ad71daf96811e96c97be70762d1cba7d8}} |
| 446 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!merge@{merge}} |
| 447 |
\index{merge@{merge}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 448 |
\subsubsection{\texorpdfstring{merge()}{merge()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}} |
| 449 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 450 |
bool \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::merge (\begin{DoxyParamCaption}\item[{const vector$<$ \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$ $>$ \&}]{v, }\item[{const size\+\_\+t}]{nb\+\_\+threads = {\ttfamily 1}, }\item[{const bool}]{verbose = {\ttfamily false} }\end{DoxyParamCaption})} |
| 451 |
|
| 452 |
|
| 453 |
|
| 454 |
Merge multiple compacted de Bruijn graphs. |
| 455 |
|
| 456 |
After merging, all unitigs of the compacted de Bruijn graphs have been added to and compacted with the current compacted de Bruijn graph (this). If the unitigs had data of type \char`\"{}\+My\+Unitig\+Data\char`\"{} associated, they have been added to the current compacted de Bruijn graph using the functions of the class My\+Unitig\+Data which are also present in its base class C\+C\+D\+B\+G\+\_\+\+Data\+\_\+t$<$\+My\+Unitig\+Data$>$. |
| 457 |
\begin{DoxyParams}{Parameters} |
| 458 |
{\em v} & is a constant reference to a vector of colored and compacted de Bruijn graphs to merge. \\ |
| 459 |
\hline |
| 460 |
{\em nb\+\_\+threads} & is an integer indicating how many threads can be used during the merging. \\ |
| 461 |
\hline |
| 462 |
{\em verbose} & is a boolean indicating if information messages must be printed during the execution of the function. \\ |
| 463 |
\hline |
| 464 |
\end{DoxyParams} |
| 465 |
\begin{DoxyReturn}{Returns} |
| 466 |
a boolean indicating if the graphs have been successfully merged. |
| 467 |
\end{DoxyReturn} |
| 468 |
\mbox{\Hypertarget{classCompactedDBG_ae3039c04c5f7234281f4e8c04fffd0bc}\label{classCompactedDBG_ae3039c04c5f7234281f4e8c04fffd0bc}} |
| 469 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!operator"!=@{operator"!=}} |
| 470 |
\index{operator"!=@{operator"!=}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 471 |
\subsubsection{\texorpdfstring{operator"!=()}{operator!=()}} |
| 472 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 473 |
bool \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::operator!= (\begin{DoxyParamCaption}\item[{const \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$ \&}]{o }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}} |
| 474 |
|
| 475 |
|
| 476 |
|
| 477 |
Inequality operator. |
| 478 |
|
| 479 |
\begin{DoxyReturn}{Returns} |
| 480 |
a boolean indicating if two compacted de Bruijn graphs have different unitigs (does not compare the data associated with the unitigs). |
| 481 |
\end{DoxyReturn} |
| 482 |
\mbox{\Hypertarget{classCompactedDBG_af689cbbbe9328a0bd4f80eb8c0547e3c}\label{classCompactedDBG_af689cbbbe9328a0bd4f80eb8c0547e3c}} |
| 483 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!operator+=@{operator+=}} |
| 484 |
\index{operator+=@{operator+=}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 485 |
\subsubsection{\texorpdfstring{operator+=()}{operator+=()}} |
| 486 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 487 |
\hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$U, G$>$\& \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::operator+= (\begin{DoxyParamCaption}\item[{const \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$ \&}]{o }\end{DoxyParamCaption})} |
| 488 |
|
| 489 |
|
| 490 |
|
| 491 |
Addition assignment operator (merge a compacted de Bruijn graph). |
| 492 |
|
| 493 |
After merging, all unitigs of o have been added to and compacted with the current compacted de Bruijn graph (this). If the unitigs of o had data of type \char`\"{}\+My\+Unitig\+Data\char`\"{} associated, they have been added to the current compacted de Bruijn graph using the functions of the class My\+Unitig\+Data which are in base class C\+D\+B\+G\+\_\+\+Data\+\_\+t$<$\+My\+Unitig\+Data$>$. This function is similar to \hyperlink{classCompactedDBG_a936c3dc0ecc4c8aa28fd5b4dedd1746a}{Compacted\+D\+B\+G\+::merge} except that it uses only one thread while \hyperlink{classCompactedDBG_a936c3dc0ecc4c8aa28fd5b4dedd1746a}{Compacted\+D\+B\+G\+::merge} can work with multiple threads (number of threads provided as a parameter). Note that if multiple compacted de Bruijn graphs have to be merged, it is more efficient to call \hyperlink{classCompactedDBG_a936c3dc0ecc4c8aa28fd5b4dedd1746a}{Compacted\+D\+B\+G\+::merge} with a vector of \hyperlink{classCompactedDBG}{Compacted\+D\+BG} as input. |
| 494 |
\begin{DoxyParams}{Parameters} |
| 495 |
{\em o} & is a constant reference to the compacted de Bruijn graph to merge. \\ |
| 496 |
\hline |
| 497 |
\end{DoxyParams} |
| 498 |
\begin{DoxyReturn}{Returns} |
| 499 |
a reference to the current compacted de Bruijn after merging. |
| 500 |
\end{DoxyReturn} |
| 501 |
\mbox{\Hypertarget{classCompactedDBG_a0c7e50223cdcb178110aa49e983e4ec2}\label{classCompactedDBG_a0c7e50223cdcb178110aa49e983e4ec2}} |
| 502 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!operator=@{operator=}} |
| 503 |
\index{operator=@{operator=}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 504 |
\subsubsection{\texorpdfstring{operator=()}{operator=()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}} |
| 505 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 506 |
\hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$U, G$>$\& \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::operator= (\begin{DoxyParamCaption}\item[{const \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$ \&}]{o }\end{DoxyParamCaption})} |
| 507 |
|
| 508 |
|
| 509 |
|
| 510 |
Copy assignment operator (copy a compacted de Bruijn graph). |
| 511 |
|
| 512 |
This function is expensive in terms of time and memory as the content of a compacted de Bruijn graph is copied. After the call to this function, the same graph exists twice in memory. |
| 513 |
\begin{DoxyParams}{Parameters} |
| 514 |
{\em o} & is a constant reference to the compacted de Bruijn graph to copy. \\ |
| 515 |
\hline |
| 516 |
\end{DoxyParams} |
| 517 |
\begin{DoxyReturn}{Returns} |
| 518 |
a reference to the compacted de Bruijn which is the copy. |
| 519 |
\end{DoxyReturn} |
| 520 |
\mbox{\Hypertarget{classCompactedDBG_a191a4cce892c9a6ceea7bfdfbf41e494}\label{classCompactedDBG_a191a4cce892c9a6ceea7bfdfbf41e494}} |
| 521 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!operator=@{operator=}} |
| 522 |
\index{operator=@{operator=}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 523 |
\subsubsection{\texorpdfstring{operator=()}{operator=()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}} |
| 524 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 525 |
\hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$U, G$>$\& \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::operator= (\begin{DoxyParamCaption}\item[{\hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$ \&\&}]{o }\end{DoxyParamCaption})} |
| 526 |
|
| 527 |
|
| 528 |
|
| 529 |
Move assignment operator (move a compacted de Bruijn graph). |
| 530 |
|
| 531 |
The content of o is moved (\char`\"{}transfered\char`\"{}) to a new compacted de Bruijn graph. The compacted de Bruijn graph referenced by o will be empty after the call to this operator. |
| 532 |
\begin{DoxyParams}{Parameters} |
| 533 |
{\em o} & is a reference on a reference to the compacted de Bruijn graph to move. \\ |
| 534 |
\hline |
| 535 |
\end{DoxyParams} |
| 536 |
\begin{DoxyReturn}{Returns} |
| 537 |
a reference to the compacted de Bruijn which has (and owns) the content of o. |
| 538 |
\end{DoxyReturn} |
| 539 |
\mbox{\Hypertarget{classCompactedDBG_a59b674356405c7c80bfbd7751d0d1aff}\label{classCompactedDBG_a59b674356405c7c80bfbd7751d0d1aff}} |
| 540 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!operator==@{operator==}} |
| 541 |
\index{operator==@{operator==}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 542 |
\subsubsection{\texorpdfstring{operator==()}{operator==()}} |
| 543 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 544 |
bool \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::operator== (\begin{DoxyParamCaption}\item[{const \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$ \&}]{o }\end{DoxyParamCaption}) const} |
| 545 |
|
| 546 |
|
| 547 |
|
| 548 |
Equality operator. |
| 549 |
|
| 550 |
\begin{DoxyReturn}{Returns} |
| 551 |
a boolean indicating if two compacted de Bruijn graphs have the same unitigs (does not compare the data associated with the unitigs). |
| 552 |
\end{DoxyReturn} |
| 553 |
\mbox{\Hypertarget{classCompactedDBG_a0930cb63a158caa70f4dcd425a088fb4}\label{classCompactedDBG_a0930cb63a158caa70f4dcd425a088fb4}} |
| 554 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!read@{read}} |
| 555 |
\index{read@{read}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 556 |
\subsubsection{\texorpdfstring{read()}{read()}} |
| 557 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 558 |
bool \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::read (\begin{DoxyParamCaption}\item[{const string \&}]{input\+\_\+filename, }\item[{const bool}]{verbose = {\ttfamily false} }\end{DoxyParamCaption})} |
| 559 |
|
| 560 |
|
| 561 |
|
| 562 |
Read a Compacted de Bruijn graph from disk (G\+F\+A1 or F\+A\+S\+TA format). |
| 563 |
|
| 564 |
If the input G\+FA file has not been built by Bifrost or if the input is F\+A\+S\+TA format, it is your responsibility to make sure that the graph is correctly compacted and to set correctly the parameters of the graph (such as the k-\/mer length) before the call to this function. |
| 565 |
\begin{DoxyParams}{Parameters} |
| 566 |
{\em input\+\_\+filename} & is a string containing the name of the file from which the graph will be read. \\ |
| 567 |
\hline |
| 568 |
{\em verbose} & is a boolean indicating if information messages must be printed during the function execution. \\ |
| 569 |
\hline |
| 570 |
\end{DoxyParams} |
| 571 |
\begin{DoxyReturn}{Returns} |
| 572 |
boolean indicating if the graph has been read successfully. |
| 573 |
\end{DoxyReturn} |
| 574 |
\mbox{\Hypertarget{classCompactedDBG_aa8e901dc6f1cf0adcc91608a6b34e999}\label{classCompactedDBG_aa8e901dc6f1cf0adcc91608a6b34e999}} |
| 575 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!remove@{remove}} |
| 576 |
\index{remove@{remove}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 577 |
\subsubsection{\texorpdfstring{remove()}{remove()}} |
| 578 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 579 |
bool \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::remove (\begin{DoxyParamCaption}\item[{const \hyperlink{CompactedDBG_8hpp_a631369597e56604279ba89a211c14fd0}{const\+\_\+\+Unitig\+Map}$<$ U, G $>$ \&}]{um, }\item[{const bool}]{verbose = {\ttfamily false} }\end{DoxyParamCaption})} |
| 580 |
|
| 581 |
|
| 582 |
|
| 583 |
Remove a unitig from the Compacted de Bruijn graph. |
| 584 |
|
| 585 |
|
| 586 |
\begin{DoxyParams}{Parameters} |
| 587 |
{\em um} & is a \hyperlink{classUnitigMap}{Unitig\+Map} object containing the information of the unitig to remove from the graph. \\ |
| 588 |
\hline |
| 589 |
{\em verbose} & is a boolean indicating if information messages must be printed during the execution of the function. \\ |
| 590 |
\hline |
| 591 |
\end{DoxyParams} |
| 592 |
\begin{DoxyReturn}{Returns} |
| 593 |
a boolean indicating if the unitig was successfully removed from the graph. |
| 594 |
\end{DoxyReturn} |
| 595 |
\mbox{\Hypertarget{classCompactedDBG_af27c7bcb26d05371bdcc12075b4724eb}\label{classCompactedDBG_af27c7bcb26d05371bdcc12075b4724eb}} |
| 596 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!search\+Sequence@{search\+Sequence}} |
| 597 |
\index{search\+Sequence@{search\+Sequence}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 598 |
\subsubsection{\texorpdfstring{search\+Sequence()}{searchSequence()}} |
| 599 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 600 |
vector$<$pair$<$size\+\_\+t, \hyperlink{classUnitigMap}{Unitig\+Map}$<$U, G$>$ $>$ $>$ \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::search\+Sequence (\begin{DoxyParamCaption}\item[{const string \&}]{seq, }\item[{const bool}]{exact, }\item[{const bool}]{insertion, }\item[{const bool}]{deletion, }\item[{const bool}]{substitution, }\item[{const bool}]{or\+\_\+exclusive\+\_\+match = {\ttfamily false} }\end{DoxyParamCaption}) const} |
| 601 |
|
| 602 |
|
| 603 |
|
| 604 |
Performs exact and/or inexact search of the k-\/mers of a sequence query in the Compacted de Bruijn graph. |
| 605 |
|
| 606 |
|
| 607 |
\begin{DoxyParams}{Parameters} |
| 608 |
{\em seq} & is a string representing the sequence to be searched (the query). \\ |
| 609 |
\hline |
| 610 |
{\em exact} & is a boolean indicating if the exact k-\/mers of string seq must be searched. \\ |
| 611 |
\hline |
| 612 |
{\em insertion} & is a boolean indicating if the inexact k-\/mers of string seq, with one insertion, must be searched. \\ |
| 613 |
\hline |
| 614 |
{\em deletion} & is a boolean indicating if the inexact k-\/mers of string seq, with one deletion, must be searched. \\ |
| 615 |
\hline |
| 616 |
{\em substitution} & is a boolean indicating if the inexact k-\/mers of string seq, with one substitution, must be searched. \\ |
| 617 |
\hline |
| 618 |
{\em or\+\_\+exclusive\+\_\+match} & is a boolean indicating to N\+OT search for the inexact k-\/mers at any given position in seq if the exact corresponding k-\/mer at that position is found in the graph. This option might lead to a substantial running time decrease. \\ |
| 619 |
\hline |
| 620 |
\end{DoxyParams} |
| 621 |
\begin{DoxyReturn}{Returns} |
| 622 |
a vector of pair$<$size\+\_\+t, Unitig\+Map$<$\+U, G$>$$>$ objects. Each such pair has two elements\+: the position of the k-\/mer match in sequence seq and the corresponding k-\/mer match in the graph. Note that no information is given on whether the match is exact or inexact, nor on what edit operation makes the match to be inexact or at what position the edit operation takes place. |
| 623 |
\end{DoxyReturn} |
| 624 |
\mbox{\Hypertarget{classCompactedDBG_aa8c574863bed96d2a9415cbe3d154de6}\label{classCompactedDBG_aa8c574863bed96d2a9415cbe3d154de6}} |
| 625 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!simplify@{simplify}} |
| 626 |
\index{simplify@{simplify}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 627 |
\subsubsection{\texorpdfstring{simplify()}{simplify()}} |
| 628 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 629 |
bool \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::simplify (\begin{DoxyParamCaption}\item[{const bool}]{delete\+\_\+short\+\_\+isolated\+\_\+unitigs = {\ttfamily true}, }\item[{const bool}]{clip\+\_\+short\+\_\+tips = {\ttfamily true}, }\item[{const bool}]{verbose = {\ttfamily false} }\end{DoxyParamCaption})} |
| 630 |
|
| 631 |
|
| 632 |
|
| 633 |
Simplify the Compacted de Bruijn graph\+: clip short ($<$ 2k length) tips and/or delete short ($<$ 2k length) isolated unitigs. |
| 634 |
|
| 635 |
|
| 636 |
\begin{DoxyParams}{Parameters} |
| 637 |
{\em delete\+\_\+short\+\_\+isolated\+\_\+unitigs} & is a boolean indicating short isolated unitigs must be removed. \\ |
| 638 |
\hline |
| 639 |
{\em clip\+\_\+short\+\_\+tips} & is a boolean indicating short tips must be clipped. \\ |
| 640 |
\hline |
| 641 |
{\em verbose} & is a boolean indicating if information messages must be printed during the function execution. \\ |
| 642 |
\hline |
| 643 |
\end{DoxyParams} |
| 644 |
\begin{DoxyReturn}{Returns} |
| 645 |
boolean indicating if the graph has been simplified successfully. |
| 646 |
\end{DoxyReturn} |
| 647 |
\mbox{\Hypertarget{classCompactedDBG_ad0c9c06a0d88cd230eabf889900ecd17}\label{classCompactedDBG_ad0c9c06a0d88cd230eabf889900ecd17}} |
| 648 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!size@{size}} |
| 649 |
\index{size@{size}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 650 |
\subsubsection{\texorpdfstring{size()}{size()}} |
| 651 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 652 |
size\+\_\+t \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::size (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}} |
| 653 |
|
| 654 |
|
| 655 |
|
| 656 |
Return the number of unitigs in the graph. |
| 657 |
|
| 658 |
\begin{DoxyReturn}{Returns} |
| 659 |
Number of unitigs in the graph. |
| 660 |
\end{DoxyReturn} |
| 661 |
\mbox{\Hypertarget{classCompactedDBG_a15707e8624006d247e58e4c67718a677}\label{classCompactedDBG_a15707e8624006d247e58e4c67718a677}} |
| 662 |
\index{Compacted\+D\+BG@{Compacted\+D\+BG}!write@{write}} |
| 663 |
\index{write@{write}!Compacted\+D\+BG@{Compacted\+D\+BG}} |
| 664 |
\subsubsection{\texorpdfstring{write()}{write()}} |
| 665 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void$>$ \\ |
| 666 |
bool \hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t $>$\+::write (\begin{DoxyParamCaption}\item[{const string \&}]{output\+\_\+filename, }\item[{const size\+\_\+t}]{nb\+\_\+threads = {\ttfamily 1}, }\item[{const bool}]{G\+F\+A\+\_\+output = {\ttfamily true}, }\item[{const bool}]{verbose = {\ttfamily false} }\end{DoxyParamCaption}) const} |
| 667 |
|
| 668 |
|
| 669 |
|
| 670 |
Write the Compacted de Bruijn graph to disk (G\+F\+A1 format). |
| 671 |
|
| 672 |
|
| 673 |
\begin{DoxyParams}{Parameters} |
| 674 |
{\em output\+\_\+filename} & is a string containing the name of the file in which the graph will be written. \\ |
| 675 |
\hline |
| 676 |
{\em nb\+\_\+threads} & is a number indicating how many threads can be used to write the graph to disk. \\ |
| 677 |
\hline |
| 678 |
{\em G\+F\+A\+\_\+output} & indicates if the graph will be output in G\+FA format (true) or F\+A\+S\+TA format (false). \\ |
| 679 |
\hline |
| 680 |
{\em verbose} & is a boolean indicating if information messages must be printed during the function execution. \\ |
| 681 |
\hline |
| 682 |
\end{DoxyParams} |
| 683 |
\begin{DoxyReturn}{Returns} |
| 684 |
boolean indicating if the graph has been written successfully. |
| 685 |
\end{DoxyReturn} |
| 686 |
|
| 687 |
|
| 688 |
The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize} |
| 689 |
\item |
| 690 |
src/\hyperlink{CompactedDBG_8hpp}{Compacted\+D\+B\+G.\+hpp}\end{DoxyCompactItemize} |