Debian Codegraph @

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

raw
1 \hypertarget{classKmer}{}\section{Kmer Class Reference}
2 \label{classKmer}\index{Kmer@{Kmer}}
3
4
5 Interface to store and manipulate k-\/mers.
6
7
8 \subsection*{Public Member Functions}
9 \begin{DoxyCompactItemize}
10 \item
11 \mbox{\Hypertarget{classKmer_a5ab9d401261a8bd25968b7be5554bf45}\label{classKmer_a5ab9d401261a8bd25968b7be5554bf45}}
12 \hyperlink{classKmer_a5ab9d401261a8bd25968b7be5554bf45}{Kmer} ()
13 \begin{DoxyCompactList}\small\item\em Constructor (initialize a k-\/mer with \textquotesingle{}A\textquotesingle{} k times). \end{DoxyCompactList}\item
14 \hyperlink{classKmer_a8b6222680b4b2c7ba854f59bdbddc5b6}{Kmer} (const \hyperlink{classKmer}{Kmer} \&o)
15 \begin{DoxyCompactList}\small\item\em Copy constructor (copy a k-\/mer). \end{DoxyCompactList}\item
16 \hyperlink{classKmer_a1fb825d0a9444de791c5bba652d69f1d}{Kmer} (const char $\ast$s)
17 \begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item
18 \hyperlink{classKmer}{Kmer} \& \hyperlink{classKmer_a56dc01450914c70b999ff95893a1df2c}{operator=} (const \hyperlink{classKmer}{Kmer} \&o)
19 \begin{DoxyCompactList}\small\item\em Copy assignment operator (copy a k-\/mer). \end{DoxyCompactList}\item
20 \mbox{\Hypertarget{classKmer_a13f76eacb925e986280191035788bc03}\label{classKmer_a13f76eacb925e986280191035788bc03}}
21 void \hyperlink{classKmer_a13f76eacb925e986280191035788bc03}{set\+\_\+empty} ()
22 \begin{DoxyCompactList}\small\item\em Set a k-\/mer as \char`\"{}empty\char`\"{}. \end{DoxyCompactList}\item
23 \mbox{\Hypertarget{classKmer_aed7e4989323e49f78e3b0ceeaedc21b4}\label{classKmer_aed7e4989323e49f78e3b0ceeaedc21b4}}
24 void \hyperlink{classKmer_aed7e4989323e49f78e3b0ceeaedc21b4}{set\+\_\+deleted} ()
25 \begin{DoxyCompactList}\small\item\em Set a k-\/mer as \char`\"{}deleted\char`\"{}. \end{DoxyCompactList}\item
26 bool \hyperlink{classKmer_a7d0f2060f9bda7c9b29a40e1b991ce85}{operator==} (const \hyperlink{classKmer}{Kmer} \&o) const
27 \begin{DoxyCompactList}\small\item\em Equality comparison operator. \end{DoxyCompactList}\item
28 bool \hyperlink{classKmer_ab859842b0a779eae64aace119eec9244}{operator!=} (const \hyperlink{classKmer}{Kmer} \&o) const
29 \begin{DoxyCompactList}\small\item\em Inequality comparison operator. \end{DoxyCompactList}\item
30 uint64\+\_\+t \hyperlink{classKmer_a11645c016419fec967ab50743cf4c83e}{hash} (const uint64\+\_\+t seed=0) const
31 \begin{DoxyCompactList}\small\item\em Get the hash of a k-\/mer. \end{DoxyCompactList}\item
32 \hyperlink{classKmer}{Kmer} \hyperlink{classKmer_a82924425f6f6bd3e1d746f600936781c}{twin} () const
33 \begin{DoxyCompactList}\small\item\em Get the reverse-\/complement of a k-\/mer. \end{DoxyCompactList}\item
34 \hyperlink{classKmer}{Kmer} \hyperlink{classKmer_a2b86fe792388a910a073d9fc4a811779}{rep} () const
35 \begin{DoxyCompactList}\small\item\em Get the canonical k-\/mer (lexicographically smallest between a k-\/mer and its reverse-\/complement). \end{DoxyCompactList}\item
36 \hyperlink{classKmer}{Kmer} \hyperlink{classKmer_ad21155c7aa0e25973bc8c95047cee78d}{forward\+Base} (const char b) const
37 \begin{DoxyCompactList}\small\item\em Get a new k-\/mer which is the shift of the current k-\/mer of one base on the left with one new character on the right. \end{DoxyCompactList}\item
38 \hyperlink{classKmer}{Kmer} \hyperlink{classKmer_a7670003b3027c3401454dc700ca5b3c5}{backward\+Base} (const char b) const
39 \begin{DoxyCompactList}\small\item\em Get a new k-\/mer which is the shift of the current k-\/mer of one base on the right with one new character on the left. \end{DoxyCompactList}\item
40 void \hyperlink{classKmer_a605ec250880652507ae279f348046936}{self\+Forward\+Base} (const char b)
41 \begin{DoxyCompactList}\small\item\em Shift the current k-\/mer of one base on the left with one new character on the right. \end{DoxyCompactList}\item
42 char \hyperlink{classKmer_af23c636ad07801e49b09565513da451c}{get\+Char} (const size\+\_\+t offset) const
43 \begin{DoxyCompactList}\small\item\em Get the character at a given position in a k-\/mer. \end{DoxyCompactList}\item
44 bool \hyperlink{classKmer_acd1e99defb65ea71c7cf804d3f1e3dc4}{set\+Char} (const size\+\_\+t offset, const char b)
45 \begin{DoxyCompactList}\small\item\em Set a character at a given position in a k-\/mer. \end{DoxyCompactList}\item
46 void \hyperlink{classKmer_a69125d95f234312a670b970cd14d9ef3}{to\+String} (char $\ast$s) const
47 \begin{DoxyCompactList}\small\item\em Get the string of a k-\/mer. \end{DoxyCompactList}\item
48 std\+::string \hyperlink{classKmer_ae394adf5587405c5204a07df6b95cebb}{to\+String} () const
49 \begin{DoxyCompactList}\small\item\em Get the string of a k-\/mer. \end{DoxyCompactList}\item
50 bool \hyperlink{classKmer_afeabfe32515eb278bdab47d5434e8a92}{write} (std\+::ostream \&stream\+\_\+out) const
51 \begin{DoxyCompactList}\small\item\em Write a k-\/mer (binary) to a stream. \end{DoxyCompactList}\item
52 bool \hyperlink{classKmer_ad7e63cd4337067ac247a52f4b8235204}{read} (std\+::istream \&stream\+\_\+in)
53 \begin{DoxyCompactList}\small\item\em Read a k-\/mer (binary) from a stream. \end{DoxyCompactList}\end{DoxyCompactItemize}
54 \subsection*{Static Public Member Functions}
55 \begin{DoxyCompactItemize}
56 \item
57 static void \hyperlink{classKmer_ae76504dbc6fe791fadc50667852a62c8}{set\+\_\+k} (const unsigned int \+\_\+k)
58 \begin{DoxyCompactList}\small\item\em Set the length of k-\/mers. \end{DoxyCompactList}\end{DoxyCompactItemize}
59
60
61 \subsection{Detailed Description}
62 Interface to store and manipulate k-\/mers.
63
64 The default maximum supported k-\/mer size is 31. To work with larger k, you must replace the macro defined M\+A\+X\+\_\+\+K\+M\+E\+R\+\_\+\+S\+I\+ZE with a larger number which is a multiple of 32. For such a number K, the available maximum supported k-\/mer size will be K-\/1. For example, if M\+A\+X\+\_\+\+K\+M\+E\+R\+\_\+\+S\+I\+ZE is defined as 64, the maximum k allowed is 63. Keep in mind that increasing M\+A\+X\+\_\+\+K\+M\+E\+R\+\_\+\+S\+I\+ZE increases memory usage (k=31 uses 8 bytes of memory per k-\/mer while k=63 uses 16 bytes of memory per k-\/mer).
65
66 \subsection{Constructor \& Destructor Documentation}
67 \mbox{\Hypertarget{classKmer_a8b6222680b4b2c7ba854f59bdbddc5b6}\label{classKmer_a8b6222680b4b2c7ba854f59bdbddc5b6}}
68 \index{Kmer@{Kmer}!Kmer@{Kmer}}
69 \index{Kmer@{Kmer}!Kmer@{Kmer}}
70 \subsubsection{\texorpdfstring{Kmer()}{Kmer()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
71 {\footnotesize\ttfamily Kmer\+::\+Kmer (\begin{DoxyParamCaption}\item[{const \hyperlink{classKmer}{Kmer} \&}]{o }\end{DoxyParamCaption})}
72
73
74
75 Copy constructor (copy a k-\/mer).
76
77 After the call to this function, the same k-\/mer exists twice in memory.
78 \begin{DoxyParams}{Parameters}
79 {\em o} & is a constant reference to the k-\/mer to copy \\
80 \hline
81 \end{DoxyParams}
82 \mbox{\Hypertarget{classKmer_a1fb825d0a9444de791c5bba652d69f1d}\label{classKmer_a1fb825d0a9444de791c5bba652d69f1d}}
83 \index{Kmer@{Kmer}!Kmer@{Kmer}}
84 \index{Kmer@{Kmer}!Kmer@{Kmer}}
85 \subsubsection{\texorpdfstring{Kmer()}{Kmer()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
86 {\footnotesize\ttfamily Kmer\+::\+Kmer (\begin{DoxyParamCaption}\item[{const char $\ast$}]{s }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [explicit]}}
87
88
89
90 Constructor.
91
92 Initialize a k-\/mer from a string of characters.
93 \begin{DoxyParams}{Parameters}
94 {\em s} & is a constant pointer to an array of characters. The array of characters must contain valid D\+NA characters (\textquotesingle{}A\textquotesingle{}, \textquotesingle{}C\textquotesingle{}, \textquotesingle{}G\textquotesingle{}, \textquotesingle{}T\textquotesingle{}) and be of length at least k. \\
95 \hline
96 \end{DoxyParams}
97
98
99 \subsection{Member Function Documentation}
100 \mbox{\Hypertarget{classKmer_a7670003b3027c3401454dc700ca5b3c5}\label{classKmer_a7670003b3027c3401454dc700ca5b3c5}}
101 \index{Kmer@{Kmer}!backward\+Base@{backward\+Base}}
102 \index{backward\+Base@{backward\+Base}!Kmer@{Kmer}}
103 \subsubsection{\texorpdfstring{backward\+Base()}{backwardBase()}}
104 {\footnotesize\ttfamily \hyperlink{classKmer}{Kmer} Kmer\+::backward\+Base (\begin{DoxyParamCaption}\item[{const char}]{b }\end{DoxyParamCaption}) const}
105
106
107
108 Get a new k-\/mer which is the shift of the current k-\/mer of one base on the right with one new character on the left.
109
110 For a k-\/mer km of length k, km.\+backward\+Base(b) = b + km\mbox{[}0..k-\/2\mbox{]}.
111 \begin{DoxyParams}{Parameters}
112 {\em b} & is a new character to add on the left of the shifted k-\/mer (as a first character). It must be either \textquotesingle{}A\textquotesingle{}, \textquotesingle{}C\textquotesingle{}, \textquotesingle{}G\textquotesingle{} or \textquotesingle{}T\textquotesingle{}. \\
113 \hline
114 \end{DoxyParams}
115 \begin{DoxyReturn}{Returns}
116 a new k-\/mer which is the shifted k-\/mer.
117 \end{DoxyReturn}
118 \mbox{\Hypertarget{classKmer_ad21155c7aa0e25973bc8c95047cee78d}\label{classKmer_ad21155c7aa0e25973bc8c95047cee78d}}
119 \index{Kmer@{Kmer}!forward\+Base@{forward\+Base}}
120 \index{forward\+Base@{forward\+Base}!Kmer@{Kmer}}
121 \subsubsection{\texorpdfstring{forward\+Base()}{forwardBase()}}
122 {\footnotesize\ttfamily \hyperlink{classKmer}{Kmer} Kmer\+::forward\+Base (\begin{DoxyParamCaption}\item[{const char}]{b }\end{DoxyParamCaption}) const}
123
124
125
126 Get a new k-\/mer which is the shift of the current k-\/mer of one base on the left with one new character on the right.
127
128 For a k-\/mer km of length k, km.\+forward\+Base(b) = km\mbox{[}1..k-\/1\mbox{]} + b.
129 \begin{DoxyParams}{Parameters}
130 {\em b} & is a new character to add on the right of the shifted k-\/mer (as a last character). It must be either \textquotesingle{}A\textquotesingle{}, \textquotesingle{}C\textquotesingle{}, \textquotesingle{}G\textquotesingle{} or \textquotesingle{}T\textquotesingle{}. \\
131 \hline
132 \end{DoxyParams}
133 \begin{DoxyReturn}{Returns}
134 a new k-\/mer which is the shifted k-\/mer.
135 \end{DoxyReturn}
136 \mbox{\Hypertarget{classKmer_af23c636ad07801e49b09565513da451c}\label{classKmer_af23c636ad07801e49b09565513da451c}}
137 \index{Kmer@{Kmer}!get\+Char@{get\+Char}}
138 \index{get\+Char@{get\+Char}!Kmer@{Kmer}}
139 \subsubsection{\texorpdfstring{get\+Char()}{getChar()}}
140 {\footnotesize\ttfamily char Kmer\+::get\+Char (\begin{DoxyParamCaption}\item[{const size\+\_\+t}]{offset }\end{DoxyParamCaption}) const}
141
142
143
144 Get the character at a given position in a k-\/mer.
145
146
147 \begin{DoxyParams}{Parameters}
148 {\em offset} & is the position of the character to get in the k-\/mer. \\
149 \hline
150 \end{DoxyParams}
151 \begin{DoxyReturn}{Returns}
152 the character to get in the k-\/mer
153 \end{DoxyReturn}
154 \mbox{\Hypertarget{classKmer_a11645c016419fec967ab50743cf4c83e}\label{classKmer_a11645c016419fec967ab50743cf4c83e}}
155 \index{Kmer@{Kmer}!hash@{hash}}
156 \index{hash@{hash}!Kmer@{Kmer}}
157 \subsubsection{\texorpdfstring{hash()}{hash()}}
158 {\footnotesize\ttfamily uint64\+\_\+t Kmer\+::hash (\begin{DoxyParamCaption}\item[{const uint64\+\_\+t}]{seed = {\ttfamily 0} }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}
159
160
161
162 Get the hash of a k-\/mer.
163
164
165 \begin{DoxyParams}{Parameters}
166 {\em seed} & is a seed number for the hash function (0 by default). \\
167 \hline
168 \end{DoxyParams}
169 \begin{DoxyReturn}{Returns}
170 a hash of the k-\/mer.
171 \end{DoxyReturn}
172 \mbox{\Hypertarget{classKmer_ab859842b0a779eae64aace119eec9244}\label{classKmer_ab859842b0a779eae64aace119eec9244}}
173 \index{Kmer@{Kmer}!operator"!=@{operator"!=}}
174 \index{operator"!=@{operator"!=}!Kmer@{Kmer}}
175 \subsubsection{\texorpdfstring{operator"!=()}{operator!=()}}
176 {\footnotesize\ttfamily bool Kmer\+::operator!= (\begin{DoxyParamCaption}\item[{const \hyperlink{classKmer}{Kmer} \&}]{o }\end{DoxyParamCaption}) const}
177
178
179
180 Inequality comparison operator.
181
182
183 \begin{DoxyParams}{Parameters}
184 {\em o} & is a constant reference to the k-\/mer to compare to. \\
185 \hline
186 \end{DoxyParams}
187 \begin{DoxyReturn}{Returns}
188 a boolean indicating if two k-\/mers are the different (true), including their \char`\"{}empty\char`\"{} and \char`\"{}deleted\char`\"{} flags, or not (false).
189 \end{DoxyReturn}
190 \mbox{\Hypertarget{classKmer_a56dc01450914c70b999ff95893a1df2c}\label{classKmer_a56dc01450914c70b999ff95893a1df2c}}
191 \index{Kmer@{Kmer}!operator=@{operator=}}
192 \index{operator=@{operator=}!Kmer@{Kmer}}
193 \subsubsection{\texorpdfstring{operator=()}{operator=()}}
194 {\footnotesize\ttfamily \hyperlink{classKmer}{Kmer}\& Kmer\+::operator= (\begin{DoxyParamCaption}\item[{const \hyperlink{classKmer}{Kmer} \&}]{o }\end{DoxyParamCaption})}
195
196
197
198 Copy assignment operator (copy a k-\/mer).
199
200 After the call to this function, the same k-\/mer exists twice in memory.
201 \begin{DoxyParams}{Parameters}
202 {\em o} & is a constant reference to the k-\/mer to copy \\
203 \hline
204 \end{DoxyParams}
205 \mbox{\Hypertarget{classKmer_a7d0f2060f9bda7c9b29a40e1b991ce85}\label{classKmer_a7d0f2060f9bda7c9b29a40e1b991ce85}}
206 \index{Kmer@{Kmer}!operator==@{operator==}}
207 \index{operator==@{operator==}!Kmer@{Kmer}}
208 \subsubsection{\texorpdfstring{operator==()}{operator==()}}
209 {\footnotesize\ttfamily bool Kmer\+::operator== (\begin{DoxyParamCaption}\item[{const \hyperlink{classKmer}{Kmer} \&}]{o }\end{DoxyParamCaption}) const}
210
211
212
213 Equality comparison operator.
214
215
216 \begin{DoxyParams}{Parameters}
217 {\em o} & is a constant reference to the k-\/mer to compare to. \\
218 \hline
219 \end{DoxyParams}
220 \begin{DoxyReturn}{Returns}
221 a boolean indicating if two k-\/mers are the same (true), including their \char`\"{}empty\char`\"{} and \char`\"{}deleted\char`\"{} flags, or not (false).
222 \end{DoxyReturn}
223 \mbox{\Hypertarget{classKmer_ad7e63cd4337067ac247a52f4b8235204}\label{classKmer_ad7e63cd4337067ac247a52f4b8235204}}
224 \index{Kmer@{Kmer}!read@{read}}
225 \index{read@{read}!Kmer@{Kmer}}
226 \subsubsection{\texorpdfstring{read()}{read()}}
227 {\footnotesize\ttfamily bool Kmer\+::read (\begin{DoxyParamCaption}\item[{std\+::istream \&}]{stream\+\_\+in }\end{DoxyParamCaption})}
228
229
230
231 Read a k-\/mer (binary) from a stream.
232
233 The stream must be opened prior to this function call and it won\textquotesingle{}t be closed by this function.
234 \begin{DoxyParams}{Parameters}
235 {\em stream\+\_\+in} & is an in stream from which the k-\/mer must be read. The stream must be opened prior to this function call and it won\textquotesingle{}t be closed by this function. \\
236 \hline
237 \end{DoxyParams}
238 \begin{DoxyReturn}{Returns}
239 a boolean indicating if the reading was successful (true) or not.
240 \end{DoxyReturn}
241 \mbox{\Hypertarget{classKmer_a2b86fe792388a910a073d9fc4a811779}\label{classKmer_a2b86fe792388a910a073d9fc4a811779}}
242 \index{Kmer@{Kmer}!rep@{rep}}
243 \index{rep@{rep}!Kmer@{Kmer}}
244 \subsubsection{\texorpdfstring{rep()}{rep()}}
245 {\footnotesize\ttfamily \hyperlink{classKmer}{Kmer} Kmer\+::rep (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}
246
247
248
249 Get the canonical k-\/mer (lexicographically smallest between a k-\/mer and its reverse-\/complement).
250
251 \begin{DoxyReturn}{Returns}
252 a new k-\/mer which is the canonical k-\/mer.
253 \end{DoxyReturn}
254 \mbox{\Hypertarget{classKmer_a605ec250880652507ae279f348046936}\label{classKmer_a605ec250880652507ae279f348046936}}
255 \index{Kmer@{Kmer}!self\+Forward\+Base@{self\+Forward\+Base}}
256 \index{self\+Forward\+Base@{self\+Forward\+Base}!Kmer@{Kmer}}
257 \subsubsection{\texorpdfstring{self\+Forward\+Base()}{selfForwardBase()}}
258 {\footnotesize\ttfamily void Kmer\+::self\+Forward\+Base (\begin{DoxyParamCaption}\item[{const char}]{b }\end{DoxyParamCaption})}
259
260
261
262 Shift the current k-\/mer of one base on the left with one new character on the right.
263
264
265 \begin{DoxyParams}{Parameters}
266 {\em b} & is a new character to add on the right (as a last character) after shifting the current k-\/mer. It must be either \textquotesingle{}A\textquotesingle{}, \textquotesingle{}C\textquotesingle{}, \textquotesingle{}G\textquotesingle{} or \textquotesingle{}T\textquotesingle{}. \\
267 \hline
268 \end{DoxyParams}
269 \mbox{\Hypertarget{classKmer_ae76504dbc6fe791fadc50667852a62c8}\label{classKmer_ae76504dbc6fe791fadc50667852a62c8}}
270 \index{Kmer@{Kmer}!set\+\_\+k@{set\+\_\+k}}
271 \index{set\+\_\+k@{set\+\_\+k}!Kmer@{Kmer}}
272 \subsubsection{\texorpdfstring{set\+\_\+k()}{set\_k()}}
273 {\footnotesize\ttfamily static void Kmer\+::set\+\_\+k (\begin{DoxyParamCaption}\item[{const unsigned int}]{\+\_\+k }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}
274
275
276
277 Set the length of k-\/mers.
278
279 After this function call, all \hyperlink{classKmer}{Kmer} functions considers \+\_\+k to be the k-\/mer length.
280 \begin{DoxyParams}{Parameters}
281 {\em \+\_\+k} & is the k-\/mer length to set. \\
282 \hline
283 \end{DoxyParams}
284 \mbox{\Hypertarget{classKmer_acd1e99defb65ea71c7cf804d3f1e3dc4}\label{classKmer_acd1e99defb65ea71c7cf804d3f1e3dc4}}
285 \index{Kmer@{Kmer}!set\+Char@{set\+Char}}
286 \index{set\+Char@{set\+Char}!Kmer@{Kmer}}
287 \subsubsection{\texorpdfstring{set\+Char()}{setChar()}}
288 {\footnotesize\ttfamily bool Kmer\+::set\+Char (\begin{DoxyParamCaption}\item[{const size\+\_\+t}]{offset, }\item[{const char}]{b }\end{DoxyParamCaption})}
289
290
291
292 Set a character at a given position in a k-\/mer.
293
294
295 \begin{DoxyParams}{Parameters}
296 {\em offset} & is the position of the character to set in the k-\/mer. \\
297 \hline
298 {\em b} & is the character to set. It must be either \textquotesingle{}A\textquotesingle{}, \textquotesingle{}C\textquotesingle{}, \textquotesingle{}G\textquotesingle{} or \textquotesingle{}T\textquotesingle{}. \\
299 \hline
300 \end{DoxyParams}
301 \begin{DoxyReturn}{Returns}
302 a boolean indicating if the character was succesfully set. The boolean will be equal to false if offset $>$ k-\/mer length or if the character to set is not \textquotesingle{}A\textquotesingle{}, \textquotesingle{}C\textquotesingle{}, \textquotesingle{}G\textquotesingle{} or \textquotesingle{}T\textquotesingle{}.
303 \end{DoxyReturn}
304 \mbox{\Hypertarget{classKmer_a69125d95f234312a670b970cd14d9ef3}\label{classKmer_a69125d95f234312a670b970cd14d9ef3}}
305 \index{Kmer@{Kmer}!to\+String@{to\+String}}
306 \index{to\+String@{to\+String}!Kmer@{Kmer}}
307 \subsubsection{\texorpdfstring{to\+String()}{toString()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
308 {\footnotesize\ttfamily void Kmer\+::to\+String (\begin{DoxyParamCaption}\item[{char $\ast$}]{s }\end{DoxyParamCaption}) const}
309
310
311
312 Get the string of a k-\/mer.
313
314
315 \begin{DoxyParams}{Parameters}
316 {\em s} & is a pointer to an array of characters that will be set with the string of a k-\/mer. \\
317 \hline
318 \end{DoxyParams}
319 \mbox{\Hypertarget{classKmer_ae394adf5587405c5204a07df6b95cebb}\label{classKmer_ae394adf5587405c5204a07df6b95cebb}}
320 \index{Kmer@{Kmer}!to\+String@{to\+String}}
321 \index{to\+String@{to\+String}!Kmer@{Kmer}}
322 \subsubsection{\texorpdfstring{to\+String()}{toString()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
323 {\footnotesize\ttfamily std\+::string Kmer\+::to\+String (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}
324
325
326
327 Get the string of a k-\/mer.
328
329 \begin{DoxyReturn}{Returns}
330 the string of a k-\/mer.
331 \end{DoxyReturn}
332 \mbox{\Hypertarget{classKmer_a82924425f6f6bd3e1d746f600936781c}\label{classKmer_a82924425f6f6bd3e1d746f600936781c}}
333 \index{Kmer@{Kmer}!twin@{twin}}
334 \index{twin@{twin}!Kmer@{Kmer}}
335 \subsubsection{\texorpdfstring{twin()}{twin()}}
336 {\footnotesize\ttfamily \hyperlink{classKmer}{Kmer} Kmer\+::twin (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}
337
338
339
340 Get the reverse-\/complement of a k-\/mer.
341
342 \begin{DoxyReturn}{Returns}
343 a new k-\/mer which is the reverse-\/complement.
344 \end{DoxyReturn}
345 \mbox{\Hypertarget{classKmer_afeabfe32515eb278bdab47d5434e8a92}\label{classKmer_afeabfe32515eb278bdab47d5434e8a92}}
346 \index{Kmer@{Kmer}!write@{write}}
347 \index{write@{write}!Kmer@{Kmer}}
348 \subsubsection{\texorpdfstring{write()}{write()}}
349 {\footnotesize\ttfamily bool Kmer\+::write (\begin{DoxyParamCaption}\item[{std\+::ostream \&}]{stream\+\_\+out }\end{DoxyParamCaption}) const}
350
351
352
353 Write a k-\/mer (binary) to a stream.
354
355 The stream must be opened prior to this function call and it won\textquotesingle{}t be closed by this function.
356 \begin{DoxyParams}{Parameters}
357 {\em stream\+\_\+out} & is an out stream to which the k-\/mer must be written to. The stream must be opened prior to this function call and it won\textquotesingle{}t be closed by this function. \\
358 \hline
359 \end{DoxyParams}
360 \begin{DoxyReturn}{Returns}
361 a boolean indicating if the writing was successful (true) or not.
362 \end{DoxyReturn}
363
364
365 The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
366 \item
367 src/\hyperlink{Kmer_8hpp}{Kmer.\+hpp}\end{DoxyCompactItemize}