| 1 |
\hypertarget{structUnitigMap}{}\section{Unitig\+Map$<$ T $>$ Struct Template Reference} |
| 2 |
\label{structUnitigMap}\index{Unitig\+Map$<$ T $>$@{Unitig\+Map$<$ T $>$}} |
| 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 |
\subsection*{Public Member Functions} |
| 9 |
\begin{DoxyCompactItemize} |
| 10 |
\item |
| 11 |
\hyperlink{structUnitigMap_a92f76aa50f372b1f251850509958cc55}{Unitig\+Map} (size\+\_\+t l=1) |
| 12 |
\begin{DoxyCompactList}\small\item\em \hyperlink{structUnitigMap}{Unitig\+Map} constructor. \end{DoxyCompactList}\item |
| 13 |
bool \hyperlink{structUnitigMap_af225db3c123c331f906de6cba96e4d07}{operator==} (const \hyperlink{structUnitigMap}{Unitig\+Map} \&o) |
| 14 |
\begin{DoxyCompactList}\small\item\em Check if two Unitig\+Maps are the same. \end{DoxyCompactList}\item |
| 15 |
bool \hyperlink{structUnitigMap_af662157cd6f019189170270637dc9ea1}{operator!=} (const \hyperlink{structUnitigMap}{Unitig\+Map} \&o) |
| 16 |
\begin{DoxyCompactList}\small\item\em Check if two Unitig\+Maps are different. \end{DoxyCompactList}\item |
| 17 |
string \hyperlink{structUnitigMap_a398ca4dd0e422ba08eaad9a11f15a3e3}{to\+String} () const |
| 18 |
\begin{DoxyCompactList}\small\item\em Return a string containing the sequence of the mapped unitig. \end{DoxyCompactList}\item |
| 19 |
string \hyperlink{structUnitigMap_a3c9fb88f7da7250f361d972678d5a17e}{reverse\+To\+String} () const |
| 20 |
\begin{DoxyCompactList}\small\item\em Return a string containing the reverse-\/complement sequence of the mapped unitig. \end{DoxyCompactList}\item |
| 21 |
Kmer \hyperlink{structUnitigMap_a0abb8766ed68fdade6aa6d9d5ea201f3}{get\+Head} () const |
| 22 |
\begin{DoxyCompactList}\small\item\em Return the head k-\/mer of the mapped unitig. \end{DoxyCompactList}\item |
| 23 |
Kmer \hyperlink{structUnitigMap_a1254c81e7d2541c5aa9cfd4e2ba9f021}{get\+Tail} () const |
| 24 |
\begin{DoxyCompactList}\small\item\em Return the tail k-\/mer of the mapped unitig. \end{DoxyCompactList}\item |
| 25 |
Kmer \hyperlink{structUnitigMap_a90042b7d8610cd1726b19c3a49e7be26}{get\+Kmer} (const size\+\_\+t pos) const |
| 26 |
\begin{DoxyCompactList}\small\item\em Return the k-\/mer starting at position pos in the mapped unitig. \end{DoxyCompactList}\item |
| 27 |
const T $\ast$ \hyperlink{structUnitigMap_a35643b0843f2b0ff5da8c2a40612c8fc}{get\+Data} () const |
| 28 |
\begin{DoxyCompactList}\small\item\em Return a pointer to the data associated with the mapped unitig. \end{DoxyCompactList}\item |
| 29 |
void \hyperlink{structUnitigMap_a1a300d64047cfab14783746c407fe41c}{set\+Data} (const T $\ast$const data) const |
| 30 |
\begin{DoxyCompactList}\small\item\em Set the data associated with a mapped unitig. \end{DoxyCompactList}\item |
| 31 |
void \hyperlink{structUnitigMap_ade45565864206eece29f34415347c2f9}{merge\+Data} (const \hyperlink{structUnitigMap}{Unitig\+Map}$<$ T $>$ \&um) |
| 32 |
\begin{DoxyCompactList}\small\item\em Merge the data of the mapped unitig with the data of another mapped unitig. \end{DoxyCompactList}\item |
| 33 |
\hyperlink{classUnitig}{Unitig}$<$ T $>$ \hyperlink{structUnitigMap_a3b3699727329217e346fadf2d8a987a6}{split\+Data} (const bool last\+\_\+split) |
| 34 |
\begin{DoxyCompactList}\small\item\em Create new data to associate with a new unitig which is a sub-\/unitig of the current mapped unitig. \end{DoxyCompactList}\item |
| 35 |
\hyperlink{classBackwardCDBG}{Backward\+C\+D\+BG}$<$ T, true $>$ \hyperlink{structUnitigMap_aed2e39718b72838f4cc813577898a926}{get\+Predecessors} () const |
| 36 |
\begin{DoxyCompactList}\small\item\em Return a constant \hyperlink{classBackwardCDBG}{Backward\+C\+D\+BG} object that can create iterators (through \hyperlink{classBackwardCDBG_ae7da438db925caebd02493ac7b1c01ab}{Backward\+C\+D\+B\+G\+::begin()} and \hyperlink{classBackwardCDBG_a898f45d400da7b0153644b5417b07657}{Backward\+C\+D\+B\+G\+::end()}) over the predecessors of the current mapped unitig. \end{DoxyCompactList}\item |
| 37 |
\hyperlink{classForwardCDBG}{Forward\+C\+D\+BG}$<$ T, true $>$ \hyperlink{structUnitigMap_a88005a00159b310711230733e16e2ae7}{get\+Successors} () const |
| 38 |
\begin{DoxyCompactList}\small\item\em Return a constant \hyperlink{classBackwardCDBG}{Backward\+C\+D\+BG} object that can create iterators (through \hyperlink{classBackwardCDBG_ae7da438db925caebd02493ac7b1c01ab}{Backward\+C\+D\+B\+G\+::begin()} and \hyperlink{classBackwardCDBG_a898f45d400da7b0153644b5417b07657}{Backward\+C\+D\+B\+G\+::end()}) over the successors of the current mapped unitig. \end{DoxyCompactList}\item |
| 39 |
\hyperlink{classBackwardCDBG}{Backward\+C\+D\+BG}$<$ T, false $>$ \hyperlink{structUnitigMap_af2bb9574c7a55bb0e8a564e89a1aa7c6}{get\+Predecessors} () |
| 40 |
\begin{DoxyCompactList}\small\item\em Return a \hyperlink{classBackwardCDBG}{Backward\+C\+D\+BG} object that can create iterators (through \hyperlink{classBackwardCDBG_ae7da438db925caebd02493ac7b1c01ab}{Backward\+C\+D\+B\+G\+::begin()} and \hyperlink{classBackwardCDBG_a898f45d400da7b0153644b5417b07657}{Backward\+C\+D\+B\+G\+::end()}) over the predecessors of the current mapped unitig. \end{DoxyCompactList}\item |
| 41 |
\hyperlink{classForwardCDBG}{Forward\+C\+D\+BG}$<$ T, false $>$ \hyperlink{structUnitigMap_a4892fdd7f02c0b132b0164460159df9e}{get\+Successors} () |
| 42 |
\begin{DoxyCompactList}\small\item\em Return a \hyperlink{classBackwardCDBG}{Backward\+C\+D\+BG} object that can create iterators (through \hyperlink{classBackwardCDBG_ae7da438db925caebd02493ac7b1c01ab}{Backward\+C\+D\+B\+G\+::begin()} and \hyperlink{classBackwardCDBG_a898f45d400da7b0153644b5417b07657}{Backward\+C\+D\+B\+G\+::end()}) over the successors of the current mapped unitig. \end{DoxyCompactList}\end{DoxyCompactItemize} |
| 43 |
\subsection*{Data Fields} |
| 44 |
\begin{DoxyCompactItemize} |
| 45 |
\item |
| 46 |
\mbox{\Hypertarget{structUnitigMap_a5496174e14b080e15d67f90ad59aed08}\label{structUnitigMap_a5496174e14b080e15d67f90ad59aed08}} |
| 47 |
size\+\_\+t \hyperlink{structUnitigMap_a5496174e14b080e15d67f90ad59aed08}{dist} |
| 48 |
\begin{DoxyCompactList}\small\item\em 0-\/based distance of the match from start of the unitig \end{DoxyCompactList}\item |
| 49 |
\mbox{\Hypertarget{structUnitigMap_a748e7e2bc835494c2894d8a88d954043}\label{structUnitigMap_a748e7e2bc835494c2894d8a88d954043}} |
| 50 |
size\+\_\+t \hyperlink{structUnitigMap_a748e7e2bc835494c2894d8a88d954043}{len} |
| 51 |
\begin{DoxyCompactList}\small\item\em Length of the match on the unitig (in k-\/mers) \end{DoxyCompactList}\item |
| 52 |
\mbox{\Hypertarget{structUnitigMap_ae324a32571bed565f8161c9b482d3d4a}\label{structUnitigMap_ae324a32571bed565f8161c9b482d3d4a}} |
| 53 |
size\+\_\+t \hyperlink{structUnitigMap_ae324a32571bed565f8161c9b482d3d4a}{size} |
| 54 |
\begin{DoxyCompactList}\small\item\em Length of the unitig. \end{DoxyCompactList}\item |
| 55 |
\mbox{\Hypertarget{structUnitigMap_a19c25f9971430e1d6640a70d0028016f}\label{structUnitigMap_a19c25f9971430e1d6640a70d0028016f}} |
| 56 |
bool \hyperlink{structUnitigMap_a19c25f9971430e1d6640a70d0028016f}{strand} |
| 57 |
\begin{DoxyCompactList}\small\item\em True if the k-\/mer or sequence matches the forward strand, false if it matches its reverse-\/complement. \end{DoxyCompactList}\item |
| 58 |
\mbox{\Hypertarget{structUnitigMap_a152c942911cb2ccf57d4c4c1e3f40178}\label{structUnitigMap_a152c942911cb2ccf57d4c4c1e3f40178}} |
| 59 |
bool \hyperlink{structUnitigMap_a152c942911cb2ccf57d4c4c1e3f40178}{is\+Empty} |
| 60 |
\begin{DoxyCompactList}\small\item\em True if the k-\/mer or sequence does not match a unitig of the graph, false otherwise. \end{DoxyCompactList}\item |
| 61 |
\mbox{\Hypertarget{structUnitigMap_ad0fc74561ca34122241b422b10509c34}\label{structUnitigMap_ad0fc74561ca34122241b422b10509c34}} |
| 62 |
\hyperlink{classCompactedDBG}{Compacted\+D\+BG}$<$ T $>$ $\ast$ \hyperlink{structUnitigMap_ad0fc74561ca34122241b422b10509c34}{cdbg} |
| 63 |
\begin{DoxyCompactList}\small\item\em Compacted de Bruijn graph containing the unitig associated with the mapping. \end{DoxyCompactList}\end{DoxyCompactItemize} |
| 64 |
|
| 65 |
|
| 66 |
\subsection{Detailed Description} |
| 67 |
\subsubsection*{template$<$typename T = void$>$\newline |
| 68 |
struct Unitig\+Map$<$ T $>$} |
| 69 |
|
| 70 |
Contain all the information for the mapping of a k-\/mer or a sequence to a unitig of a Compacted de Bruijn graph. |
| 71 |
|
| 72 |
Its template parameter indicates the type of data associated with the unitig and should be the same as the one specified for \hyperlink{classCompactedDBG}{Compacted\+D\+BG}. An example of using such a structure is shown in src/snippets.\+hpp. |
| 73 |
|
| 74 |
\subsection{Constructor \& Destructor Documentation} |
| 75 |
\mbox{\Hypertarget{structUnitigMap_a92f76aa50f372b1f251850509958cc55}\label{structUnitigMap_a92f76aa50f372b1f251850509958cc55}} |
| 76 |
\index{Unitig\+Map@{Unitig\+Map}!Unitig\+Map@{Unitig\+Map}} |
| 77 |
\index{Unitig\+Map@{Unitig\+Map}!Unitig\+Map@{Unitig\+Map}} |
| 78 |
\subsubsection{\texorpdfstring{Unitig\+Map()}{UnitigMap()}} |
| 79 |
{\footnotesize\ttfamily template$<$typename T$>$ \\ |
| 80 |
\hyperlink{structUnitigMap}{Unitig\+Map}$<$ T $>$\+::\hyperlink{structUnitigMap}{Unitig\+Map} (\begin{DoxyParamCaption}\item[{size\+\_\+t}]{l = {\ttfamily 1} }\end{DoxyParamCaption})} |
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
\hyperlink{structUnitigMap}{Unitig\+Map} constructor. |
| 85 |
|
| 86 |
\begin{DoxyReturn}{Returns} |
| 87 |
an empty \hyperlink{structUnitigMap}{Unitig\+Map}. |
| 88 |
\end{DoxyReturn} |
| 89 |
|
| 90 |
|
| 91 |
\subsection{Member Function Documentation} |
| 92 |
\mbox{\Hypertarget{structUnitigMap_a35643b0843f2b0ff5da8c2a40612c8fc}\label{structUnitigMap_a35643b0843f2b0ff5da8c2a40612c8fc}} |
| 93 |
\index{Unitig\+Map@{Unitig\+Map}!get\+Data@{get\+Data}} |
| 94 |
\index{get\+Data@{get\+Data}!Unitig\+Map@{Unitig\+Map}} |
| 95 |
\subsubsection{\texorpdfstring{get\+Data()}{getData()}} |
| 96 |
{\footnotesize\ttfamily template$<$typename T $>$ \\ |
| 97 |
const T $\ast$ \hyperlink{structUnitigMap}{Unitig\+Map}$<$ T $>$\+::get\+Data (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const} |
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
Return a pointer to the data associated with the mapped unitig. |
| 102 |
|
| 103 |
\begin{DoxyReturn}{Returns} |
| 104 |
a constant pointer to the data associated with the mapped unitig or a constant null pointer if there is no mapping (\hyperlink{structUnitigMap_a152c942911cb2ccf57d4c4c1e3f40178}{Unitig\+Map$<$\+T$>$\+::is\+Empty} = true) or no data associated with the unitigs (T = void). |
| 105 |
\end{DoxyReturn} |
| 106 |
\mbox{\Hypertarget{structUnitigMap_a0abb8766ed68fdade6aa6d9d5ea201f3}\label{structUnitigMap_a0abb8766ed68fdade6aa6d9d5ea201f3}} |
| 107 |
\index{Unitig\+Map@{Unitig\+Map}!get\+Head@{get\+Head}} |
| 108 |
\index{get\+Head@{get\+Head}!Unitig\+Map@{Unitig\+Map}} |
| 109 |
\subsubsection{\texorpdfstring{get\+Head()}{getHead()}} |
| 110 |
{\footnotesize\ttfamily template$<$typename T $>$ \\ |
| 111 |
Kmer \hyperlink{structUnitigMap}{Unitig\+Map}$<$ T $>$\+::get\+Head (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const} |
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
Return the head k-\/mer of the mapped unitig. |
| 116 |
|
| 117 |
\begin{DoxyReturn}{Returns} |
| 118 |
a Kmer object which is either the head k-\/mer of the mapped unitig or an empty k-\/mer if there is no mapping (\hyperlink{structUnitigMap_a152c942911cb2ccf57d4c4c1e3f40178}{Unitig\+Map$<$\+T$>$\+::is\+Empty} = true). |
| 119 |
\end{DoxyReturn} |
| 120 |
\mbox{\Hypertarget{structUnitigMap_a90042b7d8610cd1726b19c3a49e7be26}\label{structUnitigMap_a90042b7d8610cd1726b19c3a49e7be26}} |
| 121 |
\index{Unitig\+Map@{Unitig\+Map}!get\+Kmer@{get\+Kmer}} |
| 122 |
\index{get\+Kmer@{get\+Kmer}!Unitig\+Map@{Unitig\+Map}} |
| 123 |
\subsubsection{\texorpdfstring{get\+Kmer()}{getKmer()}} |
| 124 |
{\footnotesize\ttfamily template$<$typename T $>$ \\ |
| 125 |
Kmer \hyperlink{structUnitigMap}{Unitig\+Map}$<$ T $>$\+::get\+Kmer (\begin{DoxyParamCaption}\item[{const size\+\_\+t}]{pos }\end{DoxyParamCaption}) const} |
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
Return the k-\/mer starting at position pos in the mapped unitig. |
| 130 |
|
| 131 |
|
| 132 |
\begin{DoxyParams}{Parameters} |
| 133 |
{\em pos} & is the start position of the k-\/mer to extract. \\ |
| 134 |
\hline |
| 135 |
\end{DoxyParams} |
| 136 |
\begin{DoxyReturn}{Returns} |
| 137 |
a 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{structUnitigMap_a152c942911cb2ccf57d4c4c1e3f40178}{Unitig\+Map$<$\+T$>$\+::is\+Empty} = true) or the position is greater than length(unitig)-\/k. |
| 138 |
\end{DoxyReturn} |
| 139 |
\mbox{\Hypertarget{structUnitigMap_aed2e39718b72838f4cc813577898a926}\label{structUnitigMap_aed2e39718b72838f4cc813577898a926}} |
| 140 |
\index{Unitig\+Map@{Unitig\+Map}!get\+Predecessors@{get\+Predecessors}} |
| 141 |
\index{get\+Predecessors@{get\+Predecessors}!Unitig\+Map@{Unitig\+Map}} |
| 142 |
\subsubsection{\texorpdfstring{get\+Predecessors()}{getPredecessors()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}} |
| 143 |
{\footnotesize\ttfamily template$<$typename T $>$ \\ |
| 144 |
\hyperlink{classBackwardCDBG}{Backward\+C\+D\+BG}$<$ T, true $>$ \hyperlink{structUnitigMap}{Unitig\+Map}$<$ T $>$\+::get\+Predecessors (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const} |
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
Return a constant \hyperlink{classBackwardCDBG}{Backward\+C\+D\+BG} object that can create iterators (through \hyperlink{classBackwardCDBG_ae7da438db925caebd02493ac7b1c01ab}{Backward\+C\+D\+B\+G\+::begin()} and \hyperlink{classBackwardCDBG_a898f45d400da7b0153644b5417b07657}{Backward\+C\+D\+B\+G\+::end()}) over the predecessors of the current mapped unitig. |
| 149 |
|
| 150 |
\begin{DoxyReturn}{Returns} |
| 151 |
a constant \hyperlink{classBackwardCDBG}{Backward\+C\+D\+BG} object that can create iterators (through \hyperlink{classBackwardCDBG_ae7da438db925caebd02493ac7b1c01ab}{Backward\+C\+D\+B\+G\+::begin()} and \hyperlink{classBackwardCDBG_a898f45d400da7b0153644b5417b07657}{Backward\+C\+D\+B\+G\+::end()}) over the predecessors of the current mapped unitig. |
| 152 |
\end{DoxyReturn} |
| 153 |
\mbox{\Hypertarget{structUnitigMap_af2bb9574c7a55bb0e8a564e89a1aa7c6}\label{structUnitigMap_af2bb9574c7a55bb0e8a564e89a1aa7c6}} |
| 154 |
\index{Unitig\+Map@{Unitig\+Map}!get\+Predecessors@{get\+Predecessors}} |
| 155 |
\index{get\+Predecessors@{get\+Predecessors}!Unitig\+Map@{Unitig\+Map}} |
| 156 |
\subsubsection{\texorpdfstring{get\+Predecessors()}{getPredecessors()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}} |
| 157 |
{\footnotesize\ttfamily template$<$typename T $>$ \\ |
| 158 |
\hyperlink{classBackwardCDBG}{Backward\+C\+D\+BG}$<$ T, false $>$ \hyperlink{structUnitigMap}{Unitig\+Map}$<$ T $>$\+::get\+Predecessors (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})} |
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
Return a \hyperlink{classBackwardCDBG}{Backward\+C\+D\+BG} object that can create iterators (through \hyperlink{classBackwardCDBG_ae7da438db925caebd02493ac7b1c01ab}{Backward\+C\+D\+B\+G\+::begin()} and \hyperlink{classBackwardCDBG_a898f45d400da7b0153644b5417b07657}{Backward\+C\+D\+B\+G\+::end()}) over the predecessors of the current mapped unitig. |
| 163 |
|
| 164 |
\begin{DoxyReturn}{Returns} |
| 165 |
a \hyperlink{classBackwardCDBG}{Backward\+C\+D\+BG} object that can create iterators (through \hyperlink{classBackwardCDBG_ae7da438db925caebd02493ac7b1c01ab}{Backward\+C\+D\+B\+G\+::begin()} and \hyperlink{classBackwardCDBG_a898f45d400da7b0153644b5417b07657}{Backward\+C\+D\+B\+G\+::end()}) over the predecessors of the current mapped unitig. |
| 166 |
\end{DoxyReturn} |
| 167 |
\mbox{\Hypertarget{structUnitigMap_a88005a00159b310711230733e16e2ae7}\label{structUnitigMap_a88005a00159b310711230733e16e2ae7}} |
| 168 |
\index{Unitig\+Map@{Unitig\+Map}!get\+Successors@{get\+Successors}} |
| 169 |
\index{get\+Successors@{get\+Successors}!Unitig\+Map@{Unitig\+Map}} |
| 170 |
\subsubsection{\texorpdfstring{get\+Successors()}{getSuccessors()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}} |
| 171 |
{\footnotesize\ttfamily template$<$typename T $>$ \\ |
| 172 |
\hyperlink{classForwardCDBG}{Forward\+C\+D\+BG}$<$ T, true $>$ \hyperlink{structUnitigMap}{Unitig\+Map}$<$ T $>$\+::get\+Successors (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const} |
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
Return a constant \hyperlink{classBackwardCDBG}{Backward\+C\+D\+BG} object that can create iterators (through \hyperlink{classBackwardCDBG_ae7da438db925caebd02493ac7b1c01ab}{Backward\+C\+D\+B\+G\+::begin()} and \hyperlink{classBackwardCDBG_a898f45d400da7b0153644b5417b07657}{Backward\+C\+D\+B\+G\+::end()}) over the successors of the current mapped unitig. |
| 177 |
|
| 178 |
\begin{DoxyReturn}{Returns} |
| 179 |
a constant \hyperlink{classBackwardCDBG}{Backward\+C\+D\+BG} object that can create iterators (through \hyperlink{classBackwardCDBG_ae7da438db925caebd02493ac7b1c01ab}{Backward\+C\+D\+B\+G\+::begin()} and \hyperlink{classBackwardCDBG_a898f45d400da7b0153644b5417b07657}{Backward\+C\+D\+B\+G\+::end()}) over the successors of the current mapped unitig. |
| 180 |
\end{DoxyReturn} |
| 181 |
\mbox{\Hypertarget{structUnitigMap_a4892fdd7f02c0b132b0164460159df9e}\label{structUnitigMap_a4892fdd7f02c0b132b0164460159df9e}} |
| 182 |
\index{Unitig\+Map@{Unitig\+Map}!get\+Successors@{get\+Successors}} |
| 183 |
\index{get\+Successors@{get\+Successors}!Unitig\+Map@{Unitig\+Map}} |
| 184 |
\subsubsection{\texorpdfstring{get\+Successors()}{getSuccessors()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}} |
| 185 |
{\footnotesize\ttfamily template$<$typename T $>$ \\ |
| 186 |
\hyperlink{classForwardCDBG}{Forward\+C\+D\+BG}$<$ T, false $>$ \hyperlink{structUnitigMap}{Unitig\+Map}$<$ T $>$\+::get\+Successors (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})} |
| 187 |
|
| 188 |
|
| 189 |
|
| 190 |
Return a \hyperlink{classBackwardCDBG}{Backward\+C\+D\+BG} object that can create iterators (through \hyperlink{classBackwardCDBG_ae7da438db925caebd02493ac7b1c01ab}{Backward\+C\+D\+B\+G\+::begin()} and \hyperlink{classBackwardCDBG_a898f45d400da7b0153644b5417b07657}{Backward\+C\+D\+B\+G\+::end()}) over the successors of the current mapped unitig. |
| 191 |
|
| 192 |
\begin{DoxyReturn}{Returns} |
| 193 |
a \hyperlink{classBackwardCDBG}{Backward\+C\+D\+BG} object that can create iterators (through \hyperlink{classBackwardCDBG_ae7da438db925caebd02493ac7b1c01ab}{Backward\+C\+D\+B\+G\+::begin()} and \hyperlink{classBackwardCDBG_a898f45d400da7b0153644b5417b07657}{Backward\+C\+D\+B\+G\+::end()}) over the successors of the current mapped unitig. |
| 194 |
\end{DoxyReturn} |
| 195 |
\mbox{\Hypertarget{structUnitigMap_a1254c81e7d2541c5aa9cfd4e2ba9f021}\label{structUnitigMap_a1254c81e7d2541c5aa9cfd4e2ba9f021}} |
| 196 |
\index{Unitig\+Map@{Unitig\+Map}!get\+Tail@{get\+Tail}} |
| 197 |
\index{get\+Tail@{get\+Tail}!Unitig\+Map@{Unitig\+Map}} |
| 198 |
\subsubsection{\texorpdfstring{get\+Tail()}{getTail()}} |
| 199 |
{\footnotesize\ttfamily template$<$typename T $>$ \\ |
| 200 |
Kmer \hyperlink{structUnitigMap}{Unitig\+Map}$<$ T $>$\+::get\+Tail (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const} |
| 201 |
|
| 202 |
|
| 203 |
|
| 204 |
Return the tail k-\/mer of the mapped unitig. |
| 205 |
|
| 206 |
\begin{DoxyReturn}{Returns} |
| 207 |
a Kmer object which is either the tail k-\/mer of the mapped unitig or an empty k-\/mer if there is no mapping (\hyperlink{structUnitigMap_a152c942911cb2ccf57d4c4c1e3f40178}{Unitig\+Map$<$\+T$>$\+::is\+Empty} = true). |
| 208 |
\end{DoxyReturn} |
| 209 |
\mbox{\Hypertarget{structUnitigMap_ade45565864206eece29f34415347c2f9}\label{structUnitigMap_ade45565864206eece29f34415347c2f9}} |
| 210 |
\index{Unitig\+Map@{Unitig\+Map}!merge\+Data@{merge\+Data}} |
| 211 |
\index{merge\+Data@{merge\+Data}!Unitig\+Map@{Unitig\+Map}} |
| 212 |
\subsubsection{\texorpdfstring{merge\+Data()}{mergeData()}} |
| 213 |
{\footnotesize\ttfamily template$<$typename T$>$ \\ |
| 214 |
void \hyperlink{structUnitigMap}{Unitig\+Map}$<$ T $>$\+::merge\+Data (\begin{DoxyParamCaption}\item[{const \hyperlink{structUnitigMap}{Unitig\+Map}$<$ T $>$ \&}]{um }\end{DoxyParamCaption})} |
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
Merge the data of the mapped unitig with the data of another mapped unitig. |
| 219 |
|
| 220 |
This function calls the function \hyperlink{classCDBG__Data__t_a1145c8c72d30b6da3f84b360959cf509}{C\+D\+B\+G\+\_\+\+Data\+\_\+t$<$\+T$>$\+::join} but it does not set anything if there is no mapping (\hyperlink{structUnitigMap_a152c942911cb2ccf57d4c4c1e3f40178}{Unitig\+Map$<$\+T$>$\+::is\+Empty} = true) or no data associated with the unitigs (T = void). |
| 221 |
\begin{DoxyParams}{Parameters} |
| 222 |
{\em um} & is a reference to a mapped unitig that will be merged with the current mapped unitig. \\ |
| 223 |
\hline |
| 224 |
\end{DoxyParams} |
| 225 |
\mbox{\Hypertarget{structUnitigMap_af662157cd6f019189170270637dc9ea1}\label{structUnitigMap_af662157cd6f019189170270637dc9ea1}} |
| 226 |
\index{Unitig\+Map@{Unitig\+Map}!operator"!=@{operator"!=}} |
| 227 |
\index{operator"!=@{operator"!=}!Unitig\+Map@{Unitig\+Map}} |
| 228 |
\subsubsection{\texorpdfstring{operator"!=()}{operator!=()}} |
| 229 |
{\footnotesize\ttfamily template$<$typename T $>$ \\ |
| 230 |
bool \hyperlink{structUnitigMap}{Unitig\+Map}$<$ T $>$\+::operator!= (\begin{DoxyParamCaption}\item[{const \hyperlink{structUnitigMap}{Unitig\+Map}$<$ T $>$ \&}]{o }\end{DoxyParamCaption})} |
| 231 |
|
| 232 |
|
| 233 |
|
| 234 |
Check if two Unitig\+Maps are different. |
| 235 |
|
| 236 |
\begin{DoxyReturn}{Returns} |
| 237 |
a boolean indicating if the two Unitig\+Maps are different. |
| 238 |
\end{DoxyReturn} |
| 239 |
\mbox{\Hypertarget{structUnitigMap_af225db3c123c331f906de6cba96e4d07}\label{structUnitigMap_af225db3c123c331f906de6cba96e4d07}} |
| 240 |
\index{Unitig\+Map@{Unitig\+Map}!operator==@{operator==}} |
| 241 |
\index{operator==@{operator==}!Unitig\+Map@{Unitig\+Map}} |
| 242 |
\subsubsection{\texorpdfstring{operator==()}{operator==()}} |
| 243 |
{\footnotesize\ttfamily template$<$typename T $>$ \\ |
| 244 |
bool \hyperlink{structUnitigMap}{Unitig\+Map}$<$ T $>$\+::operator== (\begin{DoxyParamCaption}\item[{const \hyperlink{structUnitigMap}{Unitig\+Map}$<$ T $>$ \&}]{o }\end{DoxyParamCaption})} |
| 245 |
|
| 246 |
|
| 247 |
|
| 248 |
Check if two Unitig\+Maps are the same. |
| 249 |
|
| 250 |
\begin{DoxyReturn}{Returns} |
| 251 |
a boolean indicating if the two Unitig\+Maps are the same. |
| 252 |
\end{DoxyReturn} |
| 253 |
\mbox{\Hypertarget{structUnitigMap_a3c9fb88f7da7250f361d972678d5a17e}\label{structUnitigMap_a3c9fb88f7da7250f361d972678d5a17e}} |
| 254 |
\index{Unitig\+Map@{Unitig\+Map}!reverse\+To\+String@{reverse\+To\+String}} |
| 255 |
\index{reverse\+To\+String@{reverse\+To\+String}!Unitig\+Map@{Unitig\+Map}} |
| 256 |
\subsubsection{\texorpdfstring{reverse\+To\+String()}{reverseToString()}} |
| 257 |
{\footnotesize\ttfamily template$<$typename T $>$ \\ |
| 258 |
string \hyperlink{structUnitigMap}{Unitig\+Map}$<$ T $>$\+::reverse\+To\+String (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const} |
| 259 |
|
| 260 |
|
| 261 |
|
| 262 |
Return a string containing the reverse-\/complement sequence of the mapped unitig. |
| 263 |
|
| 264 |
\begin{DoxyReturn}{Returns} |
| 265 |
a string containing the reverse-\/complement sequence of the mapped unitig or an empty string if there is no mapping (\hyperlink{structUnitigMap_a152c942911cb2ccf57d4c4c1e3f40178}{Unitig\+Map$<$\+T$>$\+::is\+Empty} = true). |
| 266 |
\end{DoxyReturn} |
| 267 |
\mbox{\Hypertarget{structUnitigMap_a1a300d64047cfab14783746c407fe41c}\label{structUnitigMap_a1a300d64047cfab14783746c407fe41c}} |
| 268 |
\index{Unitig\+Map@{Unitig\+Map}!set\+Data@{set\+Data}} |
| 269 |
\index{set\+Data@{set\+Data}!Unitig\+Map@{Unitig\+Map}} |
| 270 |
\subsubsection{\texorpdfstring{set\+Data()}{setData()}} |
| 271 |
{\footnotesize\ttfamily template$<$typename T$>$ \\ |
| 272 |
void \hyperlink{structUnitigMap}{Unitig\+Map}$<$ T $>$\+::set\+Data (\begin{DoxyParamCaption}\item[{const T $\ast$const}]{data }\end{DoxyParamCaption}) const} |
| 273 |
|
| 274 |
|
| 275 |
|
| 276 |
Set the data associated with a mapped unitig. |
| 277 |
|
| 278 |
The function does not set anything if there is no mapping (\hyperlink{structUnitigMap_a152c942911cb2ccf57d4c4c1e3f40178}{Unitig\+Map$<$\+T$>$\+::is\+Empty} = true) or no data associated with the unitigs (T = void). |
| 279 |
\begin{DoxyParams}{Parameters} |
| 280 |
{\em data} & is a pointer to the data that will be copied to the data associated with the mapped unitig. \\ |
| 281 |
\hline |
| 282 |
\end{DoxyParams} |
| 283 |
\mbox{\Hypertarget{structUnitigMap_a3b3699727329217e346fadf2d8a987a6}\label{structUnitigMap_a3b3699727329217e346fadf2d8a987a6}} |
| 284 |
\index{Unitig\+Map@{Unitig\+Map}!split\+Data@{split\+Data}} |
| 285 |
\index{split\+Data@{split\+Data}!Unitig\+Map@{Unitig\+Map}} |
| 286 |
\subsubsection{\texorpdfstring{split\+Data()}{splitData()}} |
| 287 |
{\footnotesize\ttfamily template$<$typename T $>$ \\ |
| 288 |
\hyperlink{classUnitig}{Unitig}$<$ T $>$ \hyperlink{structUnitigMap}{Unitig\+Map}$<$ T $>$\+::split\+Data (\begin{DoxyParamCaption}\item[{const bool}]{last\+\_\+split }\end{DoxyParamCaption})} |
| 289 |
|
| 290 |
|
| 291 |
|
| 292 |
Create new data to associate with a new unitig which is a sub-\/unitig of the current mapped unitig. |
| 293 |
|
| 294 |
Does not do anything if no data are associated with the unitigs (T = void). |
| 295 |
\begin{DoxyParams}{Parameters} |
| 296 |
{\em last\+\_\+split} & is a boolean indicating this is the last call to \hyperlink{structUnitigMap_a3b3699727329217e346fadf2d8a987a6}{Unitig\+Map$<$\+T$>$\+::split\+Data} (true) on the current unitig mapped (this) or not (false). \\ |
| 297 |
\hline |
| 298 |
\end{DoxyParams} |
| 299 |
\begin{DoxyReturn}{Returns} |
| 300 |
a \hyperlink{classUnitig}{Unitig} object containing the new data. The unitig sequence and coverage are not set, only the data (if there are some). |
| 301 |
\end{DoxyReturn} |
| 302 |
\mbox{\Hypertarget{structUnitigMap_a398ca4dd0e422ba08eaad9a11f15a3e3}\label{structUnitigMap_a398ca4dd0e422ba08eaad9a11f15a3e3}} |
| 303 |
\index{Unitig\+Map@{Unitig\+Map}!to\+String@{to\+String}} |
| 304 |
\index{to\+String@{to\+String}!Unitig\+Map@{Unitig\+Map}} |
| 305 |
\subsubsection{\texorpdfstring{to\+String()}{toString()}} |
| 306 |
{\footnotesize\ttfamily template$<$typename T $>$ \\ |
| 307 |
string \hyperlink{structUnitigMap}{Unitig\+Map}$<$ T $>$\+::to\+String (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const} |
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
Return a string containing the sequence of the mapped unitig. |
| 312 |
|
| 313 |
\begin{DoxyReturn}{Returns} |
| 314 |
a string containing the sequence of the mapped unitig or an empty string if there is no mapping (\hyperlink{structUnitigMap_a152c942911cb2ccf57d4c4c1e3f40178}{Unitig\+Map$<$\+T$>$\+::is\+Empty} = true). |
| 315 |
\end{DoxyReturn} |
| 316 |
|
| 317 |
|
| 318 |
The documentation for this struct was generated from the following files\+:\begin{DoxyCompactItemize} |
| 319 |
\item |
| 320 |
src/\hyperlink{UnitigMap_8hpp}{Unitig\+Map.\+hpp}\item |
| 321 |
src/Unitig\+Map.\+tpp\end{DoxyCompactItemize} |