| 1 |
\hypertarget{classDataAccessor}{}\section{Data\+Accessor$<$ Unitig\+\_\+data\+\_\+t $>$ Class Template Reference} |
| 2 |
\label{classDataAccessor}\index{Data\+Accessor$<$ Unitig\+\_\+data\+\_\+t $>$@{Data\+Accessor$<$ Unitig\+\_\+data\+\_\+t $>$}} |
| 3 |
|
| 4 |
|
| 5 |
Interface to access the colors and the data associated with a unitig of a \hyperlink{classColoredCDBG}{Colored\+C\+D\+BG}. |
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
Inherits \hyperlink{classCDBG__Data__t}{C\+D\+B\+G\+\_\+\+Data\+\_\+t$<$ Data\+Accessor$<$ Unitig\+\_\+data\+\_\+t $>$, Data\+Storage$<$ Unitig\+\_\+data\+\_\+t $>$ $>$}. |
| 11 |
|
| 12 |
\subsection*{Public Member Functions} |
| 13 |
\begin{DoxyCompactItemize} |
| 14 |
\item |
| 15 |
\mbox{\Hypertarget{classDataAccessor_a0c30e8dfb40ff350083dd0822082dd66}\label{classDataAccessor_a0c30e8dfb40ff350083dd0822082dd66}} |
| 16 |
\hyperlink{classDataAccessor_a0c30e8dfb40ff350083dd0822082dd66}{Data\+Accessor} (const uint8\+\_\+t id=0) |
| 17 |
\begin{DoxyCompactList}\small\item\em Constructor (set up an empty \hyperlink{classDataAccessor}{Data\+Accessor}). \end{DoxyCompactList}\item |
| 18 |
void \hyperlink{classDataAccessor_a8a0c9cd4d31f8c7b08dcb06e420ad202}{clear} (const \hyperlink{classUnitigMap}{Unitig\+Color\+Map}$<$ U $>$ \&um) |
| 19 |
\begin{DoxyCompactList}\small\item\em Clear the colors and data associated with a colored unitig. \end{DoxyCompactList}\item |
| 20 |
const U $\ast$ \hyperlink{classDataAccessor_af72510548faff435e7241d4dacd63549}{get\+Data} (const \hyperlink{classUnitigMap}{const\+\_\+\+Unitig\+Color\+Map}$<$ U $>$ \&um) const |
| 21 |
\begin{DoxyCompactList}\small\item\em Get the unitig data. \end{DoxyCompactList}\item |
| 22 |
U $\ast$ \hyperlink{classDataAccessor_ab7993cfaba89b72b52acfebf5c6133ea}{get\+Data} (const \hyperlink{classUnitigMap}{Unitig\+Color\+Map}$<$ U $>$ \&um) const |
| 23 |
\begin{DoxyCompactList}\small\item\em Get the unitig data. \end{DoxyCompactList}\item |
| 24 |
const \hyperlink{classUnitigColors}{Unitig\+Colors} $\ast$ \hyperlink{classDataAccessor_a8aec5f2dc2b59701c7e0ee29f7c320e5}{get\+Unitig\+Colors} (const \hyperlink{classUnitigMap}{const\+\_\+\+Unitig\+Color\+Map}$<$ U $>$ \&um) const |
| 25 |
\begin{DoxyCompactList}\small\item\em Get the colors of the reference unitig. \end{DoxyCompactList}\item |
| 26 |
\hyperlink{classUnitigColors}{Unitig\+Colors} $\ast$ \hyperlink{classDataAccessor_a1bfa8894d99ff518a628d4985f9598ae}{get\+Unitig\+Colors} (const \hyperlink{classUnitigMap}{Unitig\+Color\+Map}$<$ U $>$ \&um) const |
| 27 |
\begin{DoxyCompactList}\small\item\em Get the colors of the reference unitig. \end{DoxyCompactList}\item |
| 28 |
\hyperlink{classUnitigColors}{Unitig\+Colors} \hyperlink{classDataAccessor_aec000525e0b4fee736de1acc0630370b}{get\+Sub\+Unitig\+Colors} (const \hyperlink{classUnitigMap}{const\+\_\+\+Unitig\+Color\+Map}$<$ U $>$ \&um) const |
| 29 |
\begin{DoxyCompactList}\small\item\em Create a new \hyperlink{classUnitigColors}{Unitig\+Colors} object for a unitig B corresponding to a unitig mapping to a reference unitig A, i.\+e, B = A\mbox{[}um.\+dist..um.\+dist + um.\+len + k -\/ 1\mbox{]} or B = rev(A\mbox{[}um.\+dist..um.\+dist + um.\+len + k -\/ 1\mbox{]}) if um.\+strand == false. \end{DoxyCompactList}\item |
| 30 |
vector$<$ string $>$ \hyperlink{classDataAccessor_aedfbec507c081058102923cfe0fb5724}{get\+Sub\+Unitig\+Color\+Names} (const \hyperlink{classUnitigMap}{const\+\_\+\+Unitig\+Color\+Map}$<$ U $>$ \&um) const |
| 31 |
\begin{DoxyCompactList}\small\item\em Obtain the name of the colors present on AT L\+E\+A\+ST one k-\/mer of a unitig mapping. \end{DoxyCompactList}\item |
| 32 |
void \hyperlink{classDataAccessor_a42b319c9eb802a3a9276227c00f69665}{concat} (const \hyperlink{classUnitigMap}{Unitig\+Color\+Map}$<$ U $>$ \&um\+\_\+dest, const \hyperlink{classUnitigMap}{Unitig\+Color\+Map}$<$ U $>$ \&um\+\_\+src) |
| 33 |
\begin{DoxyCompactList}\small\item\em Join data and colors of two colored unitigs which are going to be concatenated. \end{DoxyCompactList}\item |
| 34 |
void \hyperlink{classDataAccessor_a662c0fa811a55a750f32fbb7db3bef5c}{merge} (const \hyperlink{classUnitigMap}{Unitig\+Color\+Map}$<$ U $>$ \&um\+\_\+dest, const \hyperlink{classUnitigMap}{const\+\_\+\+Unitig\+Color\+Map}$<$ U $>$ \&um\+\_\+src) |
| 35 |
\begin{DoxyCompactList}\small\item\em Merge the data and colors of a sub-\/unitig B to the data and colors of a sub-\/unitig A. \end{DoxyCompactList}\item |
| 36 |
void \hyperlink{classDataAccessor_ad329606e200210ed14a2db858d1cb5ac}{extract} (const \hyperlink{classUnitigMap}{Unitig\+Color\+Map}$<$ U $>$ \&um\+\_\+src, const bool last\+\_\+extraction) |
| 37 |
\begin{DoxyCompactList}\small\item\em Extract data and colors corresponding to a sub-\/unitig of a unitig A. \end{DoxyCompactList}\item |
| 38 |
string \hyperlink{classDataAccessor_aae08bdd0b2c5d077672be826f112cfe1}{serialize} (const \hyperlink{classUnitigMap}{const\+\_\+\+Unitig\+Color\+Map}$<$ U $>$ \&um\+\_\+src) const |
| 39 |
\begin{DoxyCompactList}\small\item\em Serialize the data to a G\+F\+A-\/formatted string. \end{DoxyCompactList}\end{DoxyCompactItemize} |
| 40 |
|
| 41 |
|
| 42 |
\subsection{Detailed Description} |
| 43 |
\subsubsection*{template$<$typename Unitig\+\_\+data\+\_\+t = void$>$\newline |
| 44 |
class Data\+Accessor$<$ Unitig\+\_\+data\+\_\+t $>$} |
| 45 |
|
| 46 |
Interface to access the colors and the data associated with a unitig of a \hyperlink{classColoredCDBG}{Colored\+C\+D\+BG}. |
| 47 |
|
| 48 |
The class as one template parameter\+: the type of data associated with the unitigs of the graph. |
| 49 |
|
| 50 |
\subsection{Member Function Documentation} |
| 51 |
\mbox{\Hypertarget{classDataAccessor_a8a0c9cd4d31f8c7b08dcb06e420ad202}\label{classDataAccessor_a8a0c9cd4d31f8c7b08dcb06e420ad202}} |
| 52 |
\index{Data\+Accessor@{Data\+Accessor}!clear@{clear}} |
| 53 |
\index{clear@{clear}!Data\+Accessor@{Data\+Accessor}} |
| 54 |
\subsubsection{\texorpdfstring{clear()}{clear()}} |
| 55 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void$>$ \\ |
| 56 |
void \hyperlink{classDataAccessor}{Data\+Accessor}$<$ Unitig\+\_\+data\+\_\+t $>$\+::clear (\begin{DoxyParamCaption}\item[{const \hyperlink{classUnitigMap}{Unitig\+Color\+Map}$<$ U $>$ \&}]{um }\end{DoxyParamCaption})} |
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
Clear the colors and data associated with a colored unitig. |
| 61 |
|
| 62 |
This function clears the k-\/mer color sets (of type \hyperlink{classUnitigColors}{Unitig\+Colors}) associated with the reference unitig of the input parameter um (of type Unitig\+Color\+Map). It also clears the associated data if there are some. \mbox{\Hypertarget{classDataAccessor_a42b319c9eb802a3a9276227c00f69665}\label{classDataAccessor_a42b319c9eb802a3a9276227c00f69665}} |
| 63 |
\index{Data\+Accessor@{Data\+Accessor}!concat@{concat}} |
| 64 |
\index{concat@{concat}!Data\+Accessor@{Data\+Accessor}} |
| 65 |
\subsubsection{\texorpdfstring{concat()}{concat()}} |
| 66 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void$>$ \\ |
| 67 |
void \hyperlink{classDataAccessor}{Data\+Accessor}$<$ Unitig\+\_\+data\+\_\+t $>$\+::concat (\begin{DoxyParamCaption}\item[{const \hyperlink{classUnitigMap}{Unitig\+Color\+Map}$<$ U $>$ \&}]{um\+\_\+dest, }\item[{const \hyperlink{classUnitigMap}{Unitig\+Color\+Map}$<$ U $>$ \&}]{um\+\_\+src }\end{DoxyParamCaption})} |
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
Join data and colors of two colored unitigs which are going to be concatenated. |
| 72 |
|
| 73 |
Specifically, if A is the reference unitig of the Unitig\+Color\+Map um\+\_\+dest and B is the reference unitig of the Unitig\+Color\+Map um\+\_\+src, then after the call to this function, unitigs A and B will be removed and a unitig C = AB will be added to the graph. If um\+\_\+dest.\+strand = false, then the reverse-\/complement of A is going to be used in the concatenation. Reciprocally, if um\+\_\+src.\+strand = false, then the reverse-\/complement of B is going to be used in the concatenation. |
| 74 |
\begin{DoxyParams}{Parameters} |
| 75 |
{\em um\+\_\+dest} & is a Unitig\+Color\+Map object representing a unitig (the reference sequence of the mapping) to which another unitig is going to be appended. \\ |
| 76 |
\hline |
| 77 |
{\em um\+\_\+src} & is a Unitig\+Color\+Map object representing a unitig (and its data) that will be appended at the end of the unitig represented by parameter um\+\_\+dest. \\ |
| 78 |
\hline |
| 79 |
\end{DoxyParams} |
| 80 |
\mbox{\Hypertarget{classDataAccessor_ad329606e200210ed14a2db858d1cb5ac}\label{classDataAccessor_ad329606e200210ed14a2db858d1cb5ac}} |
| 81 |
\index{Data\+Accessor@{Data\+Accessor}!extract@{extract}} |
| 82 |
\index{extract@{extract}!Data\+Accessor@{Data\+Accessor}} |
| 83 |
\subsubsection{\texorpdfstring{extract()}{extract()}} |
| 84 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void$>$ \\ |
| 85 |
void \hyperlink{classDataAccessor}{Data\+Accessor}$<$ Unitig\+\_\+data\+\_\+t $>$\+::extract (\begin{DoxyParamCaption}\item[{const \hyperlink{classUnitigMap}{Unitig\+Color\+Map}$<$ U $>$ \&}]{um\+\_\+src, }\item[{const bool}]{last\+\_\+extraction }\end{DoxyParamCaption})} |
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
Extract data and colors corresponding to a sub-\/unitig of a unitig A. |
| 90 |
|
| 91 |
The extracted sub-\/unitig, called B in the following, is defined as a mapping to A given by the input Unitig\+Color\+Map object um\+\_\+src. Hence, B = A\mbox{[}um\+\_\+src.\+dist, um\+\_\+src.\+dist + um\+\_\+src.\+len + k -\/ 1\mbox{]} or B = rev(A\mbox{[}um\+\_\+src.\+dist, um\+\_\+src.\+dist + um\+\_\+src.\+len + k -\/ 1\mbox{]}) if um\+\_\+src.\+strand == false (B is reverse-\/complemented). After this function returns, unitig A is deleted from the graph and B is inserted in the graph (along with their data and colors) IF the input parameter last\+\_\+extraction == true. |
| 92 |
\begin{DoxyParams}{Parameters} |
| 93 |
{\em um\+\_\+src} & is a Unitig\+Color\+Map object representing the mapping to a colored unitig A from which a new colored unitig B will be extracted, i.\+e, B = A\mbox{[}um\+\_\+src.\+dist, um\+\_\+src.\+dist + um\+\_\+src.\+len + k -\/ 1\mbox{]} or B = rev(A\mbox{[}um\+\_\+src.\+dist, um\+\_\+src.\+dist + um\+\_\+src.\+len + k -\/ 1\mbox{]}) if um\+\_\+src.\+strand == false. \\ |
| 94 |
\hline |
| 95 |
{\em last\+\_\+extraction} & is a boolean indicating if this is the last call to this function on the reference unitig A used for the mapping given by um\+\_\+src. If last\+\_\+extraction is true, the reference unitig A of um\+\_\+src will be removed from the graph right after this function returns. Also, all unitigs B extracted from the reference unitig A, along with their data and colors, will be inserted in the graph. \\ |
| 96 |
\hline |
| 97 |
\end{DoxyParams} |
| 98 |
\mbox{\Hypertarget{classDataAccessor_af72510548faff435e7241d4dacd63549}\label{classDataAccessor_af72510548faff435e7241d4dacd63549}} |
| 99 |
\index{Data\+Accessor@{Data\+Accessor}!get\+Data@{get\+Data}} |
| 100 |
\index{get\+Data@{get\+Data}!Data\+Accessor@{Data\+Accessor}} |
| 101 |
\subsubsection{\texorpdfstring{get\+Data()}{getData()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}} |
| 102 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void$>$ \\ |
| 103 |
const U$\ast$ \hyperlink{classDataAccessor}{Data\+Accessor}$<$ Unitig\+\_\+data\+\_\+t $>$\+::get\+Data (\begin{DoxyParamCaption}\item[{const \hyperlink{classUnitigMap}{const\+\_\+\+Unitig\+Color\+Map}$<$ U $>$ \&}]{um }\end{DoxyParamCaption}) const} |
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
Get the unitig data. |
| 108 |
|
| 109 |
|
| 110 |
\begin{DoxyParams}{Parameters} |
| 111 |
{\em um} & is a constant reference to a const\+\_\+\+Unitig\+Color\+Map object for which the reference unitig used in the mapping is associated to the current \hyperlink{classDataAccessor}{Data\+Accessor} object. \\ |
| 112 |
\hline |
| 113 |
\end{DoxyParams} |
| 114 |
\begin{DoxyReturn}{Returns} |
| 115 |
a constant pointer to the unitig data. |
| 116 |
\end{DoxyReturn} |
| 117 |
\mbox{\Hypertarget{classDataAccessor_ab7993cfaba89b72b52acfebf5c6133ea}\label{classDataAccessor_ab7993cfaba89b72b52acfebf5c6133ea}} |
| 118 |
\index{Data\+Accessor@{Data\+Accessor}!get\+Data@{get\+Data}} |
| 119 |
\index{get\+Data@{get\+Data}!Data\+Accessor@{Data\+Accessor}} |
| 120 |
\subsubsection{\texorpdfstring{get\+Data()}{getData()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}} |
| 121 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void$>$ \\ |
| 122 |
U$\ast$ \hyperlink{classDataAccessor}{Data\+Accessor}$<$ Unitig\+\_\+data\+\_\+t $>$\+::get\+Data (\begin{DoxyParamCaption}\item[{const \hyperlink{classUnitigMap}{Unitig\+Color\+Map}$<$ U $>$ \&}]{um }\end{DoxyParamCaption}) const} |
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
Get the unitig data. |
| 127 |
|
| 128 |
|
| 129 |
\begin{DoxyParams}{Parameters} |
| 130 |
{\em um} & is a constant reference to a Unitig\+Color\+Map object for which the reference unitig used in the mapping is associated to the current \hyperlink{classDataAccessor}{Data\+Accessor} object. \\ |
| 131 |
\hline |
| 132 |
\end{DoxyParams} |
| 133 |
\begin{DoxyReturn}{Returns} |
| 134 |
a pointer to the unitig data. |
| 135 |
\end{DoxyReturn} |
| 136 |
\mbox{\Hypertarget{classDataAccessor_aedfbec507c081058102923cfe0fb5724}\label{classDataAccessor_aedfbec507c081058102923cfe0fb5724}} |
| 137 |
\index{Data\+Accessor@{Data\+Accessor}!get\+Sub\+Unitig\+Color\+Names@{get\+Sub\+Unitig\+Color\+Names}} |
| 138 |
\index{get\+Sub\+Unitig\+Color\+Names@{get\+Sub\+Unitig\+Color\+Names}!Data\+Accessor@{Data\+Accessor}} |
| 139 |
\subsubsection{\texorpdfstring{get\+Sub\+Unitig\+Color\+Names()}{getSubUnitigColorNames()}} |
| 140 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void$>$ \\ |
| 141 |
vector$<$string$>$ \hyperlink{classDataAccessor}{Data\+Accessor}$<$ Unitig\+\_\+data\+\_\+t $>$\+::get\+Sub\+Unitig\+Color\+Names (\begin{DoxyParamCaption}\item[{const \hyperlink{classUnitigMap}{const\+\_\+\+Unitig\+Color\+Map}$<$ U $>$ \&}]{um }\end{DoxyParamCaption}) const} |
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
Obtain the name of the colors present on AT L\+E\+A\+ST one k-\/mer of a unitig mapping. |
| 146 |
|
| 147 |
|
| 148 |
\begin{DoxyParams}{Parameters} |
| 149 |
{\em um} & is a constant reference to a const\+\_\+\+Unitig\+Color\+Map object which is a unitig mapping. \\ |
| 150 |
\hline |
| 151 |
\end{DoxyParams} |
| 152 |
\begin{DoxyReturn}{Returns} |
| 153 |
a vector of string, each string is the name of a color. |
| 154 |
\end{DoxyReturn} |
| 155 |
\mbox{\Hypertarget{classDataAccessor_aec000525e0b4fee736de1acc0630370b}\label{classDataAccessor_aec000525e0b4fee736de1acc0630370b}} |
| 156 |
\index{Data\+Accessor@{Data\+Accessor}!get\+Sub\+Unitig\+Colors@{get\+Sub\+Unitig\+Colors}} |
| 157 |
\index{get\+Sub\+Unitig\+Colors@{get\+Sub\+Unitig\+Colors}!Data\+Accessor@{Data\+Accessor}} |
| 158 |
\subsubsection{\texorpdfstring{get\+Sub\+Unitig\+Colors()}{getSubUnitigColors()}} |
| 159 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void$>$ \\ |
| 160 |
\hyperlink{classUnitigColors}{Unitig\+Colors} \hyperlink{classDataAccessor}{Data\+Accessor}$<$ Unitig\+\_\+data\+\_\+t $>$\+::get\+Sub\+Unitig\+Colors (\begin{DoxyParamCaption}\item[{const \hyperlink{classUnitigMap}{const\+\_\+\+Unitig\+Color\+Map}$<$ U $>$ \&}]{um }\end{DoxyParamCaption}) const} |
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
Create a new \hyperlink{classUnitigColors}{Unitig\+Colors} object for a unitig B corresponding to a unitig mapping to a reference unitig A, i.\+e, B = A\mbox{[}um.\+dist..um.\+dist + um.\+len + k -\/ 1\mbox{]} or B = rev(A\mbox{[}um.\+dist..um.\+dist + um.\+len + k -\/ 1\mbox{]}) if um.\+strand == false. |
| 165 |
|
| 166 |
|
| 167 |
\begin{DoxyParams}{Parameters} |
| 168 |
{\em um} & is a constant reference to a const\+\_\+\+Unitig\+Color\+Map object which is a unitig mapping from which we want to obtain a new \hyperlink{classUnitigColors}{Unitig\+Colors} object. \\ |
| 169 |
\hline |
| 170 |
\end{DoxyParams} |
| 171 |
\begin{DoxyReturn}{Returns} |
| 172 |
a \hyperlink{classUnitigColors}{Unitig\+Colors} object for which the k-\/mers and colors match the input unitig mapping. |
| 173 |
\end{DoxyReturn} |
| 174 |
\mbox{\Hypertarget{classDataAccessor_a8aec5f2dc2b59701c7e0ee29f7c320e5}\label{classDataAccessor_a8aec5f2dc2b59701c7e0ee29f7c320e5}} |
| 175 |
\index{Data\+Accessor@{Data\+Accessor}!get\+Unitig\+Colors@{get\+Unitig\+Colors}} |
| 176 |
\index{get\+Unitig\+Colors@{get\+Unitig\+Colors}!Data\+Accessor@{Data\+Accessor}} |
| 177 |
\subsubsection{\texorpdfstring{get\+Unitig\+Colors()}{getUnitigColors()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}} |
| 178 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void$>$ \\ |
| 179 |
const \hyperlink{classUnitigColors}{Unitig\+Colors}$\ast$ \hyperlink{classDataAccessor}{Data\+Accessor}$<$ Unitig\+\_\+data\+\_\+t $>$\+::get\+Unitig\+Colors (\begin{DoxyParamCaption}\item[{const \hyperlink{classUnitigMap}{const\+\_\+\+Unitig\+Color\+Map}$<$ U $>$ \&}]{um }\end{DoxyParamCaption}) const} |
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
Get the colors of the reference unitig. |
| 184 |
|
| 185 |
|
| 186 |
\begin{DoxyParams}{Parameters} |
| 187 |
{\em um} & is a constant reference to a const\+\_\+\+Unitig\+Color\+Map object for which the colors of the reference unitig used in the mapping must be obtained. \\ |
| 188 |
\hline |
| 189 |
\end{DoxyParams} |
| 190 |
\begin{DoxyReturn}{Returns} |
| 191 |
a constant pointer to a \hyperlink{classUnitigColors}{Unitig\+Colors} object representing the colors of the reference unitig. |
| 192 |
\end{DoxyReturn} |
| 193 |
\mbox{\Hypertarget{classDataAccessor_a1bfa8894d99ff518a628d4985f9598ae}\label{classDataAccessor_a1bfa8894d99ff518a628d4985f9598ae}} |
| 194 |
\index{Data\+Accessor@{Data\+Accessor}!get\+Unitig\+Colors@{get\+Unitig\+Colors}} |
| 195 |
\index{get\+Unitig\+Colors@{get\+Unitig\+Colors}!Data\+Accessor@{Data\+Accessor}} |
| 196 |
\subsubsection{\texorpdfstring{get\+Unitig\+Colors()}{getUnitigColors()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}} |
| 197 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void$>$ \\ |
| 198 |
\hyperlink{classUnitigColors}{Unitig\+Colors}$\ast$ \hyperlink{classDataAccessor}{Data\+Accessor}$<$ Unitig\+\_\+data\+\_\+t $>$\+::get\+Unitig\+Colors (\begin{DoxyParamCaption}\item[{const \hyperlink{classUnitigMap}{Unitig\+Color\+Map}$<$ U $>$ \&}]{um }\end{DoxyParamCaption}) const} |
| 199 |
|
| 200 |
|
| 201 |
|
| 202 |
Get the colors of the reference unitig. |
| 203 |
|
| 204 |
|
| 205 |
\begin{DoxyParams}{Parameters} |
| 206 |
{\em um} & is a constant reference to a const\+\_\+\+Unitig\+Color\+Map object for which the colors of the reference unitig used in the mapping must be obtained. \\ |
| 207 |
\hline |
| 208 |
\end{DoxyParams} |
| 209 |
\begin{DoxyReturn}{Returns} |
| 210 |
a pointer to a \hyperlink{classUnitigColors}{Unitig\+Colors} object representing the colors of the reference unitig. |
| 211 |
\end{DoxyReturn} |
| 212 |
\mbox{\Hypertarget{classDataAccessor_a662c0fa811a55a750f32fbb7db3bef5c}\label{classDataAccessor_a662c0fa811a55a750f32fbb7db3bef5c}} |
| 213 |
\index{Data\+Accessor@{Data\+Accessor}!merge@{merge}} |
| 214 |
\index{merge@{merge}!Data\+Accessor@{Data\+Accessor}} |
| 215 |
\subsubsection{\texorpdfstring{merge()}{merge()}} |
| 216 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void$>$ \\ |
| 217 |
void \hyperlink{classDataAccessor}{Data\+Accessor}$<$ Unitig\+\_\+data\+\_\+t $>$\+::merge (\begin{DoxyParamCaption}\item[{const \hyperlink{classUnitigMap}{Unitig\+Color\+Map}$<$ U $>$ \&}]{um\+\_\+dest, }\item[{const \hyperlink{classUnitigMap}{const\+\_\+\+Unitig\+Color\+Map}$<$ U $>$ \&}]{um\+\_\+src }\end{DoxyParamCaption})} |
| 218 |
|
| 219 |
|
| 220 |
|
| 221 |
Merge the data and colors of a sub-\/unitig B to the data and colors of a sub-\/unitig A. |
| 222 |
|
| 223 |
The object calling this function represents the data associated with the reference unitig of um\+\_\+dest. The two unitigs A and B are N\+OT guaranteed to be from the same graph. The data of each unitig can be accessed through the \hyperlink{classUnitigMap_a0c40fd1ba2df6af9a0c55b7963e41493}{Unitig\+Map\+::get\+Data}. |
| 224 |
\begin{DoxyParams}{Parameters} |
| 225 |
{\em um\+\_\+dest} & is a Unitig\+Color\+Map object representing a sub-\/unitig (the mapped sequence of the mapping) A. The object calling this function represents the data associated with the reference unitig of um\+\_\+dest. \\ |
| 226 |
\hline |
| 227 |
{\em um\+\_\+src} & is a Unitig\+Color\+Map object representing a sub-\/unitig (the mapped sequence of the mapping) for which the data must be merged with the data of sub-\/unitig B (given by parameter um\+\_\+dest). \\ |
| 228 |
\hline |
| 229 |
\end{DoxyParams} |
| 230 |
\mbox{\Hypertarget{classDataAccessor_aae08bdd0b2c5d077672be826f112cfe1}\label{classDataAccessor_aae08bdd0b2c5d077672be826f112cfe1}} |
| 231 |
\index{Data\+Accessor@{Data\+Accessor}!serialize@{serialize}} |
| 232 |
\index{serialize@{serialize}!Data\+Accessor@{Data\+Accessor}} |
| 233 |
\subsubsection{\texorpdfstring{serialize()}{serialize()}} |
| 234 |
{\footnotesize\ttfamily template$<$typename Unitig\+\_\+data\+\_\+t = void$>$ \\ |
| 235 |
string \hyperlink{classDataAccessor}{Data\+Accessor}$<$ Unitig\+\_\+data\+\_\+t $>$\+::serialize (\begin{DoxyParamCaption}\item[{const \hyperlink{classUnitigMap}{const\+\_\+\+Unitig\+Color\+Map}$<$ U $>$ \&}]{um\+\_\+src }\end{DoxyParamCaption}) const} |
| 236 |
|
| 237 |
|
| 238 |
|
| 239 |
Serialize the data to a G\+F\+A-\/formatted string. |
| 240 |
|
| 241 |
This function is used when the graph is written to disk in G\+FA format. If the returned string is not empty, the string is appended as an optional field to the Segment line matching the unitig to which this data is associated. Note that it is your responsability to add G\+F\+A-\/compatible tags matching your data in the string. |
| 242 |
\begin{DoxyParams}{Parameters} |
| 243 |
{\em um\+\_\+src} & is a const\+\_\+\+Unitig\+Color\+Map object representing the (reference) unitig to which the data to serialize is associated. \\ |
| 244 |
\hline |
| 245 |
\end{DoxyParams} |
| 246 |
\begin{DoxyReturn}{Returns} |
| 247 |
a G\+F\+A-\/formatted string which is the serialization of the data. |
| 248 |
\end{DoxyReturn} |
| 249 |
|
| 250 |
|
| 251 |
The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize} |
| 252 |
\item |
| 253 |
src/\hyperlink{ColorSet_8hpp}{Color\+Set.\+hpp}\item |
| 254 |
src/\hyperlink{DataAccessor_8hpp}{Data\+Accessor.\+hpp}\end{DoxyCompactItemize} |