Debian Codegraph @

ext/bifrost/doc/doxygen/latex/classUnitigMap.tex

raw
1 \hypertarget{classUnitigMap}{}\section{Unitig\+Map$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$ Class Template Reference}
2 \label{classUnitigMap}\index{Unitig\+Map$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$@{Unitig\+Map$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$}}
3
4
5 Contain all the information for the mapping of a k-\/mer or a sequence to a unitig of a Compacted de Bruijn graph.
6
7
8
9
10 Inherits \hyperlink{structUnitigMapBase}{Unitig\+Map\+Base}.
11
12 \subsection*{Public Member Functions}
13 \begin{DoxyCompactItemize}
14 \item
15 \hyperlink{classUnitigMap_a43574c45ceb02111d2bc959e6ed4e717}{Unitig\+Map} (size\+\_\+t length=1, Compacted\+D\+B\+G\+\_\+ptr\+\_\+t cdbg\+\_\+=nullptr)
16 \begin{DoxyCompactList}\small\item\em \hyperlink{classUnitigMap}{Unitig\+Map} constructor. \end{DoxyCompactList}\item
17 \hyperlink{classUnitigMap_a4f632adfd48f44d685c6a311a4197a91}{Unitig\+Map} (const size\+\_\+t start, const size\+\_\+t length, const size\+\_\+t unitig\+\_\+sz, const bool \hyperlink{structUnitigMapBase_a6de6f4a1ccef220e84d097bc3ef0fb3f}{strand})
18 \begin{DoxyCompactList}\small\item\em \hyperlink{classUnitigMap}{Unitig\+Map} constructor. \end{DoxyCompactList}\item
19 bool \hyperlink{classUnitigMap_a73899498315ff5533c25b1c0fb1ca413}{operator==} (const \hyperlink{classUnitigMap}{Unitig\+Map} \&o) const
20 \begin{DoxyCompactList}\small\item\em Equality operator\+: check if two \hyperlink{classUnitigMap}{Unitig\+Map} are the same. \end{DoxyCompactList}\item
21 bool \hyperlink{classUnitigMap_a777e853a143be31ff69dd9f54f33d426}{operator!=} (const \hyperlink{classUnitigMap}{Unitig\+Map} \&o) const
22 \begin{DoxyCompactList}\small\item\em Inequality operator\+: check if two \hyperlink{classUnitigMap}{Unitig\+Map} are different. \end{DoxyCompactList}\item
23 string \hyperlink{classUnitigMap_a8a90644ef5f8d4326af8ad2f6438e1dd}{mapped\+Sequence\+To\+String} () const
24 \begin{DoxyCompactList}\small\item\em Create a string containing the sequence corresponding to the mapping. \end{DoxyCompactList}\item
25 string \hyperlink{classUnitigMap_a90ab8fbec322df04053b9998c68d2070}{reference\+Unitig\+To\+String} () const
26 \begin{DoxyCompactList}\small\item\em Create a string containing the sequence of the reference unitig used the mapping. \end{DoxyCompactList}\item
27 size\+\_\+t \hyperlink{classUnitigMap_a2a80f5a0f55391c57b4f4d83400e30a2}{lcp} (const char $\ast$s, const size\+\_\+t pos\+\_\+s=0, const size\+\_\+t pos\+\_\+um\+\_\+seq=0, const bool um\+\_\+reversed=false) const
28 \begin{DoxyCompactList}\small\item\em Compute the length of the longest common prefix between a given sequence and the reference unitig used in the mapping. \end{DoxyCompactList}\item
29 \hyperlink{classKmer}{Kmer} \hyperlink{classUnitigMap_a594c471e4d757273feef67cf4358bafd}{get\+Unitig\+Head} () const
30 \begin{DoxyCompactList}\small\item\em Get the head k-\/mer of the reference unitig used for the mapping. \end{DoxyCompactList}\item
31 \hyperlink{classKmer}{Kmer} \hyperlink{classUnitigMap_a584488d223cb2f5b00d72342305c6d0e}{get\+Unitig\+Tail} () const
32 \begin{DoxyCompactList}\small\item\em Get the tail k-\/mer of the reference unitig used for the mapping. \end{DoxyCompactList}\item
33 \hyperlink{classKmer}{Kmer} \hyperlink{classUnitigMap_a7c8a9b1e16fa29d716550fc93de9d4d7}{get\+Unitig\+Kmer} (const size\+\_\+t pos) const
34 \begin{DoxyCompactList}\small\item\em Get the k-\/mer starting at position pos in the reference unitig used for the mapping. \end{DoxyCompactList}\item
35 \hyperlink{classKmer}{Kmer} \hyperlink{classUnitigMap_a18a15516e136f787dc70db5030698548}{get\+Mapped\+Head} () const
36 \begin{DoxyCompactList}\small\item\em Get the head k-\/mer of the mapped sequence. \end{DoxyCompactList}\item
37 \hyperlink{classKmer}{Kmer} \hyperlink{classUnitigMap_ab06f79aa91086a8d73ea8200f5cc64d4}{get\+Mapped\+Tail} () const
38 \begin{DoxyCompactList}\small\item\em Get the tail k-\/mer of the mapped sequence. \end{DoxyCompactList}\item
39 \hyperlink{classKmer}{Kmer} \hyperlink{classUnitigMap_a9ac111e6783b3344f0db407d05f1b966}{get\+Mapped\+Kmer} (const size\+\_\+t pos) const
40 \begin{DoxyCompactList}\small\item\em Get the k-\/mer starting at position pos in the mapped sequence. \end{DoxyCompactList}\item
41 \hyperlink{classUnitigMap}{Unitig\+Map}$<$ U, G, is\+\_\+const $>$ \hyperlink{classUnitigMap_af12f1d4e121afe7fe8324ddcdc9c6402}{get\+Kmer\+Mapping} (const size\+\_\+t pos) const
42 \begin{DoxyCompactList}\small\item\em Create a new \hyperlink{classUnitigMap}{Unitig\+Map} object which is the mapping of a k-\/mer on a reference unitig. \end{DoxyCompactList}\item
43 Unitig\+\_\+data\+\_\+ptr\+\_\+t \hyperlink{classUnitigMap_a0c40fd1ba2df6af9a0c55b7963e41493}{get\+Data} () const
44 \begin{DoxyCompactList}\small\item\em Get a pointer to the data associated with the reference unitig used in the mapping. \end{DoxyCompactList}\item
45 \hyperlink{classBackwardCDBG}{Unitig\+Map\+\_\+\+BW} \hyperlink{classUnitigMap_adfae0ba9c3675fd5612a4b71b46a25c6}{get\+Predecessors} () const
46 \begin{DoxyCompactList}\small\item\em Create a Unitig\+Map\+\_\+\+BW object that can create iterators (through \hyperlink{classBackwardCDBG_a134d64079a7acdcad727637647691897}{Unitig\+Map\+\_\+\+B\+W\+::begin()} and \hyperlink{classBackwardCDBG_a7b8f84da503325c3e3e2b5b024ed6997}{Unitig\+Map\+\_\+\+B\+W\+::end()}) over the predecessors of the reference unitig used in the mapping. \end{DoxyCompactList}\item
47 \hyperlink{classForwardCDBG}{Unitig\+Map\+\_\+\+FW} \hyperlink{classUnitigMap_a5b2894e0f78e6b003d06a03a49904b59}{get\+Successors} () const
48 \begin{DoxyCompactList}\small\item\em Create a Unitig\+Map\+\_\+\+FW object that can create iterators (through \hyperlink{classForwardCDBG_a18fd34268b50793eabde303c3e9ed5db}{Unitig\+Map\+\_\+\+F\+W\+::begin()} and \hyperlink{classForwardCDBG_a83c2f8b929022aa77289177ec5ce7869}{Unitig\+Map\+\_\+\+F\+W\+::end()}) over the successors of the reference unitig used in the mapping. \end{DoxyCompactList}\item
49 Compacted\+D\+B\+G\+\_\+ptr\+\_\+t \hyperlink{classUnitigMap_ab6bc6b4a479bef4a7cb9c72806679f5e}{get\+Graph} () const
50 \begin{DoxyCompactList}\small\item\em Get a pointer to the \hyperlink{classCompactedDBG}{Compacted\+D\+BG} containing the reference unitig used in the mapping. \end{DoxyCompactList}\end{DoxyCompactItemize}
51 \subsection*{Additional Inherited Members}
52
53
54 \subsection{Detailed Description}
55 \subsubsection*{template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void, bool is\+\_\+const = false$>$\newline
56 class Unitig\+Map$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$}
57
58 Contain all the information for the mapping of a k-\/mer or a sequence to a unitig of a Compacted de Bruijn graph.
59
60 A \hyperlink{classUnitigMap}{Unitig\+Map} object has 3 template parameters\+: the type of data associated with the unitigs of the graph, the type of data associated with the graph and a boolean indicating if this is a constant \hyperlink{classUnitigMap}{Unitig\+Map} (const\+\_\+\+Unitig\+Map) or not. A const\+\_\+\+Unitig\+Map can be modified but you can\textquotesingle{}t modify the \hyperlink{classCompactedDBG}{Compacted\+D\+BG} you can access using Unitig\+Map\+::get\+Compacted\+D\+BG. The unitig data and graph data types should be the same as the ones used for the \hyperlink{classCompactedDBG}{Compacted\+D\+BG}.
61 \begin{DoxyCode}
62 \hyperlink{classUnitigMap}{UnitigMap<>} um\_1; \textcolor{comment}{// No unitig data, no graph data, NOT constant and its content IS NOT constant}
63 \hyperlink{classUnitigMap}{UnitigMap<void, void, false>} um\_2; \textcolor{comment}{// Equivalent to previous notation}
64 \textcolor{keyword}{const} \hyperlink{classUnitigMap}{UnitigMap<>} um\_3; \textcolor{comment}{// No unitig data, no graph data, constant BUT its content IS NOT
65 constant}
66 \hyperlink{classUnitigMap}{UnitigMap<void, void, true>} um\_4; \textcolor{comment}{// No unitig data, no graph data, NOT constant
67 BUT its content IS constant}
68 \textcolor{keyword}{const} \hyperlink{classUnitigMap}{UnitigMap<void, void, true>} um\_5; \textcolor{comment}{// No unitig data, no graph data,
69 constant AND its content IS constant}
70 \hyperlink{classUnitigMap}{UnitigMap<myUnitigData, myGraphData>} um\_6; \textcolor{comment}{// Unitig data of type
71 myUnitigData for each unitig, graph data of type myGraphData, not constant}
72
73 \hyperlink{classCompactedDBG}{CompactedDBG<>}* cdbg\_ptr\_1 = um\_1.\hyperlink{classUnitigMap_ab6bc6b4a479bef4a7cb9c72806679f5e}{getGraph}(); \textcolor{comment}{// Associated CompactedDBG can be
74 modified from the UnitigMap}
75 \hyperlink{classCompactedDBG}{CompactedDBG<>}* cdbg\_ptr\_2 = um\_2.\hyperlink{classUnitigMap_ab6bc6b4a479bef4a7cb9c72806679f5e}{getGraph}(); \textcolor{comment}{// Associated CompactedDBG can be
76 modified from the UnitigMap}
77 \hyperlink{classCompactedDBG}{CompactedDBG<>}* cdbg\_ptr\_3 = um\_3.\hyperlink{classUnitigMap_ab6bc6b4a479bef4a7cb9c72806679f5e}{getGraph}(); \textcolor{comment}{// Associated CompactedDBG can be
78 modified from the UnitigMap}
79 \textcolor{keyword}{const} \hyperlink{classCompactedDBG}{CompactedDBG<>}* cdbg\_ptr\_4 = um\_4.\hyperlink{classUnitigMap_ab6bc6b4a479bef4a7cb9c72806679f5e}{getGraph}(); \textcolor{comment}{// Associated CompactedDBG cannot
80 be modified from the UnitigMap}
81 \textcolor{keyword}{const} \hyperlink{classCompactedDBG}{CompactedDBG<>}* cdbg\_ptr\_5 = um\_5.\hyperlink{classUnitigMap_ab6bc6b4a479bef4a7cb9c72806679f5e}{getGraph}(); \textcolor{comment}{// Associated CompactedDBG cannot
82 be modified from the UnitigMap}
83 \hyperlink{classCompactedDBG}{CompactedDBG<myUnitigData, myGraphData>}* cdbg\_ptr\_6 = um\_6.
84 \hyperlink{classUnitigMap_ab6bc6b4a479bef4a7cb9c72806679f5e}{getGraph}(); \textcolor{comment}{// Associated CompactedDBG can be modified from the UnitigMap}
85 \end{DoxyCode}
86
87
88 \subsection{Constructor \& Destructor Documentation}
89 \mbox{\Hypertarget{classUnitigMap_a43574c45ceb02111d2bc959e6ed4e717}\label{classUnitigMap_a43574c45ceb02111d2bc959e6ed4e717}}
90 \index{Unitig\+Map@{Unitig\+Map}!Unitig\+Map@{Unitig\+Map}}
91 \index{Unitig\+Map@{Unitig\+Map}!Unitig\+Map@{Unitig\+Map}}
92 \subsubsection{\texorpdfstring{Unitig\+Map()}{UnitigMap()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
93 {\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void, bool is\+\_\+const = false$>$ \\
94 \hyperlink{classUnitigMap}{Unitig\+Map}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$\+::\hyperlink{classUnitigMap}{Unitig\+Map} (\begin{DoxyParamCaption}\item[{size\+\_\+t}]{length = {\ttfamily 1}, }\item[{Compacted\+D\+B\+G\+\_\+ptr\+\_\+t}]{cdbg\+\_\+ = {\ttfamily nullptr} }\end{DoxyParamCaption})}
95
96
97
98 \hyperlink{classUnitigMap}{Unitig\+Map} constructor.
99
100
101 \begin{DoxyParams}{Parameters}
102 {\em length} & is the length of the mapping in k-\/mers (default is 1 k-\/mer). \\
103 \hline
104 {\em cdbg\+\_\+} & is a pointer to the \hyperlink{classCompactedDBG}{Compacted\+D\+BG} containing the reference unitig used for the mapping (default is nullptr). \\
105 \hline
106 \end{DoxyParams}
107 \begin{DoxyReturn}{Returns}
108 an empty \hyperlink{classUnitigMap}{Unitig\+Map}.
109 \end{DoxyReturn}
110 \mbox{\Hypertarget{classUnitigMap_a4f632adfd48f44d685c6a311a4197a91}\label{classUnitigMap_a4f632adfd48f44d685c6a311a4197a91}}
111 \index{Unitig\+Map@{Unitig\+Map}!Unitig\+Map@{Unitig\+Map}}
112 \index{Unitig\+Map@{Unitig\+Map}!Unitig\+Map@{Unitig\+Map}}
113 \subsubsection{\texorpdfstring{Unitig\+Map()}{UnitigMap()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
114 {\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void, bool is\+\_\+const = false$>$ \\
115 \hyperlink{classUnitigMap}{Unitig\+Map}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$\+::\hyperlink{classUnitigMap}{Unitig\+Map} (\begin{DoxyParamCaption}\item[{const size\+\_\+t}]{start, }\item[{const size\+\_\+t}]{length, }\item[{const size\+\_\+t}]{unitig\+\_\+sz, }\item[{const bool}]{strand }\end{DoxyParamCaption})}
116
117
118
119 \hyperlink{classUnitigMap}{Unitig\+Map} constructor.
120
121 This constructor is used to create temporary mappings and must not be used to extract information from the graph.
122 \begin{DoxyParams}{Parameters}
123 {\em start} & is the start position of the mapping (0-\/based distance) from the start of the reference unitig. \\
124 \hline
125 {\em length} & is the length of the mapping in k-\/mers. \\
126 \hline
127 {\em unitig\+\_\+sz} & is the length of the reference unitig used for the mapping. \\
128 \hline
129 {\em strand} & indicates if the mapped k-\/mer or sequence matches the forward strand (true) or the reverse-\/complement (false). \\
130 \hline
131 \end{DoxyParams}
132 \begin{DoxyReturn}{Returns}
133 a \hyperlink{classUnitigMap}{Unitig\+Map}.
134 \end{DoxyReturn}
135
136
137 \subsection{Member Function Documentation}
138 \mbox{\Hypertarget{classUnitigMap_a0c40fd1ba2df6af9a0c55b7963e41493}\label{classUnitigMap_a0c40fd1ba2df6af9a0c55b7963e41493}}
139 \index{Unitig\+Map@{Unitig\+Map}!get\+Data@{get\+Data}}
140 \index{get\+Data@{get\+Data}!Unitig\+Map@{Unitig\+Map}}
141 \subsubsection{\texorpdfstring{get\+Data()}{getData()}}
142 {\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void, bool is\+\_\+const = false$>$ \\
143 Unitig\+\_\+data\+\_\+ptr\+\_\+t \hyperlink{classUnitigMap}{Unitig\+Map}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$\+::get\+Data (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}
144
145
146
147 Get a pointer to the data associated with the reference unitig used in the mapping.
148
149 \begin{DoxyReturn}{Returns}
150 a pointer to the data associated with the reference unitig used in the mapping or a nullptr pointer if\+:
151 \begin{DoxyItemize}
152 \item there is no mapping (\hyperlink{structUnitigMapBase_ade629940b2611494dbf233cb1144da80}{Unitig\+Map\+::is\+Empty} = true)
153 \item there is no data associated with the unitigs (U = void). The returned pointer is constant if the \hyperlink{classUnitigMap}{Unitig\+Map} is constant (Unitig\+Map$<$\+U, G, true$>$).
154 \end{DoxyItemize}
155 \end{DoxyReturn}
156 \mbox{\Hypertarget{classUnitigMap_ab6bc6b4a479bef4a7cb9c72806679f5e}\label{classUnitigMap_ab6bc6b4a479bef4a7cb9c72806679f5e}}
157 \index{Unitig\+Map@{Unitig\+Map}!get\+Graph@{get\+Graph}}
158 \index{get\+Graph@{get\+Graph}!Unitig\+Map@{Unitig\+Map}}
159 \subsubsection{\texorpdfstring{get\+Graph()}{getGraph()}}
160 {\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void, bool is\+\_\+const = false$>$ \\
161 Compacted\+D\+B\+G\+\_\+ptr\+\_\+t \hyperlink{classUnitigMap}{Unitig\+Map}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$\+::get\+Graph (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}
162
163
164
165 Get a pointer to the \hyperlink{classCompactedDBG}{Compacted\+D\+BG} containing the reference unitig used in the mapping.
166
167 \begin{DoxyReturn}{Returns}
168 a pointer to the \hyperlink{classCompactedDBG}{Compacted\+D\+BG} containing the reference unitig used in the mapping. If the mapping is empty, a nullptr pointer is returned. The pointer is a constant pointer if the \hyperlink{classUnitigMap}{Unitig\+Map} is constant (Unitig\+Map$<$\+U, G, true$>$).
169 \end{DoxyReturn}
170 \mbox{\Hypertarget{classUnitigMap_af12f1d4e121afe7fe8324ddcdc9c6402}\label{classUnitigMap_af12f1d4e121afe7fe8324ddcdc9c6402}}
171 \index{Unitig\+Map@{Unitig\+Map}!get\+Kmer\+Mapping@{get\+Kmer\+Mapping}}
172 \index{get\+Kmer\+Mapping@{get\+Kmer\+Mapping}!Unitig\+Map@{Unitig\+Map}}
173 \subsubsection{\texorpdfstring{get\+Kmer\+Mapping()}{getKmerMapping()}}
174 {\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void, bool is\+\_\+const = false$>$ \\
175 \hyperlink{classUnitigMap}{Unitig\+Map}$<$U, G, is\+\_\+const$>$ \hyperlink{classUnitigMap}{Unitig\+Map}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$\+::get\+Kmer\+Mapping (\begin{DoxyParamCaption}\item[{const size\+\_\+t}]{pos }\end{DoxyParamCaption}) const}
176
177
178
179 Create a new \hyperlink{classUnitigMap}{Unitig\+Map} object which is the mapping of a k-\/mer on a reference unitig.
180
181
182 \begin{DoxyParams}{Parameters}
183 {\em pos} & is the start position of the k-\/mer to map in the reference unitig used for the current mapping. \\
184 \hline
185 \end{DoxyParams}
186 \begin{DoxyReturn}{Returns}
187 a \hyperlink{classUnitigMap}{Unitig\+Map} object which is the mapping.
188 \end{DoxyReturn}
189 \mbox{\Hypertarget{classUnitigMap_a18a15516e136f787dc70db5030698548}\label{classUnitigMap_a18a15516e136f787dc70db5030698548}}
190 \index{Unitig\+Map@{Unitig\+Map}!get\+Mapped\+Head@{get\+Mapped\+Head}}
191 \index{get\+Mapped\+Head@{get\+Mapped\+Head}!Unitig\+Map@{Unitig\+Map}}
192 \subsubsection{\texorpdfstring{get\+Mapped\+Head()}{getMappedHead()}}
193 {\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void, bool is\+\_\+const = false$>$ \\
194 \hyperlink{classKmer}{Kmer} \hyperlink{classUnitigMap}{Unitig\+Map}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$\+::get\+Mapped\+Head (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}
195
196
197
198 Get the head k-\/mer of the mapped sequence.
199
200 \begin{DoxyReturn}{Returns}
201 a \hyperlink{classKmer}{Kmer} object which is either the head k-\/mer of the mapped sequence or an empty k-\/mer if there is no mapping (\hyperlink{structUnitigMapBase_ade629940b2611494dbf233cb1144da80}{Unitig\+Map\+::is\+Empty} = true).
202 \end{DoxyReturn}
203 \mbox{\Hypertarget{classUnitigMap_a9ac111e6783b3344f0db407d05f1b966}\label{classUnitigMap_a9ac111e6783b3344f0db407d05f1b966}}
204 \index{Unitig\+Map@{Unitig\+Map}!get\+Mapped\+Kmer@{get\+Mapped\+Kmer}}
205 \index{get\+Mapped\+Kmer@{get\+Mapped\+Kmer}!Unitig\+Map@{Unitig\+Map}}
206 \subsubsection{\texorpdfstring{get\+Mapped\+Kmer()}{getMappedKmer()}}
207 {\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void, bool is\+\_\+const = false$>$ \\
208 \hyperlink{classKmer}{Kmer} \hyperlink{classUnitigMap}{Unitig\+Map}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$\+::get\+Mapped\+Kmer (\begin{DoxyParamCaption}\item[{const size\+\_\+t}]{pos }\end{DoxyParamCaption}) const}
209
210
211
212 Get the k-\/mer starting at position pos in the mapped sequence.
213
214
215 \begin{DoxyParams}{Parameters}
216 {\em pos} & is the start position of the k-\/mer to extract within the mapped sequence. \\
217 \hline
218 \end{DoxyParams}
219 \begin{DoxyReturn}{Returns}
220 a \hyperlink{classKmer}{Kmer} object which is either the k-\/mer starting at position pos in the mapped sequence or an empty k-\/mer if there is either no mapping (\hyperlink{structUnitigMapBase_ade629940b2611494dbf233cb1144da80}{Unitig\+Map\+::is\+Empty} = true) or the position is greater than length(unitig)-\/k.
221 \end{DoxyReturn}
222 \mbox{\Hypertarget{classUnitigMap_ab06f79aa91086a8d73ea8200f5cc64d4}\label{classUnitigMap_ab06f79aa91086a8d73ea8200f5cc64d4}}
223 \index{Unitig\+Map@{Unitig\+Map}!get\+Mapped\+Tail@{get\+Mapped\+Tail}}
224 \index{get\+Mapped\+Tail@{get\+Mapped\+Tail}!Unitig\+Map@{Unitig\+Map}}
225 \subsubsection{\texorpdfstring{get\+Mapped\+Tail()}{getMappedTail()}}
226 {\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void, bool is\+\_\+const = false$>$ \\
227 \hyperlink{classKmer}{Kmer} \hyperlink{classUnitigMap}{Unitig\+Map}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$\+::get\+Mapped\+Tail (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}
228
229
230
231 Get the tail k-\/mer of the mapped sequence.
232
233 \begin{DoxyReturn}{Returns}
234 a \hyperlink{classKmer}{Kmer} object which is either the tail k-\/mer of the mapped sequence or an empty k-\/mer if there is no mapping (\hyperlink{structUnitigMapBase_ade629940b2611494dbf233cb1144da80}{Unitig\+Map\+::is\+Empty} = true).
235 \end{DoxyReturn}
236 \mbox{\Hypertarget{classUnitigMap_adfae0ba9c3675fd5612a4b71b46a25c6}\label{classUnitigMap_adfae0ba9c3675fd5612a4b71b46a25c6}}
237 \index{Unitig\+Map@{Unitig\+Map}!get\+Predecessors@{get\+Predecessors}}
238 \index{get\+Predecessors@{get\+Predecessors}!Unitig\+Map@{Unitig\+Map}}
239 \subsubsection{\texorpdfstring{get\+Predecessors()}{getPredecessors()}}
240 {\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void, bool is\+\_\+const = false$>$ \\
241 \hyperlink{classBackwardCDBG}{Unitig\+Map\+\_\+\+BW} \hyperlink{classUnitigMap}{Unitig\+Map}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$\+::get\+Predecessors (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}
242
243
244
245 Create a Unitig\+Map\+\_\+\+BW object that can create iterators (through \hyperlink{classBackwardCDBG_a134d64079a7acdcad727637647691897}{Unitig\+Map\+\_\+\+B\+W\+::begin()} and \hyperlink{classBackwardCDBG_a7b8f84da503325c3e3e2b5b024ed6997}{Unitig\+Map\+\_\+\+B\+W\+::end()}) over the predecessors of the reference unitig used in the mapping.
246
247 \begin{DoxyReturn}{Returns}
248 a Unitig\+Map\+\_\+\+BW object that can create iterators (through \hyperlink{classBackwardCDBG_a134d64079a7acdcad727637647691897}{Unitig\+Map\+\_\+\+B\+W\+::begin()} and \hyperlink{classBackwardCDBG_a7b8f84da503325c3e3e2b5b024ed6997}{Unitig\+Map\+\_\+\+B\+W\+::end()}) over the predecessors of the reference unitig used in the mapping.
249 \end{DoxyReturn}
250 \mbox{\Hypertarget{classUnitigMap_a5b2894e0f78e6b003d06a03a49904b59}\label{classUnitigMap_a5b2894e0f78e6b003d06a03a49904b59}}
251 \index{Unitig\+Map@{Unitig\+Map}!get\+Successors@{get\+Successors}}
252 \index{get\+Successors@{get\+Successors}!Unitig\+Map@{Unitig\+Map}}
253 \subsubsection{\texorpdfstring{get\+Successors()}{getSuccessors()}}
254 {\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void, bool is\+\_\+const = false$>$ \\
255 \hyperlink{classForwardCDBG}{Unitig\+Map\+\_\+\+FW} \hyperlink{classUnitigMap}{Unitig\+Map}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$\+::get\+Successors (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}
256
257
258
259 Create a Unitig\+Map\+\_\+\+FW object that can create iterators (through \hyperlink{classForwardCDBG_a18fd34268b50793eabde303c3e9ed5db}{Unitig\+Map\+\_\+\+F\+W\+::begin()} and \hyperlink{classForwardCDBG_a83c2f8b929022aa77289177ec5ce7869}{Unitig\+Map\+\_\+\+F\+W\+::end()}) over the successors of the reference unitig used in the mapping.
260
261 \begin{DoxyReturn}{Returns}
262 a Unitig\+Map\+\_\+\+FW object that can create iterators (through \hyperlink{classForwardCDBG_a18fd34268b50793eabde303c3e9ed5db}{Unitig\+Map\+\_\+\+F\+W\+::begin()} and \hyperlink{classForwardCDBG_a83c2f8b929022aa77289177ec5ce7869}{Unitig\+Map\+\_\+\+F\+W\+::end()}) over the successors of the reference unitig used in the mapping.
263 \end{DoxyReturn}
264 \mbox{\Hypertarget{classUnitigMap_a594c471e4d757273feef67cf4358bafd}\label{classUnitigMap_a594c471e4d757273feef67cf4358bafd}}
265 \index{Unitig\+Map@{Unitig\+Map}!get\+Unitig\+Head@{get\+Unitig\+Head}}
266 \index{get\+Unitig\+Head@{get\+Unitig\+Head}!Unitig\+Map@{Unitig\+Map}}
267 \subsubsection{\texorpdfstring{get\+Unitig\+Head()}{getUnitigHead()}}
268 {\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void, bool is\+\_\+const = false$>$ \\
269 \hyperlink{classKmer}{Kmer} \hyperlink{classUnitigMap}{Unitig\+Map}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$\+::get\+Unitig\+Head (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}
270
271
272
273 Get the head k-\/mer of the reference unitig used for the mapping.
274
275 \begin{DoxyReturn}{Returns}
276 a \hyperlink{classKmer}{Kmer} object which is either the head k-\/mer of the mapped unitig or an empty k-\/mer if there is no mapping (\hyperlink{structUnitigMapBase_ade629940b2611494dbf233cb1144da80}{Unitig\+Map\+::is\+Empty} = true).
277 \end{DoxyReturn}
278 \mbox{\Hypertarget{classUnitigMap_a7c8a9b1e16fa29d716550fc93de9d4d7}\label{classUnitigMap_a7c8a9b1e16fa29d716550fc93de9d4d7}}
279 \index{Unitig\+Map@{Unitig\+Map}!get\+Unitig\+Kmer@{get\+Unitig\+Kmer}}
280 \index{get\+Unitig\+Kmer@{get\+Unitig\+Kmer}!Unitig\+Map@{Unitig\+Map}}
281 \subsubsection{\texorpdfstring{get\+Unitig\+Kmer()}{getUnitigKmer()}}
282 {\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void, bool is\+\_\+const = false$>$ \\
283 \hyperlink{classKmer}{Kmer} \hyperlink{classUnitigMap}{Unitig\+Map}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$\+::get\+Unitig\+Kmer (\begin{DoxyParamCaption}\item[{const size\+\_\+t}]{pos }\end{DoxyParamCaption}) const}
284
285
286
287 Get the k-\/mer starting at position pos in the reference unitig used for the mapping.
288
289
290 \begin{DoxyParams}{Parameters}
291 {\em pos} & is the start position of the k-\/mer to extract. \\
292 \hline
293 \end{DoxyParams}
294 \begin{DoxyReturn}{Returns}
295 a \hyperlink{classKmer}{Kmer} object which is either the k-\/mer starting at position pos in the mapped unitig or an empty k-\/mer if there is either no mapping (\hyperlink{structUnitigMapBase_ade629940b2611494dbf233cb1144da80}{Unitig\+Map\+::is\+Empty} = true) or the position is greater than length(unitig)-\/k.
296 \end{DoxyReturn}
297 \mbox{\Hypertarget{classUnitigMap_a584488d223cb2f5b00d72342305c6d0e}\label{classUnitigMap_a584488d223cb2f5b00d72342305c6d0e}}
298 \index{Unitig\+Map@{Unitig\+Map}!get\+Unitig\+Tail@{get\+Unitig\+Tail}}
299 \index{get\+Unitig\+Tail@{get\+Unitig\+Tail}!Unitig\+Map@{Unitig\+Map}}
300 \subsubsection{\texorpdfstring{get\+Unitig\+Tail()}{getUnitigTail()}}
301 {\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void, bool is\+\_\+const = false$>$ \\
302 \hyperlink{classKmer}{Kmer} \hyperlink{classUnitigMap}{Unitig\+Map}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$\+::get\+Unitig\+Tail (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}
303
304
305
306 Get the tail k-\/mer of the reference unitig used for the mapping.
307
308 \begin{DoxyReturn}{Returns}
309 a \hyperlink{classKmer}{Kmer} object which is either the tail k-\/mer of the mapped unitig or an empty k-\/mer if there is no mapping (\hyperlink{structUnitigMapBase_ade629940b2611494dbf233cb1144da80}{Unitig\+Map\+::is\+Empty} = true).
310 \end{DoxyReturn}
311 \mbox{\Hypertarget{classUnitigMap_a2a80f5a0f55391c57b4f4d83400e30a2}\label{classUnitigMap_a2a80f5a0f55391c57b4f4d83400e30a2}}
312 \index{Unitig\+Map@{Unitig\+Map}!lcp@{lcp}}
313 \index{lcp@{lcp}!Unitig\+Map@{Unitig\+Map}}
314 \subsubsection{\texorpdfstring{lcp()}{lcp()}}
315 {\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void, bool is\+\_\+const = false$>$ \\
316 size\+\_\+t \hyperlink{classUnitigMap}{Unitig\+Map}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$\+::lcp (\begin{DoxyParamCaption}\item[{const char $\ast$}]{s, }\item[{const size\+\_\+t}]{pos\+\_\+s = {\ttfamily 0}, }\item[{const size\+\_\+t}]{pos\+\_\+um\+\_\+seq = {\ttfamily 0}, }\item[{const bool}]{um\+\_\+reversed = {\ttfamily false} }\end{DoxyParamCaption}) const}
317
318
319
320 Compute the length of the longest common prefix between a given sequence and the reference unitig used in the mapping.
321
322
323 \begin{DoxyParams}{Parameters}
324 {\em s} & is a pointer to an array of characters representing the sequence from which the length of the longest common prefix must be computed. \\
325 \hline
326 {\em pos\+\_\+s} & is the start position in s from which the longest common prefix must be computed. \\
327 \hline
328 {\em pos\+\_\+um\+\_\+seq} & is the start position in the reference unitig of the mapping from which the longest common prefix must be computed. \\
329 \hline
330 {\em um\+\_\+reversed} & indicates if the longest common prefix must be computed from the reverse-\/complement of the reference unitig used in the mapping (true) or not (false). \\
331 \hline
332 \end{DoxyParams}
333 \begin{DoxyReturn}{Returns}
334 the length of the longest common prefix
335 \end{DoxyReturn}
336 \mbox{\Hypertarget{classUnitigMap_a8a90644ef5f8d4326af8ad2f6438e1dd}\label{classUnitigMap_a8a90644ef5f8d4326af8ad2f6438e1dd}}
337 \index{Unitig\+Map@{Unitig\+Map}!mapped\+Sequence\+To\+String@{mapped\+Sequence\+To\+String}}
338 \index{mapped\+Sequence\+To\+String@{mapped\+Sequence\+To\+String}!Unitig\+Map@{Unitig\+Map}}
339 \subsubsection{\texorpdfstring{mapped\+Sequence\+To\+String()}{mappedSequenceToString()}}
340 {\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void, bool is\+\_\+const = false$>$ \\
341 string \hyperlink{classUnitigMap}{Unitig\+Map}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$\+::mapped\+Sequence\+To\+String (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}
342
343
344
345 Create a string containing the sequence corresponding to the mapping.
346
347 \begin{DoxyReturn}{Returns}
348 a string containing the sequence corresponding to the mapping or an empty string if there is no mapping (\hyperlink{structUnitigMapBase_ade629940b2611494dbf233cb1144da80}{Unitig\+Map\+::is\+Empty} = true).
349 \end{DoxyReturn}
350 \mbox{\Hypertarget{classUnitigMap_a777e853a143be31ff69dd9f54f33d426}\label{classUnitigMap_a777e853a143be31ff69dd9f54f33d426}}
351 \index{Unitig\+Map@{Unitig\+Map}!operator"!=@{operator"!=}}
352 \index{operator"!=@{operator"!=}!Unitig\+Map@{Unitig\+Map}}
353 \subsubsection{\texorpdfstring{operator"!=()}{operator!=()}}
354 {\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void, bool is\+\_\+const = false$>$ \\
355 bool \hyperlink{classUnitigMap}{Unitig\+Map}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$\+::operator!= (\begin{DoxyParamCaption}\item[{const \hyperlink{classUnitigMap}{Unitig\+Map}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$ \&}]{o }\end{DoxyParamCaption}) const}
356
357
358
359 Inequality operator\+: check if two \hyperlink{classUnitigMap}{Unitig\+Map} are different.
360
361 \begin{DoxyReturn}{Returns}
362 a boolean indicating if the two \hyperlink{classUnitigMap}{Unitig\+Map} are different.
363 \end{DoxyReturn}
364 \mbox{\Hypertarget{classUnitigMap_a73899498315ff5533c25b1c0fb1ca413}\label{classUnitigMap_a73899498315ff5533c25b1c0fb1ca413}}
365 \index{Unitig\+Map@{Unitig\+Map}!operator==@{operator==}}
366 \index{operator==@{operator==}!Unitig\+Map@{Unitig\+Map}}
367 \subsubsection{\texorpdfstring{operator==()}{operator==()}}
368 {\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void, bool is\+\_\+const = false$>$ \\
369 bool \hyperlink{classUnitigMap}{Unitig\+Map}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$\+::operator== (\begin{DoxyParamCaption}\item[{const \hyperlink{classUnitigMap}{Unitig\+Map}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$ \&}]{o }\end{DoxyParamCaption}) const}
370
371
372
373 Equality operator\+: check if two \hyperlink{classUnitigMap}{Unitig\+Map} are the same.
374
375 \begin{DoxyReturn}{Returns}
376 a boolean indicating if two \hyperlink{classUnitigMap}{Unitig\+Map} are the same.
377 \end{DoxyReturn}
378 \mbox{\Hypertarget{classUnitigMap_a90ab8fbec322df04053b9998c68d2070}\label{classUnitigMap_a90ab8fbec322df04053b9998c68d2070}}
379 \index{Unitig\+Map@{Unitig\+Map}!reference\+Unitig\+To\+String@{reference\+Unitig\+To\+String}}
380 \index{reference\+Unitig\+To\+String@{reference\+Unitig\+To\+String}!Unitig\+Map@{Unitig\+Map}}
381 \subsubsection{\texorpdfstring{reference\+Unitig\+To\+String()}{referenceUnitigToString()}}
382 {\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void, typename Graph\+\_\+data\+\_\+t = void, bool is\+\_\+const = false$>$ \\
383 string \hyperlink{classUnitigMap}{Unitig\+Map}$<$ Unitig\+\_\+data\+\_\+t, Graph\+\_\+data\+\_\+t, is\+\_\+const $>$\+::reference\+Unitig\+To\+String (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}
384
385
386
387 Create a string containing the sequence of the reference unitig used the mapping.
388
389 \begin{DoxyReturn}{Returns}
390 a string containing the sequence of the reference unitig used the mapping or an empty string if there is no mapping (\hyperlink{structUnitigMapBase_ade629940b2611494dbf233cb1144da80}{Unitig\+Map\+::is\+Empty} = true).
391 \end{DoxyReturn}
392
393
394 The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
395 \item
396 src/\hyperlink{NeighborIterator_8hpp}{Neighbor\+Iterator.\+hpp}\item
397 src/\hyperlink{UnitigMap_8hpp}{Unitig\+Map.\+hpp}\end{DoxyCompactItemize}