| 1 |
\hypertarget{bft_8h}{}\section{include/bft.h File Reference} |
| 2 |
\label{bft_8h}\index{include/bft.\+h@{include/bft.\+h}} |
| 3 |
|
| 4 |
|
| 5 |
Interface containing all functions to use a B\+FT. |
| 6 |
|
| 7 |
|
| 8 |
\subsection*{Data Structures} |
| 9 |
\begin{DoxyCompactItemize} |
| 10 |
\item |
| 11 |
struct \hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation} |
| 12 |
\begin{DoxyCompactList}\small\item\em Annotation associated with a \hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer}. \end{DoxyCompactList}\end{DoxyCompactItemize} |
| 13 |
\subsection*{Typedefs} |
| 14 |
\begin{DoxyCompactItemize} |
| 15 |
\item |
| 16 |
typedef \hyperlink{structBFT__Root}{B\+F\+T\+\_\+\+Root} \hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} |
| 17 |
\begin{DoxyCompactList}\small\item\em Root vertex of a B\+FT. \end{DoxyCompactList}\item |
| 18 |
typedef size\+\_\+t($\ast$ \hyperlink{bft_8h_aac9ee38523fda7ab4f8eb1238e98d315}{B\+F\+T\+\_\+func\+\_\+ptr}) (\hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} $\ast$bft\+\_\+kmer, \hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft, va\+\_\+list args) |
| 19 |
\begin{DoxyCompactList}\small\item\em Pointer on function used by \hyperlink{bft_8h_af3cb2e5bd87fc7c7f7240986bf7351fe}{iterate\+\_\+over\+\_\+kmers()} and \hyperlink{bft_8h_aa616e55874abfd5811c8854586718c35}{v\+\_\+iterate\+\_\+over\+\_\+kmers()}. \end{DoxyCompactList}\end{DoxyCompactItemize} |
| 20 |
\subsection*{Functions} |
| 21 |
\begin{Indent}{\bf Annotation functions}\par |
| 22 |
{\em These functions manipulate annotations (color sets). }\begin{DoxyCompactItemize} |
| 23 |
\item |
| 24 |
uint8\+\_\+t {\bfseries intersection\+\_\+annots} (const uint8\+\_\+t a, const uint8\+\_\+t b)\hypertarget{bft_8h_a31ae9116fb7f9497a1fedfdbb4d85b5c}{}\label{bft_8h_a31ae9116fb7f9497a1fedfdbb4d85b5c} |
| 25 |
|
| 26 |
\item |
| 27 |
uint8\+\_\+t {\bfseries union\+\_\+annots} (const uint8\+\_\+t a, const uint8\+\_\+t b)\hypertarget{bft_8h_a57517727d6f754a335511ffea3037aea}{}\label{bft_8h_a57517727d6f754a335511ffea3037aea} |
| 28 |
|
| 29 |
\item |
| 30 |
uint8\+\_\+t {\bfseries sym\+\_\+difference\+\_\+annots} (const uint8\+\_\+t a, const uint8\+\_\+t b)\hypertarget{bft_8h_a90b9faa42161ee553cbd356a850372c4}{}\label{bft_8h_a90b9faa42161ee553cbd356a850372c4} |
| 31 |
|
| 32 |
\item |
| 33 |
\hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation} $\ast$ \hyperlink{bft_8h_a553468d3d32fef3b9573e2822086743e}{create\+\_\+\+B\+F\+T\+\_\+annotation} () |
| 34 |
\begin{DoxyCompactList}\small\item\em Function creating an empty \hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation}. \end{DoxyCompactList}\item |
| 35 |
void \hyperlink{bft_8h_af399db7486e5ca6ec2e5c089c946d9f9}{free\+\_\+\+B\+F\+T\+\_\+annotation} (\hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation} $\ast$bft\+\_\+annot) |
| 36 |
\begin{DoxyCompactList}\small\item\em Function freeing a \hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation}. \end{DoxyCompactList}\item |
| 37 |
\hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation} $\ast$ \hyperlink{bft_8h_a77adc497006eb9aeca0987aca66d1f91}{get\+\_\+annotation} (\hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} $\ast$bft\+\_\+kmer) |
| 38 |
\begin{DoxyCompactList}\small\item\em Function extracting the annotation (set of colors) associated with a k-\/mer of a B\+FT. \end{DoxyCompactList}\item |
| 39 |
bool \hyperlink{bft_8h_a373c016bb3d180d9cb77ce3df04e5774}{presence\+\_\+genome} (uint32\+\_\+t id\+\_\+genome, \hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation} $\ast$bft\+\_\+annot, \hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft) |
| 40 |
\begin{DoxyCompactList}\small\item\em Function testing if a k-\/mer occured in a genome. \end{DoxyCompactList}\item |
| 41 |
\hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation} $\ast$ \hyperlink{bft_8h_afa7efdad6e5ee85274d60d74cb9dd982}{intersection\+\_\+annotations} (\hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft, uint32\+\_\+t nb\+\_\+annotations,...) |
| 42 |
\begin{DoxyCompactList}\small\item\em Function computing the intersection of a set of annotations. \end{DoxyCompactList}\item |
| 43 |
\hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation} $\ast$ \hyperlink{bft_8h_a3496af65565b70b2381af7315cda9bda}{union\+\_\+annotations} (\hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft, uint32\+\_\+t nb\+\_\+annotations,...) |
| 44 |
\begin{DoxyCompactList}\small\item\em Function computing the union of a set of annotations. \end{DoxyCompactList}\item |
| 45 |
\hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation} $\ast$ \hyperlink{bft_8h_af7a212e5c8cc93ff0593f39e62b89e81}{sym\+\_\+difference\+\_\+annotations} (\hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft, uint32\+\_\+t nb\+\_\+annotations,...) |
| 46 |
\begin{DoxyCompactList}\small\item\em Function computing the symmetric difference of a set of annotations. \end{DoxyCompactList}\item |
| 47 |
uint32\+\_\+t $\ast$ \hyperlink{bft_8h_a30fc123ce1cdef3941a5047de3f0689e}{get\+\_\+list\+\_\+id\+\_\+genomes} (\hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation} $\ast$bft\+\_\+annot, \hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft) |
| 48 |
\begin{DoxyCompactList}\small\item\em Function extracting a list of genome identifiers from an annotation. \end{DoxyCompactList}\item |
| 49 |
uint32\+\_\+t \hyperlink{bft_8h_a1925619b46da07aac7ce2e7d4d0dddab}{get\+\_\+count\+\_\+id\+\_\+genomes} (\hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation} $\ast$bft\+\_\+annot, \hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft) |
| 50 |
\begin{DoxyCompactList}\small\item\em Function counting the number of genome identifiers in an annotation. \end{DoxyCompactList}\item |
| 51 |
uint32\+\_\+t $\ast$ {\bfseries intersection\+\_\+list\+\_\+id\+\_\+genomes} (uint32\+\_\+t $\ast$list\+\_\+a, uint32\+\_\+t $\ast$list\+\_\+b)\hypertarget{bft_8h_ad09ddf86f70dedc2a20f73fed9c350a7}{}\label{bft_8h_ad09ddf86f70dedc2a20f73fed9c350a7} |
| 52 |
|
| 53 |
\end{DoxyCompactItemize} |
| 54 |
\end{Indent} |
| 55 |
\begin{Indent}{\bf Graph functions}\par |
| 56 |
{\em These functions manipulate a colored de Bruijn graph stored in a B\+FT. }\begin{DoxyCompactItemize} |
| 57 |
\item |
| 58 |
\hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$ \hyperlink{bft_8h_aa70504eb287a2936e88d4ea36beac9a6}{create\+\_\+cdbg} (int k, int treshold\+\_\+compression) |
| 59 |
\begin{DoxyCompactList}\small\item\em Function creating a colored de Bruijn graph stored in a B\+FT. \end{DoxyCompactList}\item |
| 60 |
void \hyperlink{bft_8h_a2bd7d66178b29578107ef6983393af6b}{free\+\_\+cdbg} (\hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft) |
| 61 |
\begin{DoxyCompactList}\small\item\em Free an allocated colored de Bruijn graph stored in a B\+FT. \end{DoxyCompactList}\end{DoxyCompactItemize} |
| 62 |
\end{Indent} |
| 63 |
\begin{Indent}{\bf Insertion functions}\par |
| 64 |
{\em These functions insert genomes in a colored de Bruijn graph stored in a B\+FT. }\begin{DoxyCompactItemize} |
| 65 |
\item |
| 66 |
void \hyperlink{bft_8h_a856f1613edf5cf8b62193464c911817d}{insert\+\_\+genomes\+\_\+from\+\_\+files} (int nb\+\_\+files, char $\ast$$\ast$paths, \hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft, char $\ast$prefix\+\_\+bft\+\_\+filename) |
| 67 |
\begin{DoxyCompactList}\small\item\em Function inserting genomes (k-\/mer file) in a B\+FT. \end{DoxyCompactList}\item |
| 68 |
void \hyperlink{bft_8h_ab72ebe2b5cb0b720f96a4e883678d076}{insert\+\_\+kmers\+\_\+new\+\_\+genome} (int nb\+\_\+kmers, char $\ast$$\ast$kmers, char $\ast$genome\+\_\+name, \hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft) |
| 69 |
\begin{DoxyCompactList}\small\item\em Function inserting k-\/mers of a new genome in a B\+FT. \end{DoxyCompactList}\item |
| 70 |
void \hyperlink{bft_8h_a4e4b73220989248a6ee1160840f80763}{insert\+\_\+kmers\+\_\+last\+\_\+genome} (int nb\+\_\+kmers, char $\ast$$\ast$kmers, \hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft) |
| 71 |
\begin{DoxyCompactList}\small\item\em Function inserting k-\/mers of the last inserted genome in a B\+FT. \end{DoxyCompactList}\end{DoxyCompactItemize} |
| 72 |
\end{Indent} |
| 73 |
\begin{Indent}{\bf K-\/mer functions}\par |
| 74 |
{\em These functions manipulate k-\/mers. }\begin{DoxyCompactItemize} |
| 75 |
\item |
| 76 |
\hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} $\ast$ \hyperlink{bft_8h_a77d9ca17c70d921a5fcac4330e58e1bd}{create\+\_\+kmer} (const char $\ast$kmer, int k) |
| 77 |
\begin{DoxyCompactList}\small\item\em Function creating a \hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} object from a k-\/mer encoded as an A\+S\+C\+II string (char$\ast$). \end{DoxyCompactList}\item |
| 78 |
\hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} $\ast$ \hyperlink{bft_8h_aa578ba0f01a0c27f920eef148a0bb3f0}{create\+\_\+empty\+\_\+kmer} () |
| 79 |
\begin{DoxyCompactList}\small\item\em Function creating an empty \hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} object (all its components are N\+U\+LL). \end{DoxyCompactList}\item |
| 80 |
void \hyperlink{bft_8h_a808fac5a22a9885a82901a9afdb15c18}{free\+\_\+\+B\+F\+T\+\_\+kmer} (\hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} $\ast$bft\+\_\+kmer, int nb\+\_\+bft\+\_\+kmer) |
| 81 |
\begin{DoxyCompactList}\small\item\em Function freeing allocated B\+F\+T\+\_\+kmers. \end{DoxyCompactList}\item |
| 82 |
void \hyperlink{bft_8h_ac5c1b6b0b04abfdf205f966299f042fd}{free\+\_\+\+B\+F\+T\+\_\+kmer\+\_\+content} (\hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} $\ast$bft\+\_\+kmer, int nb\+\_\+bft\+\_\+kmer) |
| 83 |
\begin{DoxyCompactList}\small\item\em Function freeing the content of allocated B\+F\+T\+\_\+kmers. \end{DoxyCompactList}\item |
| 84 |
void \hyperlink{bft_8h_ab9b8daf6a5685786083c258526ef87cb}{extract\+\_\+kmers\+\_\+to\+\_\+disk} (\hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft, char $\ast$filename\+\_\+output, bool compressed\+\_\+output) |
| 85 |
\begin{DoxyCompactList}\small\item\em Function extracting the k-\/mers of a B\+FT in a file. \end{DoxyCompactList}\item |
| 86 |
size\+\_\+t \hyperlink{bft_8h_a76832aa3bffe26b997a562f56ce4fcba}{write\+\_\+kmer\+\_\+ascii\+\_\+to\+\_\+disk} (\hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} $\ast$bft\+\_\+kmer, \hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft, va\+\_\+list args) |
| 87 |
\begin{DoxyCompactList}\small\item\em Function writing an A\+S\+C\+II k-\/mer in a file. \end{DoxyCompactList}\item |
| 88 |
size\+\_\+t \hyperlink{bft_8h_a77a802e5edc240a7a6a705ef6593799d}{write\+\_\+kmer\+\_\+comp\+\_\+to\+\_\+disk} (\hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} $\ast$bft\+\_\+kmer, \hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft, va\+\_\+list args) |
| 89 |
\begin{DoxyCompactList}\small\item\em Function writing an 2 bits encoded k-\/mer in a file. \end{DoxyCompactList}\end{DoxyCompactItemize} |
| 90 |
\end{Indent} |
| 91 |
\begin{Indent}{\bf Query functions}\par |
| 92 |
{\em These functions query for k-\/mers or sequences. }\begin{DoxyCompactItemize} |
| 93 |
\item |
| 94 |
\hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} $\ast$ \hyperlink{bft_8h_a67f15f4eeebe6fe620c467f8180e1f31}{get\+\_\+kmer} (const char $\ast$kmer, \hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft) |
| 95 |
\begin{DoxyCompactList}\small\item\em Function searching for a k-\/mer in a B\+FT. \end{DoxyCompactList}\item |
| 96 |
bool \hyperlink{bft_8h_a170137e867f0ba24423badc9e1db872b}{is\+\_\+kmer\+\_\+in\+\_\+cdbg} (\hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} $\ast$bft\+\_\+kmer) |
| 97 |
\begin{DoxyCompactList}\small\item\em Function testing if a k-\/mer is in a B\+FT. \end{DoxyCompactList}\item |
| 98 |
uint32\+\_\+t $\ast$ \hyperlink{bft_8h_aa9806cafe5d6941638f125d59db61fa8}{query\+\_\+sequence} (\hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft, char $\ast$sequence, double threshold, bool canonical\+\_\+search) |
| 99 |
\begin{DoxyCompactList}\small\item\em Function querying a B\+FT for a sequence. \end{DoxyCompactList}\end{DoxyCompactItemize} |
| 100 |
\end{Indent} |
| 101 |
\begin{Indent}{\bf Pattern matching functions}\par |
| 102 |
{\em These functions provide pattern matching functionalities over the k-\/mers or paths of a colored de Bruijn graph stored as a B\+FT. }\begin{DoxyCompactItemize} |
| 103 |
\item |
| 104 |
bool \hyperlink{bft_8h_a6f93be4a2e37c7355c79079e8c38530a}{prefix\+\_\+matching} (\hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft, char $\ast$prefix, \hyperlink{bft_8h_aac9ee38523fda7ab4f8eb1238e98d315}{B\+F\+T\+\_\+func\+\_\+ptr} f,...) |
| 105 |
\begin{DoxyCompactList}\small\item\em Function for prefix matching over the k-\/mers of a B\+FT. \end{DoxyCompactList}\end{DoxyCompactItemize} |
| 106 |
\end{Indent} |
| 107 |
\begin{Indent}{\bf Marking functions}\par |
| 108 |
{\em These functions allow to mark k-\/mers of a colored de Bruijn graph with flags. }\begin{DoxyCompactItemize} |
| 109 |
\item |
| 110 |
void \hyperlink{bft_8h_ae3c4297d5058193972b3d54219d3f818}{set\+\_\+marking} (\hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft) |
| 111 |
\begin{DoxyCompactList}\small\item\em Function locking and preparing the graph for vertices marking (no insertion can happen before unlocking). \end{DoxyCompactList}\item |
| 112 |
void \hyperlink{bft_8h_a1136ae628a88730d64de12a1807e6b11}{unset\+\_\+marking} (\hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft) |
| 113 |
\begin{DoxyCompactList}\small\item\em Function unlocking and the graph locked for vertices marking. \end{DoxyCompactList}\item |
| 114 |
void \hyperlink{bft_8h_aec4a612e2beec69b717be9e972fa16cb}{set\+\_\+flag\+\_\+kmer} (uint8\+\_\+t flag, \hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} $\ast$bft\+\_\+kmer, \hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft) |
| 115 |
\begin{DoxyCompactList}\small\item\em Function marking a k-\/mer of a B\+FT with a flag. \end{DoxyCompactList}\item |
| 116 |
uint8\+\_\+t \hyperlink{bft_8h_a6716b0afd3aa0b22bffd1a5fe8e4058f}{get\+\_\+flag\+\_\+kmer} (\hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} $\ast$bft\+\_\+kmer, \hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft) |
| 117 |
\begin{DoxyCompactList}\small\item\em Function getting a k-\/mer of a B\+FT with a flag. \end{DoxyCompactList}\end{DoxyCompactItemize} |
| 118 |
\end{Indent} |
| 119 |
\begin{Indent}{\bf Traversal functions}\par |
| 120 |
{\em These functions allow to traverse a colored de Bruijn graph stored as a B\+FT. }\begin{DoxyCompactItemize} |
| 121 |
\item |
| 122 |
void \hyperlink{bft_8h_a7d5fc753178e2a65e4cf84c81a7a8c25}{set\+\_\+neighbors\+\_\+traversal} (\hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft) |
| 123 |
\begin{DoxyCompactList}\small\item\em Function locking the graph for traversal. \end{DoxyCompactList}\item |
| 124 |
void \hyperlink{bft_8h_af273f713203ce229496cafc0a5b2806e}{unset\+\_\+neighbors\+\_\+traversal} (\hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft) |
| 125 |
\begin{DoxyCompactList}\small\item\em Function unlocking a locked graph for traversal. \end{DoxyCompactList}\item |
| 126 |
\hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} $\ast$ \hyperlink{bft_8h_a2abcf02bdb06a7abff05c76e118e20bf}{get\+\_\+neighbors} (\hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} $\ast$bft\+\_\+kmer, \hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft) |
| 127 |
\begin{DoxyCompactList}\small\item\em Function extracting the neighbors of a k-\/mer. \end{DoxyCompactList}\item |
| 128 |
\hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} $\ast$ \hyperlink{bft_8h_a08169f0b2c3c7951b1aa3b2f75a535c3}{get\+\_\+predecessors} (\hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} $\ast$bft\+\_\+kmer, \hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft) |
| 129 |
\begin{DoxyCompactList}\small\item\em Function extracting the predecessors of a k-\/mer. \end{DoxyCompactList}\item |
| 130 |
\hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} $\ast$ \hyperlink{bft_8h_aeb7859ff27d5bdf0c60aebc088415d57}{get\+\_\+successors} (\hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} $\ast$bft\+\_\+kmer, \hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft) |
| 131 |
\begin{DoxyCompactList}\small\item\em Function extracting the successors of a k-\/mer. \end{DoxyCompactList}\end{DoxyCompactItemize} |
| 132 |
\end{Indent} |
| 133 |
\begin{Indent}{\bf Iteration functions}\par |
| 134 |
{\em These functions iterate over the k-\/mers of a colored de Bruijn graph stored as a B\+FT. }\begin{DoxyCompactItemize} |
| 135 |
\item |
| 136 |
void \hyperlink{bft_8h_af3cb2e5bd87fc7c7f7240986bf7351fe}{iterate\+\_\+over\+\_\+kmers} (\hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft, \hyperlink{bft_8h_aac9ee38523fda7ab4f8eb1238e98d315}{B\+F\+T\+\_\+func\+\_\+ptr} f,...) |
| 137 |
\begin{DoxyCompactList}\small\item\em Function iterating over the k-\/mers of a B\+FT. \end{DoxyCompactList}\item |
| 138 |
void \hyperlink{bft_8h_aa616e55874abfd5811c8854586718c35}{v\+\_\+iterate\+\_\+over\+\_\+kmers} (\hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft, \hyperlink{bft_8h_aac9ee38523fda7ab4f8eb1238e98d315}{B\+F\+T\+\_\+func\+\_\+ptr} f, va\+\_\+list args) |
| 139 |
\begin{DoxyCompactList}\small\item\em Function iterating over the k-\/mers of a B\+FT. \end{DoxyCompactList}\end{DoxyCompactItemize} |
| 140 |
\end{Indent} |
| 141 |
\begin{Indent}{\bf Disk I/O functions}\par |
| 142 |
{\em These functions write and load a B\+FT from disk. }\begin{DoxyCompactItemize} |
| 143 |
\item |
| 144 |
void \hyperlink{bft_8h_a51347017832238592f50046c47903aeb}{write\+\_\+\+B\+FT} (\hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$bft, char $\ast$filename, bool compress\+\_\+annotations) |
| 145 |
\begin{DoxyCompactList}\small\item\em Function writing a B\+FT to disk. \end{DoxyCompactList}\item |
| 146 |
\hyperlink{bft_8h_a2db0a80fe662d044625641531e5ce292}{B\+FT} $\ast$ \hyperlink{bft_8h_aa6bb2c0f8644e81d5f00d888c615fea1}{load\+\_\+\+B\+FT} (char $\ast$filename) |
| 147 |
\begin{DoxyCompactList}\small\item\em Function loading a B\+FT from disk. \end{DoxyCompactList}\end{DoxyCompactItemize} |
| 148 |
\end{Indent} |
| 149 |
|
| 150 |
|
| 151 |
\subsection{Detailed Description} |
| 152 |
Interface containing all functions to use a B\+FT. |
| 153 |
|
| 154 |
Code snippets using this interface are provided in \hyperlink{snippets_8h}{snippets.\+h}. |
| 155 |
|
| 156 |
\subsection{Typedef Documentation} |
| 157 |
\index{bft.\+h@{bft.\+h}!B\+FT@{B\+FT}} |
| 158 |
\index{B\+FT@{B\+FT}!bft.\+h@{bft.\+h}} |
| 159 |
\subsubsection[{\texorpdfstring{B\+FT}{BFT}}]{\setlength{\rightskip}{0pt plus 5cm}typedef {\bf B\+F\+T\+\_\+\+Root} {\bf B\+FT}}\hypertarget{bft_8h_a2db0a80fe662d044625641531e5ce292}{}\label{bft_8h_a2db0a80fe662d044625641531e5ce292} |
| 160 |
|
| 161 |
|
| 162 |
Root vertex of a B\+FT. |
| 163 |
|
| 164 |
A \hyperlink{structBFT__Root}{B\+F\+T\+\_\+\+Root} contains the k-\/mer size as well as the number and name of the inserted genomes. Other contained structures and variables are for internal use only and must not be modified. \index{bft.\+h@{bft.\+h}!B\+F\+T\+\_\+func\+\_\+ptr@{B\+F\+T\+\_\+func\+\_\+ptr}} |
| 165 |
\index{B\+F\+T\+\_\+func\+\_\+ptr@{B\+F\+T\+\_\+func\+\_\+ptr}!bft.\+h@{bft.\+h}} |
| 166 |
\subsubsection[{\texorpdfstring{B\+F\+T\+\_\+func\+\_\+ptr}{BFT_func_ptr}}]{\setlength{\rightskip}{0pt plus 5cm}typedef size\+\_\+t($\ast$ B\+F\+T\+\_\+func\+\_\+ptr) ({\bf B\+F\+T\+\_\+kmer} $\ast$bft\+\_\+kmer, {\bf B\+FT} $\ast$bft, va\+\_\+list args)}\hypertarget{bft_8h_aac9ee38523fda7ab4f8eb1238e98d315}{}\label{bft_8h_aac9ee38523fda7ab4f8eb1238e98d315} |
| 167 |
|
| 168 |
|
| 169 |
Pointer on function used by \hyperlink{bft_8h_af3cb2e5bd87fc7c7f7240986bf7351fe}{iterate\+\_\+over\+\_\+kmers()} and \hyperlink{bft_8h_aa616e55874abfd5811c8854586718c35}{v\+\_\+iterate\+\_\+over\+\_\+kmers()}. |
| 170 |
|
| 171 |
Such a function (user written) is called on every k-\/mer of a B\+FT. |
| 172 |
\begin{DoxyParams}{Parameters} |
| 173 |
{\em bft\+\_\+kmer} & is a k-\/mer from a B\+FT. \\ |
| 174 |
\hline |
| 175 |
{\em bft} & is the B\+FT from which bft\+\_\+kmer is from. \\ |
| 176 |
\hline |
| 177 |
{\em args} & contains all additional parameters given to \hyperlink{bft_8h_af3cb2e5bd87fc7c7f7240986bf7351fe}{iterate\+\_\+over\+\_\+kmers()} / \hyperlink{bft_8h_aa616e55874abfd5811c8854586718c35}{v\+\_\+iterate\+\_\+over\+\_\+kmers()}. \\ |
| 178 |
\hline |
| 179 |
\end{DoxyParams} |
| 180 |
\begin{DoxyReturn}{Returns} |
| 181 |
a size\+\_\+t type object. It can be use to return an unsigned integer or a pointer. |
| 182 |
\end{DoxyReturn} |
| 183 |
|
| 184 |
|
| 185 |
\subsection{Function Documentation} |
| 186 |
\index{bft.\+h@{bft.\+h}!create\+\_\+\+B\+F\+T\+\_\+annotation@{create\+\_\+\+B\+F\+T\+\_\+annotation}} |
| 187 |
\index{create\+\_\+\+B\+F\+T\+\_\+annotation@{create\+\_\+\+B\+F\+T\+\_\+annotation}!bft.\+h@{bft.\+h}} |
| 188 |
\subsubsection[{\texorpdfstring{create\+\_\+\+B\+F\+T\+\_\+annotation()}{create_BFT_annotation()}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf B\+F\+T\+\_\+annotation}$\ast$ create\+\_\+\+B\+F\+T\+\_\+annotation ( |
| 189 |
\begin{DoxyParamCaption} |
| 190 |
{} |
| 191 |
\end{DoxyParamCaption} |
| 192 |
)\hspace{0.3cm}{\ttfamily [inline]}}\hypertarget{bft_8h_a553468d3d32fef3b9573e2822086743e}{}\label{bft_8h_a553468d3d32fef3b9573e2822086743e} |
| 193 |
|
| 194 |
|
| 195 |
Function creating an empty \hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation}. |
| 196 |
|
| 197 |
\index{bft.\+h@{bft.\+h}!create\+\_\+cdbg@{create\+\_\+cdbg}} |
| 198 |
\index{create\+\_\+cdbg@{create\+\_\+cdbg}!bft.\+h@{bft.\+h}} |
| 199 |
\subsubsection[{\texorpdfstring{create\+\_\+cdbg(int k, int treshold\+\_\+compression)}{create_cdbg(int k, int treshold_compression)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf B\+FT}$\ast$ create\+\_\+cdbg ( |
| 200 |
\begin{DoxyParamCaption} |
| 201 |
\item[{int}]{k, } |
| 202 |
\item[{int}]{treshold\+\_\+compression} |
| 203 |
\end{DoxyParamCaption} |
| 204 |
)}\hypertarget{bft_8h_aa70504eb287a2936e88d4ea36beac9a6}{}\label{bft_8h_aa70504eb287a2936e88d4ea36beac9a6} |
| 205 |
|
| 206 |
|
| 207 |
Function creating a colored de Bruijn graph stored in a B\+FT. |
| 208 |
|
| 209 |
|
| 210 |
\begin{DoxyParams}{Parameters} |
| 211 |
{\em k} & is the length of k-\/mers. \\ |
| 212 |
\hline |
| 213 |
{\em treshold\+\_\+compression} & indicates when the color compression should be triggered (every treshold\+\_\+compression genome inserted). \\ |
| 214 |
\hline |
| 215 |
\end{DoxyParams} |
| 216 |
\begin{DoxyReturn}{Returns} |
| 217 |
a B\+FT pointer. |
| 218 |
\end{DoxyReturn} |
| 219 |
\index{bft.\+h@{bft.\+h}!create\+\_\+empty\+\_\+kmer@{create\+\_\+empty\+\_\+kmer}} |
| 220 |
\index{create\+\_\+empty\+\_\+kmer@{create\+\_\+empty\+\_\+kmer}!bft.\+h@{bft.\+h}} |
| 221 |
\subsubsection[{\texorpdfstring{create\+\_\+empty\+\_\+kmer()}{create_empty_kmer()}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf B\+F\+T\+\_\+kmer}$\ast$ create\+\_\+empty\+\_\+kmer ( |
| 222 |
\begin{DoxyParamCaption} |
| 223 |
{} |
| 224 |
\end{DoxyParamCaption} |
| 225 |
)}\hypertarget{bft_8h_aa578ba0f01a0c27f920eef148a0bb3f0}{}\label{bft_8h_aa578ba0f01a0c27f920eef148a0bb3f0} |
| 226 |
|
| 227 |
|
| 228 |
Function creating an empty \hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} object (all its components are N\+U\+LL). |
| 229 |
|
| 230 |
\begin{DoxyReturn}{Returns} |
| 231 |
a \hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} pointer. |
| 232 |
\end{DoxyReturn} |
| 233 |
\index{bft.\+h@{bft.\+h}!create\+\_\+kmer@{create\+\_\+kmer}} |
| 234 |
\index{create\+\_\+kmer@{create\+\_\+kmer}!bft.\+h@{bft.\+h}} |
| 235 |
\subsubsection[{\texorpdfstring{create\+\_\+kmer(const char $\ast$kmer, int k)}{create_kmer(const char *kmer, int k)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf B\+F\+T\+\_\+kmer}$\ast$ create\+\_\+kmer ( |
| 236 |
\begin{DoxyParamCaption} |
| 237 |
\item[{const char $\ast$}]{kmer, } |
| 238 |
\item[{int}]{k} |
| 239 |
\end{DoxyParamCaption} |
| 240 |
)}\hypertarget{bft_8h_a77d9ca17c70d921a5fcac4330e58e1bd}{}\label{bft_8h_a77d9ca17c70d921a5fcac4330e58e1bd} |
| 241 |
|
| 242 |
|
| 243 |
Function creating a \hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} object from a k-\/mer encoded as an A\+S\+C\+II string (char$\ast$). |
| 244 |
|
| 245 |
|
| 246 |
\begin{DoxyParams}{Parameters} |
| 247 |
{\em kmer} & is an an A\+S\+C\+II encoded k-\/mer string (char$\ast$). \\ |
| 248 |
\hline |
| 249 |
{\em k} & is the k-\/mer length. \\ |
| 250 |
\hline |
| 251 |
\end{DoxyParams} |
| 252 |
\begin{DoxyReturn}{Returns} |
| 253 |
a \hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} pointer. |
| 254 |
\end{DoxyReturn} |
| 255 |
\index{bft.\+h@{bft.\+h}!extract\+\_\+kmers\+\_\+to\+\_\+disk@{extract\+\_\+kmers\+\_\+to\+\_\+disk}} |
| 256 |
\index{extract\+\_\+kmers\+\_\+to\+\_\+disk@{extract\+\_\+kmers\+\_\+to\+\_\+disk}!bft.\+h@{bft.\+h}} |
| 257 |
\subsubsection[{\texorpdfstring{extract\+\_\+kmers\+\_\+to\+\_\+disk(\+B\+F\+T $\ast$bft, char $\ast$filename\+\_\+output, bool compressed\+\_\+output)}{extract_kmers_to_disk(BFT *bft, char *filename_output, bool compressed_output)}}]{\setlength{\rightskip}{0pt plus 5cm}void extract\+\_\+kmers\+\_\+to\+\_\+disk ( |
| 258 |
\begin{DoxyParamCaption} |
| 259 |
\item[{{\bf B\+FT} $\ast$}]{bft, } |
| 260 |
\item[{char $\ast$}]{filename\+\_\+output, } |
| 261 |
\item[{bool}]{compressed\+\_\+output} |
| 262 |
\end{DoxyParamCaption} |
| 263 |
)}\hypertarget{bft_8h_ab9b8daf6a5685786083c258526ef87cb}{}\label{bft_8h_ab9b8daf6a5685786083c258526ef87cb} |
| 264 |
|
| 265 |
|
| 266 |
Function extracting the k-\/mers of a B\+FT in a file. |
| 267 |
|
| 268 |
|
| 269 |
\begin{DoxyParams}{Parameters} |
| 270 |
{\em bft} & is a B\+FT containing the k-\/mers to iterate over. \\ |
| 271 |
\hline |
| 272 |
{\em filename\+\_\+output} & is the name of a file to which the k-\/mers are written. File is overwritten if it already exists. \\ |
| 273 |
\hline |
| 274 |
{\em compressed\+\_\+output} & is a boolean indicating if the k-\/mers should be written in their 2 bits form (true) or A\+S\+C\+II form (false). \\ |
| 275 |
\hline |
| 276 |
\end{DoxyParams} |
| 277 |
\index{bft.\+h@{bft.\+h}!free\+\_\+\+B\+F\+T\+\_\+annotation@{free\+\_\+\+B\+F\+T\+\_\+annotation}} |
| 278 |
\index{free\+\_\+\+B\+F\+T\+\_\+annotation@{free\+\_\+\+B\+F\+T\+\_\+annotation}!bft.\+h@{bft.\+h}} |
| 279 |
\subsubsection[{\texorpdfstring{free\+\_\+\+B\+F\+T\+\_\+annotation(\+B\+F\+T\+\_\+annotation $\ast$bft\+\_\+annot)}{free_BFT_annotation(BFT_annotation *bft_annot)}}]{\setlength{\rightskip}{0pt plus 5cm}void free\+\_\+\+B\+F\+T\+\_\+annotation ( |
| 280 |
\begin{DoxyParamCaption} |
| 281 |
\item[{{\bf B\+F\+T\+\_\+annotation} $\ast$}]{bft\+\_\+annot} |
| 282 |
\end{DoxyParamCaption} |
| 283 |
)}\hypertarget{bft_8h_af399db7486e5ca6ec2e5c089c946d9f9}{}\label{bft_8h_af399db7486e5ca6ec2e5c089c946d9f9} |
| 284 |
|
| 285 |
|
| 286 |
Function freeing a \hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation}. |
| 287 |
|
| 288 |
|
| 289 |
\begin{DoxyParams}{Parameters} |
| 290 |
{\em bft\+\_\+annot} & is a pointer to the \hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation} to free. \\ |
| 291 |
\hline |
| 292 |
\end{DoxyParams} |
| 293 |
\index{bft.\+h@{bft.\+h}!free\+\_\+\+B\+F\+T\+\_\+kmer@{free\+\_\+\+B\+F\+T\+\_\+kmer}} |
| 294 |
\index{free\+\_\+\+B\+F\+T\+\_\+kmer@{free\+\_\+\+B\+F\+T\+\_\+kmer}!bft.\+h@{bft.\+h}} |
| 295 |
\subsubsection[{\texorpdfstring{free\+\_\+\+B\+F\+T\+\_\+kmer(\+B\+F\+T\+\_\+kmer $\ast$bft\+\_\+kmer, int nb\+\_\+bft\+\_\+kmer)}{free_BFT_kmer(BFT_kmer *bft_kmer, int nb_bft_kmer)}}]{\setlength{\rightskip}{0pt plus 5cm}void free\+\_\+\+B\+F\+T\+\_\+kmer ( |
| 296 |
\begin{DoxyParamCaption} |
| 297 |
\item[{{\bf B\+F\+T\+\_\+kmer} $\ast$}]{bft\+\_\+kmer, } |
| 298 |
\item[{int}]{nb\+\_\+bft\+\_\+kmer} |
| 299 |
\end{DoxyParamCaption} |
| 300 |
)}\hypertarget{bft_8h_a808fac5a22a9885a82901a9afdb15c18}{}\label{bft_8h_a808fac5a22a9885a82901a9afdb15c18} |
| 301 |
|
| 302 |
|
| 303 |
Function freeing allocated B\+F\+T\+\_\+kmers. |
| 304 |
|
| 305 |
|
| 306 |
\begin{DoxyParams}{Parameters} |
| 307 |
{\em bft\+\_\+kmer} & is a pointer to an array of at least one \hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer}. \\ |
| 308 |
\hline |
| 309 |
{\em nb\+\_\+bft\+\_\+kmer} & is the number of \hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} in bft\+\_\+kmer. \\ |
| 310 |
\hline |
| 311 |
\end{DoxyParams} |
| 312 |
\index{bft.\+h@{bft.\+h}!free\+\_\+\+B\+F\+T\+\_\+kmer\+\_\+content@{free\+\_\+\+B\+F\+T\+\_\+kmer\+\_\+content}} |
| 313 |
\index{free\+\_\+\+B\+F\+T\+\_\+kmer\+\_\+content@{free\+\_\+\+B\+F\+T\+\_\+kmer\+\_\+content}!bft.\+h@{bft.\+h}} |
| 314 |
\subsubsection[{\texorpdfstring{free\+\_\+\+B\+F\+T\+\_\+kmer\+\_\+content(\+B\+F\+T\+\_\+kmer $\ast$bft\+\_\+kmer, int nb\+\_\+bft\+\_\+kmer)}{free_BFT_kmer_content(BFT_kmer *bft_kmer, int nb_bft_kmer)}}]{\setlength{\rightskip}{0pt plus 5cm}void free\+\_\+\+B\+F\+T\+\_\+kmer\+\_\+content ( |
| 315 |
\begin{DoxyParamCaption} |
| 316 |
\item[{{\bf B\+F\+T\+\_\+kmer} $\ast$}]{bft\+\_\+kmer, } |
| 317 |
\item[{int}]{nb\+\_\+bft\+\_\+kmer} |
| 318 |
\end{DoxyParamCaption} |
| 319 |
)}\hypertarget{bft_8h_ac5c1b6b0b04abfdf205f966299f042fd}{}\label{bft_8h_ac5c1b6b0b04abfdf205f966299f042fd} |
| 320 |
|
| 321 |
|
| 322 |
Function freeing the content of allocated B\+F\+T\+\_\+kmers. |
| 323 |
|
| 324 |
|
| 325 |
\begin{DoxyParams}{Parameters} |
| 326 |
{\em bft\+\_\+kmer} & is a pointer to an array of at least one \hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer}. \\ |
| 327 |
\hline |
| 328 |
{\em nb\+\_\+bft\+\_\+kmer} & is the number of \hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} in bft\+\_\+kmer. \\ |
| 329 |
\hline |
| 330 |
\end{DoxyParams} |
| 331 |
\index{bft.\+h@{bft.\+h}!free\+\_\+cdbg@{free\+\_\+cdbg}} |
| 332 |
\index{free\+\_\+cdbg@{free\+\_\+cdbg}!bft.\+h@{bft.\+h}} |
| 333 |
\subsubsection[{\texorpdfstring{free\+\_\+cdbg(\+B\+F\+T $\ast$bft)}{free_cdbg(BFT *bft)}}]{\setlength{\rightskip}{0pt plus 5cm}void free\+\_\+cdbg ( |
| 334 |
\begin{DoxyParamCaption} |
| 335 |
\item[{{\bf B\+FT} $\ast$}]{bft} |
| 336 |
\end{DoxyParamCaption} |
| 337 |
)}\hypertarget{bft_8h_a2bd7d66178b29578107ef6983393af6b}{}\label{bft_8h_a2bd7d66178b29578107ef6983393af6b} |
| 338 |
|
| 339 |
|
| 340 |
Free an allocated colored de Bruijn graph stored in a B\+FT. |
| 341 |
|
| 342 |
|
| 343 |
\begin{DoxyParams}{Parameters} |
| 344 |
{\em bft} & is an allocated B\+FT. \\ |
| 345 |
\hline |
| 346 |
\end{DoxyParams} |
| 347 |
\index{bft.\+h@{bft.\+h}!get\+\_\+annotation@{get\+\_\+annotation}} |
| 348 |
\index{get\+\_\+annotation@{get\+\_\+annotation}!bft.\+h@{bft.\+h}} |
| 349 |
\subsubsection[{\texorpdfstring{get\+\_\+annotation(\+B\+F\+T\+\_\+kmer $\ast$bft\+\_\+kmer)}{get_annotation(BFT_kmer *bft_kmer)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf B\+F\+T\+\_\+annotation}$\ast$ get\+\_\+annotation ( |
| 350 |
\begin{DoxyParamCaption} |
| 351 |
\item[{{\bf B\+F\+T\+\_\+kmer} $\ast$}]{bft\+\_\+kmer} |
| 352 |
\end{DoxyParamCaption} |
| 353 |
)}\hypertarget{bft_8h_a77adc497006eb9aeca0987aca66d1f91}{}\label{bft_8h_a77adc497006eb9aeca0987aca66d1f91} |
| 354 |
|
| 355 |
|
| 356 |
Function extracting the annotation (set of colors) associated with a k-\/mer of a B\+FT. |
| 357 |
|
| 358 |
|
| 359 |
\begin{DoxyParams}{Parameters} |
| 360 |
{\em bft\+\_\+kmer} & is a k-\/mer obtained via search or iteration over a B\+FT (via \hyperlink{bft_8h_a67f15f4eeebe6fe620c467f8180e1f31}{get\+\_\+kmer()} for example). \\ |
| 361 |
\hline |
| 362 |
\end{DoxyParams} |
| 363 |
\begin{DoxyReturn}{Returns} |
| 364 |
a \hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation} pointer. |
| 365 |
\end{DoxyReturn} |
| 366 |
\index{bft.\+h@{bft.\+h}!get\+\_\+count\+\_\+id\+\_\+genomes@{get\+\_\+count\+\_\+id\+\_\+genomes}} |
| 367 |
\index{get\+\_\+count\+\_\+id\+\_\+genomes@{get\+\_\+count\+\_\+id\+\_\+genomes}!bft.\+h@{bft.\+h}} |
| 368 |
\subsubsection[{\texorpdfstring{get\+\_\+count\+\_\+id\+\_\+genomes(\+B\+F\+T\+\_\+annotation $\ast$bft\+\_\+annot, B\+F\+T $\ast$bft)}{get_count_id_genomes(BFT_annotation *bft_annot, BFT *bft)}}]{\setlength{\rightskip}{0pt plus 5cm}uint32\+\_\+t get\+\_\+count\+\_\+id\+\_\+genomes ( |
| 369 |
\begin{DoxyParamCaption} |
| 370 |
\item[{{\bf B\+F\+T\+\_\+annotation} $\ast$}]{bft\+\_\+annot, } |
| 371 |
\item[{{\bf B\+FT} $\ast$}]{bft} |
| 372 |
\end{DoxyParamCaption} |
| 373 |
)}\hypertarget{bft_8h_a1925619b46da07aac7ce2e7d4d0dddab}{}\label{bft_8h_a1925619b46da07aac7ce2e7d4d0dddab} |
| 374 |
|
| 375 |
|
| 376 |
Function counting the number of genome identifiers in an annotation. |
| 377 |
|
| 378 |
|
| 379 |
\begin{DoxyParams}{Parameters} |
| 380 |
{\em bft\+\_\+annot} & is an annotation. \\ |
| 381 |
\hline |
| 382 |
{\em bft} & is a B\+FT from which the annotation was extracted. \\ |
| 383 |
\hline |
| 384 |
\end{DoxyParams} |
| 385 |
\begin{DoxyReturn}{Returns} |
| 386 |
a count of genome identifiers. |
| 387 |
\end{DoxyReturn} |
| 388 |
\index{bft.\+h@{bft.\+h}!get\+\_\+flag\+\_\+kmer@{get\+\_\+flag\+\_\+kmer}} |
| 389 |
\index{get\+\_\+flag\+\_\+kmer@{get\+\_\+flag\+\_\+kmer}!bft.\+h@{bft.\+h}} |
| 390 |
\subsubsection[{\texorpdfstring{get\+\_\+flag\+\_\+kmer(\+B\+F\+T\+\_\+kmer $\ast$bft\+\_\+kmer, B\+F\+T $\ast$bft)}{get_flag_kmer(BFT_kmer *bft_kmer, BFT *bft)}}]{\setlength{\rightskip}{0pt plus 5cm}uint8\+\_\+t get\+\_\+flag\+\_\+kmer ( |
| 391 |
\begin{DoxyParamCaption} |
| 392 |
\item[{{\bf B\+F\+T\+\_\+kmer} $\ast$}]{bft\+\_\+kmer, } |
| 393 |
\item[{{\bf B\+FT} $\ast$}]{bft} |
| 394 |
\end{DoxyParamCaption} |
| 395 |
)}\hypertarget{bft_8h_a6716b0afd3aa0b22bffd1a5fe8e4058f}{}\label{bft_8h_a6716b0afd3aa0b22bffd1a5fe8e4058f} |
| 396 |
|
| 397 |
|
| 398 |
Function getting a k-\/mer of a B\+FT with a flag. |
| 399 |
|
| 400 |
|
| 401 |
\begin{DoxyParams}{Parameters} |
| 402 |
{\em bft\+\_\+kmer} & is a k-\/mer obtained via search/iteration over a B\+FT for which the function returns the flag. \\ |
| 403 |
\hline |
| 404 |
{\em bft} & is a B\+FT locked for vertices marking. \\ |
| 405 |
\hline |
| 406 |
\end{DoxyParams} |
| 407 |
\index{bft.\+h@{bft.\+h}!get\+\_\+kmer@{get\+\_\+kmer}} |
| 408 |
\index{get\+\_\+kmer@{get\+\_\+kmer}!bft.\+h@{bft.\+h}} |
| 409 |
\subsubsection[{\texorpdfstring{get\+\_\+kmer(const char $\ast$kmer, B\+F\+T $\ast$bft)}{get_kmer(const char *kmer, BFT *bft)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf B\+F\+T\+\_\+kmer}$\ast$ get\+\_\+kmer ( |
| 410 |
\begin{DoxyParamCaption} |
| 411 |
\item[{const char $\ast$}]{kmer, } |
| 412 |
\item[{{\bf B\+FT} $\ast$}]{bft} |
| 413 |
\end{DoxyParamCaption} |
| 414 |
)}\hypertarget{bft_8h_a67f15f4eeebe6fe620c467f8180e1f31}{}\label{bft_8h_a67f15f4eeebe6fe620c467f8180e1f31} |
| 415 |
|
| 416 |
|
| 417 |
Function searching for a k-\/mer in a B\+FT. |
| 418 |
|
| 419 |
|
| 420 |
\begin{DoxyParams}{Parameters} |
| 421 |
{\em kmer} & is an an A\+S\+C\+II encoded k-\/mer string (char$\ast$) to search for in the B\+FT. \\ |
| 422 |
\hline |
| 423 |
{\em bft} & is a B\+FT in which k-\/mer is searched \\ |
| 424 |
\hline |
| 425 |
\end{DoxyParams} |
| 426 |
\begin{DoxyReturn}{Returns} |
| 427 |
a \hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} pointer. |
| 428 |
\end{DoxyReturn} |
| 429 |
\index{bft.\+h@{bft.\+h}!get\+\_\+list\+\_\+id\+\_\+genomes@{get\+\_\+list\+\_\+id\+\_\+genomes}} |
| 430 |
\index{get\+\_\+list\+\_\+id\+\_\+genomes@{get\+\_\+list\+\_\+id\+\_\+genomes}!bft.\+h@{bft.\+h}} |
| 431 |
\subsubsection[{\texorpdfstring{get\+\_\+list\+\_\+id\+\_\+genomes(\+B\+F\+T\+\_\+annotation $\ast$bft\+\_\+annot, B\+F\+T $\ast$bft)}{get_list_id_genomes(BFT_annotation *bft_annot, BFT *bft)}}]{\setlength{\rightskip}{0pt plus 5cm}uint32\+\_\+t$\ast$ get\+\_\+list\+\_\+id\+\_\+genomes ( |
| 432 |
\begin{DoxyParamCaption} |
| 433 |
\item[{{\bf B\+F\+T\+\_\+annotation} $\ast$}]{bft\+\_\+annot, } |
| 434 |
\item[{{\bf B\+FT} $\ast$}]{bft} |
| 435 |
\end{DoxyParamCaption} |
| 436 |
)}\hypertarget{bft_8h_a30fc123ce1cdef3941a5047de3f0689e}{}\label{bft_8h_a30fc123ce1cdef3941a5047de3f0689e} |
| 437 |
|
| 438 |
|
| 439 |
Function extracting a list of genome identifiers from an annotation. |
| 440 |
|
| 441 |
|
| 442 |
\begin{DoxyParams}{Parameters} |
| 443 |
{\em bft\+\_\+annot} & is an annotation from which the ids must be extracted. \\ |
| 444 |
\hline |
| 445 |
{\em bft} & is a B\+FT from which the annotation was extracted. \\ |
| 446 |
\hline |
| 447 |
\end{DoxyParams} |
| 448 |
\begin{DoxyReturn}{Returns} |
| 449 |
a pointer to an array of genome identifiers (uint32\+\_\+t). The first element of this array (position 0) indicates how many ids there are in this array. Therefore, the length of the array is array\mbox{[}0\mbox{]} + 1. |
| 450 |
\end{DoxyReturn} |
| 451 |
\index{bft.\+h@{bft.\+h}!get\+\_\+neighbors@{get\+\_\+neighbors}} |
| 452 |
\index{get\+\_\+neighbors@{get\+\_\+neighbors}!bft.\+h@{bft.\+h}} |
| 453 |
\subsubsection[{\texorpdfstring{get\+\_\+neighbors(\+B\+F\+T\+\_\+kmer $\ast$bft\+\_\+kmer, B\+F\+T $\ast$bft)}{get_neighbors(BFT_kmer *bft_kmer, BFT *bft)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf B\+F\+T\+\_\+kmer}$\ast$ get\+\_\+neighbors ( |
| 454 |
\begin{DoxyParamCaption} |
| 455 |
\item[{{\bf B\+F\+T\+\_\+kmer} $\ast$}]{bft\+\_\+kmer, } |
| 456 |
\item[{{\bf B\+FT} $\ast$}]{bft} |
| 457 |
\end{DoxyParamCaption} |
| 458 |
)}\hypertarget{bft_8h_a2abcf02bdb06a7abff05c76e118e20bf}{}\label{bft_8h_a2abcf02bdb06a7abff05c76e118e20bf} |
| 459 |
|
| 460 |
|
| 461 |
Function extracting the neighbors of a k-\/mer. |
| 462 |
|
| 463 |
|
| 464 |
\begin{DoxyParams}{Parameters} |
| 465 |
{\em bft\+\_\+kmer} & is a k-\/mer obtained via search/iteration over a B\+FT. \\ |
| 466 |
\hline |
| 467 |
{\em bft} & is a B\+FT from which was extracted bft\+\_\+kmer \\ |
| 468 |
\hline |
| 469 |
\end{DoxyParams} |
| 470 |
\begin{DoxyReturn}{Returns} |
| 471 |
a pointer to an array of 8 \hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer}\+: positions 0 to 3 are the possible predecessors and 4 to 7 the possible successors. |
| 472 |
\end{DoxyReturn} |
| 473 |
\index{bft.\+h@{bft.\+h}!get\+\_\+predecessors@{get\+\_\+predecessors}} |
| 474 |
\index{get\+\_\+predecessors@{get\+\_\+predecessors}!bft.\+h@{bft.\+h}} |
| 475 |
\subsubsection[{\texorpdfstring{get\+\_\+predecessors(\+B\+F\+T\+\_\+kmer $\ast$bft\+\_\+kmer, B\+F\+T $\ast$bft)}{get_predecessors(BFT_kmer *bft_kmer, BFT *bft)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf B\+F\+T\+\_\+kmer}$\ast$ get\+\_\+predecessors ( |
| 476 |
\begin{DoxyParamCaption} |
| 477 |
\item[{{\bf B\+F\+T\+\_\+kmer} $\ast$}]{bft\+\_\+kmer, } |
| 478 |
\item[{{\bf B\+FT} $\ast$}]{bft} |
| 479 |
\end{DoxyParamCaption} |
| 480 |
)}\hypertarget{bft_8h_a08169f0b2c3c7951b1aa3b2f75a535c3}{}\label{bft_8h_a08169f0b2c3c7951b1aa3b2f75a535c3} |
| 481 |
|
| 482 |
|
| 483 |
Function extracting the predecessors of a k-\/mer. |
| 484 |
|
| 485 |
|
| 486 |
\begin{DoxyParams}{Parameters} |
| 487 |
{\em bft\+\_\+kmer} & is a k-\/mer obtained via search/iteration over a B\+FT. \\ |
| 488 |
\hline |
| 489 |
{\em bft} & is a B\+FT from which was extracted bft\+\_\+kmer \\ |
| 490 |
\hline |
| 491 |
\end{DoxyParams} |
| 492 |
\begin{DoxyReturn}{Returns} |
| 493 |
a pointer to an array of 4 \hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} that are the possible predecessors. |
| 494 |
\end{DoxyReturn} |
| 495 |
\index{bft.\+h@{bft.\+h}!get\+\_\+successors@{get\+\_\+successors}} |
| 496 |
\index{get\+\_\+successors@{get\+\_\+successors}!bft.\+h@{bft.\+h}} |
| 497 |
\subsubsection[{\texorpdfstring{get\+\_\+successors(\+B\+F\+T\+\_\+kmer $\ast$bft\+\_\+kmer, B\+F\+T $\ast$bft)}{get_successors(BFT_kmer *bft_kmer, BFT *bft)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf B\+F\+T\+\_\+kmer}$\ast$ get\+\_\+successors ( |
| 498 |
\begin{DoxyParamCaption} |
| 499 |
\item[{{\bf B\+F\+T\+\_\+kmer} $\ast$}]{bft\+\_\+kmer, } |
| 500 |
\item[{{\bf B\+FT} $\ast$}]{bft} |
| 501 |
\end{DoxyParamCaption} |
| 502 |
)}\hypertarget{bft_8h_aeb7859ff27d5bdf0c60aebc088415d57}{}\label{bft_8h_aeb7859ff27d5bdf0c60aebc088415d57} |
| 503 |
|
| 504 |
|
| 505 |
Function extracting the successors of a k-\/mer. |
| 506 |
|
| 507 |
|
| 508 |
\begin{DoxyParams}{Parameters} |
| 509 |
{\em bft\+\_\+kmer} & is a k-\/mer obtained via search/iteration over a B\+FT. \\ |
| 510 |
\hline |
| 511 |
{\em bft} & is a B\+FT from which was extracted bft\+\_\+kmer \\ |
| 512 |
\hline |
| 513 |
\end{DoxyParams} |
| 514 |
\begin{DoxyReturn}{Returns} |
| 515 |
a pointer to an array of 4 \hyperlink{structBFT__kmer}{B\+F\+T\+\_\+kmer} that are the possible successors. |
| 516 |
\end{DoxyReturn} |
| 517 |
\index{bft.\+h@{bft.\+h}!insert\+\_\+genomes\+\_\+from\+\_\+files@{insert\+\_\+genomes\+\_\+from\+\_\+files}} |
| 518 |
\index{insert\+\_\+genomes\+\_\+from\+\_\+files@{insert\+\_\+genomes\+\_\+from\+\_\+files}!bft.\+h@{bft.\+h}} |
| 519 |
\subsubsection[{\texorpdfstring{insert\+\_\+genomes\+\_\+from\+\_\+files(int nb\+\_\+files, char $\ast$$\ast$paths, B\+F\+T $\ast$bft, char $\ast$prefix\+\_\+bft\+\_\+filename)}{insert_genomes_from_files(int nb_files, char **paths, BFT *bft, char *prefix_bft_filename)}}]{\setlength{\rightskip}{0pt plus 5cm}void insert\+\_\+genomes\+\_\+from\+\_\+files ( |
| 520 |
\begin{DoxyParamCaption} |
| 521 |
\item[{int}]{nb\+\_\+files, } |
| 522 |
\item[{char $\ast$$\ast$}]{paths, } |
| 523 |
\item[{{\bf B\+FT} $\ast$}]{bft, } |
| 524 |
\item[{char $\ast$}]{prefix\+\_\+bft\+\_\+filename} |
| 525 |
\end{DoxyParamCaption} |
| 526 |
)}\hypertarget{bft_8h_a856f1613edf5cf8b62193464c911817d}{}\label{bft_8h_a856f1613edf5cf8b62193464c911817d} |
| 527 |
|
| 528 |
|
| 529 |
Function inserting genomes (k-\/mer file) in a B\+FT. |
| 530 |
|
| 531 |
|
| 532 |
\begin{DoxyParams}{Parameters} |
| 533 |
{\em nb\+\_\+files} & is the number of files to insert. \\ |
| 534 |
\hline |
| 535 |
{\em paths} & is an nb\+\_\+files size array of strings (char$\ast$). Each string is the name of a file (+ eventually its path) to insert. \\ |
| 536 |
\hline |
| 537 |
{\em bft} & is a B\+FT where the genomes are inserted. \\ |
| 538 |
\hline |
| 539 |
{\em prefix\+\_\+bft\+\_\+filename} & is a prefix filename (including path) where temporary data can be written to. The prefix must be unique in its directory. \\ |
| 540 |
\hline |
| 541 |
\end{DoxyParams} |
| 542 |
\index{bft.\+h@{bft.\+h}!insert\+\_\+kmers\+\_\+last\+\_\+genome@{insert\+\_\+kmers\+\_\+last\+\_\+genome}} |
| 543 |
\index{insert\+\_\+kmers\+\_\+last\+\_\+genome@{insert\+\_\+kmers\+\_\+last\+\_\+genome}!bft.\+h@{bft.\+h}} |
| 544 |
\subsubsection[{\texorpdfstring{insert\+\_\+kmers\+\_\+last\+\_\+genome(int nb\+\_\+kmers, char $\ast$$\ast$kmers, B\+F\+T $\ast$bft)}{insert_kmers_last_genome(int nb_kmers, char **kmers, BFT *bft)}}]{\setlength{\rightskip}{0pt plus 5cm}void insert\+\_\+kmers\+\_\+last\+\_\+genome ( |
| 545 |
\begin{DoxyParamCaption} |
| 546 |
\item[{int}]{nb\+\_\+kmers, } |
| 547 |
\item[{char $\ast$$\ast$}]{kmers, } |
| 548 |
\item[{{\bf B\+FT} $\ast$}]{bft} |
| 549 |
\end{DoxyParamCaption} |
| 550 |
)}\hypertarget{bft_8h_a4e4b73220989248a6ee1160840f80763}{}\label{bft_8h_a4e4b73220989248a6ee1160840f80763} |
| 551 |
|
| 552 |
|
| 553 |
Function inserting k-\/mers of the last inserted genome in a B\+FT. |
| 554 |
|
| 555 |
|
| 556 |
\begin{DoxyParams}{Parameters} |
| 557 |
{\em nb\+\_\+kmers} & is the number of k-\/mers to insert. \\ |
| 558 |
\hline |
| 559 |
{\em kmers} & is a pointer to an array of strings (char $\ast$) that are the k-\/mers to insert. The arrayis of length nb\+\_\+kmers. \\ |
| 560 |
\hline |
| 561 |
{\em bft} & is a colored de Bruijn graph stored as a B\+FT. \\ |
| 562 |
\hline |
| 563 |
\end{DoxyParams} |
| 564 |
\index{bft.\+h@{bft.\+h}!insert\+\_\+kmers\+\_\+new\+\_\+genome@{insert\+\_\+kmers\+\_\+new\+\_\+genome}} |
| 565 |
\index{insert\+\_\+kmers\+\_\+new\+\_\+genome@{insert\+\_\+kmers\+\_\+new\+\_\+genome}!bft.\+h@{bft.\+h}} |
| 566 |
\subsubsection[{\texorpdfstring{insert\+\_\+kmers\+\_\+new\+\_\+genome(int nb\+\_\+kmers, char $\ast$$\ast$kmers, char $\ast$genome\+\_\+name, B\+F\+T $\ast$bft)}{insert_kmers_new_genome(int nb_kmers, char **kmers, char *genome_name, BFT *bft)}}]{\setlength{\rightskip}{0pt plus 5cm}void insert\+\_\+kmers\+\_\+new\+\_\+genome ( |
| 567 |
\begin{DoxyParamCaption} |
| 568 |
\item[{int}]{nb\+\_\+kmers, } |
| 569 |
\item[{char $\ast$$\ast$}]{kmers, } |
| 570 |
\item[{char $\ast$}]{genome\+\_\+name, } |
| 571 |
\item[{{\bf B\+FT} $\ast$}]{bft} |
| 572 |
\end{DoxyParamCaption} |
| 573 |
)}\hypertarget{bft_8h_ab72ebe2b5cb0b720f96a4e883678d076}{}\label{bft_8h_ab72ebe2b5cb0b720f96a4e883678d076} |
| 574 |
|
| 575 |
|
| 576 |
Function inserting k-\/mers of a new genome in a B\+FT. |
| 577 |
|
| 578 |
|
| 579 |
\begin{DoxyParams}{Parameters} |
| 580 |
{\em nb\+\_\+kmers} & is the number of k-\/mers to insert. \\ |
| 581 |
\hline |
| 582 |
{\em kmers} & is a pointer to an array of strings (char $\ast$) that are the k-\/mers to insert. The array is of length nb\+\_\+kmers. \\ |
| 583 |
\hline |
| 584 |
{\em genome\+\_\+name} & is the name of the new genome to which the inserted k-\/mers come from. \\ |
| 585 |
\hline |
| 586 |
{\em bft} & is a colored de Bruijn graph stored as a B\+FT. \\ |
| 587 |
\hline |
| 588 |
\end{DoxyParams} |
| 589 |
\index{bft.\+h@{bft.\+h}!intersection\+\_\+annotations@{intersection\+\_\+annotations}} |
| 590 |
\index{intersection\+\_\+annotations@{intersection\+\_\+annotations}!bft.\+h@{bft.\+h}} |
| 591 |
\subsubsection[{\texorpdfstring{intersection\+\_\+annotations(\+B\+F\+T $\ast$bft, uint32\+\_\+t nb\+\_\+annotations,...)}{intersection_annotations(BFT *bft, uint32_t nb_annotations,...)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf B\+F\+T\+\_\+annotation}$\ast$ intersection\+\_\+annotations ( |
| 592 |
\begin{DoxyParamCaption} |
| 593 |
\item[{{\bf B\+FT} $\ast$}]{bft, } |
| 594 |
\item[{uint32\+\_\+t}]{nb\+\_\+annotations, } |
| 595 |
\item[{}]{...} |
| 596 |
\end{DoxyParamCaption} |
| 597 |
)}\hypertarget{bft_8h_afa7efdad6e5ee85274d60d74cb9dd982}{}\label{bft_8h_afa7efdad6e5ee85274d60d74cb9dd982} |
| 598 |
|
| 599 |
|
| 600 |
Function computing the intersection of a set of annotations. |
| 601 |
|
| 602 |
|
| 603 |
\begin{DoxyParams}{Parameters} |
| 604 |
{\em bft} & is a B\+FT from which the input annotations are originated. \\ |
| 605 |
\hline |
| 606 |
{\em nb\+\_\+annotations} & indicates how many annotations must be included in the intersection. \\ |
| 607 |
\hline |
| 608 |
{\em ...} & is a list of nb\+\_\+annotations \hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation} pointers of which the intersection is computed. \\ |
| 609 |
\hline |
| 610 |
\end{DoxyParams} |
| 611 |
\begin{DoxyReturn}{Returns} |
| 612 |
a \hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation} pointer to an annotation which is the intersection of the input annotations. |
| 613 |
\end{DoxyReturn} |
| 614 |
\index{bft.\+h@{bft.\+h}!is\+\_\+kmer\+\_\+in\+\_\+cdbg@{is\+\_\+kmer\+\_\+in\+\_\+cdbg}} |
| 615 |
\index{is\+\_\+kmer\+\_\+in\+\_\+cdbg@{is\+\_\+kmer\+\_\+in\+\_\+cdbg}!bft.\+h@{bft.\+h}} |
| 616 |
\subsubsection[{\texorpdfstring{is\+\_\+kmer\+\_\+in\+\_\+cdbg(\+B\+F\+T\+\_\+kmer $\ast$bft\+\_\+kmer)}{is_kmer_in_cdbg(BFT_kmer *bft_kmer)}}]{\setlength{\rightskip}{0pt plus 5cm}bool is\+\_\+kmer\+\_\+in\+\_\+cdbg ( |
| 617 |
\begin{DoxyParamCaption} |
| 618 |
\item[{{\bf B\+F\+T\+\_\+kmer} $\ast$}]{bft\+\_\+kmer} |
| 619 |
\end{DoxyParamCaption} |
| 620 |
)}\hypertarget{bft_8h_a170137e867f0ba24423badc9e1db872b}{}\label{bft_8h_a170137e867f0ba24423badc9e1db872b} |
| 621 |
|
| 622 |
|
| 623 |
Function testing if a k-\/mer is in a B\+FT. |
| 624 |
|
| 625 |
|
| 626 |
\begin{DoxyParams}{Parameters} |
| 627 |
{\em bft\+\_\+kmer} & is a k-\/mer obtained via search or iteration over a B\+FT (via \hyperlink{bft_8h_a67f15f4eeebe6fe620c467f8180e1f31}{get\+\_\+kmer()} for example). \\ |
| 628 |
\hline |
| 629 |
\end{DoxyParams} |
| 630 |
\begin{DoxyReturn}{Returns} |
| 631 |
a boolean indicating the presence (true) or absence (false) of the k-\/mer in a B\+FT. |
| 632 |
\end{DoxyReturn} |
| 633 |
\index{bft.\+h@{bft.\+h}!iterate\+\_\+over\+\_\+kmers@{iterate\+\_\+over\+\_\+kmers}} |
| 634 |
\index{iterate\+\_\+over\+\_\+kmers@{iterate\+\_\+over\+\_\+kmers}!bft.\+h@{bft.\+h}} |
| 635 |
\subsubsection[{\texorpdfstring{iterate\+\_\+over\+\_\+kmers(\+B\+F\+T $\ast$bft, B\+F\+T\+\_\+func\+\_\+ptr f,...)}{iterate_over_kmers(BFT *bft, BFT_func_ptr f,...)}}]{\setlength{\rightskip}{0pt plus 5cm}void iterate\+\_\+over\+\_\+kmers ( |
| 636 |
\begin{DoxyParamCaption} |
| 637 |
\item[{{\bf B\+FT} $\ast$}]{bft, } |
| 638 |
\item[{{\bf B\+F\+T\+\_\+func\+\_\+ptr}}]{f, } |
| 639 |
\item[{}]{...} |
| 640 |
\end{DoxyParamCaption} |
| 641 |
)}\hypertarget{bft_8h_af3cb2e5bd87fc7c7f7240986bf7351fe}{}\label{bft_8h_af3cb2e5bd87fc7c7f7240986bf7351fe} |
| 642 |
|
| 643 |
|
| 644 |
Function iterating over the k-\/mers of a B\+FT. |
| 645 |
|
| 646 |
|
| 647 |
\begin{DoxyParams}{Parameters} |
| 648 |
{\em bft} & is a B\+FT containing the k-\/mers to iterate over. \\ |
| 649 |
\hline |
| 650 |
{\em f} & is a pointer on function that will be called on each k-\/mer. If f returns 0, the calling function returns. \\ |
| 651 |
\hline |
| 652 |
{\em ...} & are the additional arguments that must be transmitted to f. They can be extracted in f via its parameter of type va\+\_\+list. \\ |
| 653 |
\hline |
| 654 |
\end{DoxyParams} |
| 655 |
\index{bft.\+h@{bft.\+h}!load\+\_\+\+B\+FT@{load\+\_\+\+B\+FT}} |
| 656 |
\index{load\+\_\+\+B\+FT@{load\+\_\+\+B\+FT}!bft.\+h@{bft.\+h}} |
| 657 |
\subsubsection[{\texorpdfstring{load\+\_\+\+B\+F\+T(char $\ast$filename)}{load_BFT(char *filename)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf B\+FT}$\ast$ load\+\_\+\+B\+FT ( |
| 658 |
\begin{DoxyParamCaption} |
| 659 |
\item[{char $\ast$}]{filename\+\_\+and\+\_\+path} |
| 660 |
\end{DoxyParamCaption} |
| 661 |
)}\hypertarget{bft_8h_aa6bb2c0f8644e81d5f00d888c615fea1}{}\label{bft_8h_aa6bb2c0f8644e81d5f00d888c615fea1} |
| 662 |
|
| 663 |
|
| 664 |
Function loading a B\+FT from disk. |
| 665 |
|
| 666 |
|
| 667 |
\begin{DoxyParams}{Parameters} |
| 668 |
{\em filename\+\_\+and\+\_\+path} & is the path and name of the file in which the B\+FT to load is be written. \\ |
| 669 |
\hline |
| 670 |
\end{DoxyParams} |
| 671 |
\index{bft.\+h@{bft.\+h}!prefix\+\_\+matching@{prefix\+\_\+matching}} |
| 672 |
\index{prefix\+\_\+matching@{prefix\+\_\+matching}!bft.\+h@{bft.\+h}} |
| 673 |
\subsubsection[{\texorpdfstring{prefix\+\_\+matching(\+B\+F\+T $\ast$bft, char $\ast$prefix, B\+F\+T\+\_\+func\+\_\+ptr f,...)}{prefix_matching(BFT *bft, char *prefix, BFT_func_ptr f,...)}}]{\setlength{\rightskip}{0pt plus 5cm}bool prefix\+\_\+matching ( |
| 674 |
\begin{DoxyParamCaption} |
| 675 |
\item[{{\bf B\+FT} $\ast$}]{bft, } |
| 676 |
\item[{char $\ast$}]{prefix, } |
| 677 |
\item[{{\bf B\+F\+T\+\_\+func\+\_\+ptr}}]{f, } |
| 678 |
\item[{}]{...} |
| 679 |
\end{DoxyParamCaption} |
| 680 |
)}\hypertarget{bft_8h_a6f93be4a2e37c7355c79079e8c38530a}{}\label{bft_8h_a6f93be4a2e37c7355c79079e8c38530a} |
| 681 |
|
| 682 |
|
| 683 |
Function for prefix matching over the k-\/mers of a B\+FT. |
| 684 |
|
| 685 |
|
| 686 |
\begin{DoxyParams}{Parameters} |
| 687 |
{\em bft} & is a B\+FT containing the k-\/mers to match. \\ |
| 688 |
\hline |
| 689 |
{\em prefix} & is string containing a prefix the k-\/mers must match. \\ |
| 690 |
\hline |
| 691 |
{\em f} & is a pointer on function that will be called on each k-\/mer matching the prefix. If f returns 0, the calling function returns. \\ |
| 692 |
\hline |
| 693 |
{\em ...} & are the additional arguments that must be transmitted to f. They can be extracted in f via its parameter of type va\+\_\+list. \\ |
| 694 |
\hline |
| 695 |
\end{DoxyParams} |
| 696 |
\begin{DoxyReturn}{Returns} |
| 697 |
A boolean indicating whether at least one k-\/mer matched the prefix (true) or not (false). |
| 698 |
\end{DoxyReturn} |
| 699 |
\index{bft.\+h@{bft.\+h}!presence\+\_\+genome@{presence\+\_\+genome}} |
| 700 |
\index{presence\+\_\+genome@{presence\+\_\+genome}!bft.\+h@{bft.\+h}} |
| 701 |
\subsubsection[{\texorpdfstring{presence\+\_\+genome(uint32\+\_\+t id\+\_\+genome, B\+F\+T\+\_\+annotation $\ast$bft\+\_\+annot, B\+F\+T $\ast$bft)}{presence_genome(uint32_t id_genome, BFT_annotation *bft_annot, BFT *bft)}}]{\setlength{\rightskip}{0pt plus 5cm}bool presence\+\_\+genome ( |
| 702 |
\begin{DoxyParamCaption} |
| 703 |
\item[{uint32\+\_\+t}]{id\+\_\+genome, } |
| 704 |
\item[{{\bf B\+F\+T\+\_\+annotation} $\ast$}]{bft\+\_\+annot, } |
| 705 |
\item[{{\bf B\+FT} $\ast$}]{bft} |
| 706 |
\end{DoxyParamCaption} |
| 707 |
)}\hypertarget{bft_8h_a373c016bb3d180d9cb77ce3df04e5774}{}\label{bft_8h_a373c016bb3d180d9cb77ce3df04e5774} |
| 708 |
|
| 709 |
|
| 710 |
Function testing if a k-\/mer occured in a genome. |
| 711 |
|
| 712 |
|
| 713 |
\begin{DoxyParams}{Parameters} |
| 714 |
{\em id\+\_\+genome} & is the genome identifier. \\ |
| 715 |
\hline |
| 716 |
{\em bft\+\_\+annot} & is the annotation of the k-\/mer to test the presence in genome. \\ |
| 717 |
\hline |
| 718 |
{\em bft} & is a B\+FT in which the k-\/mer is is stored. \\ |
| 719 |
\hline |
| 720 |
\end{DoxyParams} |
| 721 |
\begin{DoxyReturn}{Returns} |
| 722 |
a boolean indicating the presence (true) or absence (false) of the k-\/mer in a the genome. |
| 723 |
\end{DoxyReturn} |
| 724 |
\index{bft.\+h@{bft.\+h}!query\+\_\+sequence@{query\+\_\+sequence}} |
| 725 |
\index{query\+\_\+sequence@{query\+\_\+sequence}!bft.\+h@{bft.\+h}} |
| 726 |
\subsubsection[{\texorpdfstring{query\+\_\+sequence(\+B\+F\+T $\ast$bft, char $\ast$sequence, double threshold, bool canonical\+\_\+search)}{query_sequence(BFT *bft, char *sequence, double threshold, bool canonical_search)}}]{\setlength{\rightskip}{0pt plus 5cm}uint32\+\_\+t$\ast$ query\+\_\+sequence ( |
| 727 |
\begin{DoxyParamCaption} |
| 728 |
\item[{{\bf B\+FT} $\ast$}]{bft, } |
| 729 |
\item[{char $\ast$}]{sequence, } |
| 730 |
\item[{double}]{threshold, } |
| 731 |
\item[{bool}]{canonical\+\_\+search} |
| 732 |
\end{DoxyParamCaption} |
| 733 |
)}\hypertarget{bft_8h_aa9806cafe5d6941638f125d59db61fa8}{}\label{bft_8h_aa9806cafe5d6941638f125d59db61fa8} |
| 734 |
|
| 735 |
|
| 736 |
Function querying a B\+FT for a sequence. |
| 737 |
|
| 738 |
|
| 739 |
\begin{DoxyParams}{Parameters} |
| 740 |
{\em bft} & is a B\+FT to be queried. \\ |
| 741 |
\hline |
| 742 |
{\em sequence} & is a string to query. \\ |
| 743 |
\hline |
| 744 |
{\em threshold} & is a float (0 $<$ threshold $<$= 1) indicating the minimum percentage of k-\/mers from the queried sequence that must be present in a genome to have the queried sequence reported present in this genome. \\ |
| 745 |
\hline |
| 746 |
{\em canonical\+\_\+search} & is a boolean indicating if the searched k-\/mers of the queried sequence must be canonical (lexicographically smaller one between a k-\/mer and its reverse-\/complement) or not. \\ |
| 747 |
\hline |
| 748 |
\end{DoxyParams} |
| 749 |
\begin{DoxyReturn}{Returns} |
| 750 |
a pointer to a sorted array of genome identifiers in which the queried sequence occurs (according to parameter threshold) or N\+U\+LL if the queried sequence is not present in at least one genome (according to parameter threshold). The first element of the array (position 0) indicates how many ids are in this array. |
| 751 |
\end{DoxyReturn} |
| 752 |
\index{bft.\+h@{bft.\+h}!set\+\_\+flag\+\_\+kmer@{set\+\_\+flag\+\_\+kmer}} |
| 753 |
\index{set\+\_\+flag\+\_\+kmer@{set\+\_\+flag\+\_\+kmer}!bft.\+h@{bft.\+h}} |
| 754 |
\subsubsection[{\texorpdfstring{set\+\_\+flag\+\_\+kmer(uint8\+\_\+t flag, B\+F\+T\+\_\+kmer $\ast$bft\+\_\+kmer, B\+F\+T $\ast$bft)}{set_flag_kmer(uint8_t flag, BFT_kmer *bft_kmer, BFT *bft)}}]{\setlength{\rightskip}{0pt plus 5cm}void set\+\_\+flag\+\_\+kmer ( |
| 755 |
\begin{DoxyParamCaption} |
| 756 |
\item[{uint8\+\_\+t}]{flag, } |
| 757 |
\item[{{\bf B\+F\+T\+\_\+kmer} $\ast$}]{bft\+\_\+kmer, } |
| 758 |
\item[{{\bf B\+FT} $\ast$}]{bft} |
| 759 |
\end{DoxyParamCaption} |
| 760 |
)}\hypertarget{bft_8h_aec4a612e2beec69b717be9e972fa16cb}{}\label{bft_8h_aec4a612e2beec69b717be9e972fa16cb} |
| 761 |
|
| 762 |
|
| 763 |
Function marking a k-\/mer of a B\+FT with a flag. |
| 764 |
|
| 765 |
|
| 766 |
\begin{DoxyParams}{Parameters} |
| 767 |
{\em flag} & is the mark to add to a k-\/mer. It can have value 0, 1, 2 or 3. \\ |
| 768 |
\hline |
| 769 |
{\em bft\+\_\+kmer} & is a k-\/mer obtained via search/iteration over a B\+FT that must be marked. \\ |
| 770 |
\hline |
| 771 |
{\em bft} & is a B\+FT locked for vertices marking. \\ |
| 772 |
\hline |
| 773 |
\end{DoxyParams} |
| 774 |
\index{bft.\+h@{bft.\+h}!set\+\_\+marking@{set\+\_\+marking}} |
| 775 |
\index{set\+\_\+marking@{set\+\_\+marking}!bft.\+h@{bft.\+h}} |
| 776 |
\subsubsection[{\texorpdfstring{set\+\_\+marking(\+B\+F\+T $\ast$bft)}{set_marking(BFT *bft)}}]{\setlength{\rightskip}{0pt plus 5cm}void set\+\_\+marking ( |
| 777 |
\begin{DoxyParamCaption} |
| 778 |
\item[{{\bf B\+FT} $\ast$}]{bft} |
| 779 |
\end{DoxyParamCaption} |
| 780 |
)}\hypertarget{bft_8h_ae3c4297d5058193972b3d54219d3f818}{}\label{bft_8h_ae3c4297d5058193972b3d54219d3f818} |
| 781 |
|
| 782 |
|
| 783 |
Function locking and preparing the graph for vertices marking (no insertion can happen before unlocking). |
| 784 |
|
| 785 |
By default, all k-\/mers of the graph are initialized with a 0 flag value. |
| 786 |
\begin{DoxyParams}{Parameters} |
| 787 |
{\em bft} & is a B\+FT to lock and prepare for vertices marking. \\ |
| 788 |
\hline |
| 789 |
\end{DoxyParams} |
| 790 |
\index{bft.\+h@{bft.\+h}!set\+\_\+neighbors\+\_\+traversal@{set\+\_\+neighbors\+\_\+traversal}} |
| 791 |
\index{set\+\_\+neighbors\+\_\+traversal@{set\+\_\+neighbors\+\_\+traversal}!bft.\+h@{bft.\+h}} |
| 792 |
\subsubsection[{\texorpdfstring{set\+\_\+neighbors\+\_\+traversal(\+B\+F\+T $\ast$bft)}{set_neighbors_traversal(BFT *bft)}}]{\setlength{\rightskip}{0pt plus 5cm}void set\+\_\+neighbors\+\_\+traversal ( |
| 793 |
\begin{DoxyParamCaption} |
| 794 |
\item[{{\bf B\+FT} $\ast$}]{bft} |
| 795 |
\end{DoxyParamCaption} |
| 796 |
)}\hypertarget{bft_8h_a7d5fc753178e2a65e4cf84c81a7a8c25}{}\label{bft_8h_a7d5fc753178e2a65e4cf84c81a7a8c25} |
| 797 |
|
| 798 |
|
| 799 |
Function locking the graph for traversal. |
| 800 |
|
| 801 |
It is not necessary to lock the graph for traversal (no insertion can happen during the locking) but traversing a locked graph is faster than traversing an unlocked graph. |
| 802 |
\begin{DoxyParams}{Parameters} |
| 803 |
{\em bft} & is a B\+FT to lock for traversal. \\ |
| 804 |
\hline |
| 805 |
\end{DoxyParams} |
| 806 |
\index{bft.\+h@{bft.\+h}!sym\+\_\+difference\+\_\+annotations@{sym\+\_\+difference\+\_\+annotations}} |
| 807 |
\index{sym\+\_\+difference\+\_\+annotations@{sym\+\_\+difference\+\_\+annotations}!bft.\+h@{bft.\+h}} |
| 808 |
\subsubsection[{\texorpdfstring{sym\+\_\+difference\+\_\+annotations(\+B\+F\+T $\ast$bft, uint32\+\_\+t nb\+\_\+annotations,...)}{sym_difference_annotations(BFT *bft, uint32_t nb_annotations,...)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf B\+F\+T\+\_\+annotation}$\ast$ sym\+\_\+difference\+\_\+annotations ( |
| 809 |
\begin{DoxyParamCaption} |
| 810 |
\item[{{\bf B\+FT} $\ast$}]{bft, } |
| 811 |
\item[{uint32\+\_\+t}]{nb\+\_\+annotations, } |
| 812 |
\item[{}]{...} |
| 813 |
\end{DoxyParamCaption} |
| 814 |
)}\hypertarget{bft_8h_af7a212e5c8cc93ff0593f39e62b89e81}{}\label{bft_8h_af7a212e5c8cc93ff0593f39e62b89e81} |
| 815 |
|
| 816 |
|
| 817 |
Function computing the symmetric difference of a set of annotations. |
| 818 |
|
| 819 |
|
| 820 |
\begin{DoxyParams}{Parameters} |
| 821 |
{\em bft} & is a B\+FT from which the input annotations are originated. \\ |
| 822 |
\hline |
| 823 |
{\em nb\+\_\+annotations} & indicates how many annotations must be included in the symmetric difference. \\ |
| 824 |
\hline |
| 825 |
{\em ...} & is a list of nb\+\_\+annotations \hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation} pointers of which the symmetric difference is computed. \\ |
| 826 |
\hline |
| 827 |
\end{DoxyParams} |
| 828 |
\begin{DoxyReturn}{Returns} |
| 829 |
a \hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation} pointer to an annotation which is the symmetric difference of the input annotations. |
| 830 |
\end{DoxyReturn} |
| 831 |
\index{bft.\+h@{bft.\+h}!union\+\_\+annotations@{union\+\_\+annotations}} |
| 832 |
\index{union\+\_\+annotations@{union\+\_\+annotations}!bft.\+h@{bft.\+h}} |
| 833 |
\subsubsection[{\texorpdfstring{union\+\_\+annotations(\+B\+F\+T $\ast$bft, uint32\+\_\+t nb\+\_\+annotations,...)}{union_annotations(BFT *bft, uint32_t nb_annotations,...)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf B\+F\+T\+\_\+annotation}$\ast$ union\+\_\+annotations ( |
| 834 |
\begin{DoxyParamCaption} |
| 835 |
\item[{{\bf B\+FT} $\ast$}]{bft, } |
| 836 |
\item[{uint32\+\_\+t}]{nb\+\_\+annotations, } |
| 837 |
\item[{}]{...} |
| 838 |
\end{DoxyParamCaption} |
| 839 |
)}\hypertarget{bft_8h_a3496af65565b70b2381af7315cda9bda}{}\label{bft_8h_a3496af65565b70b2381af7315cda9bda} |
| 840 |
|
| 841 |
|
| 842 |
Function computing the union of a set of annotations. |
| 843 |
|
| 844 |
|
| 845 |
\begin{DoxyParams}{Parameters} |
| 846 |
{\em bft} & is a B\+FT from which the input annotations are originated. \\ |
| 847 |
\hline |
| 848 |
{\em nb\+\_\+annotations} & indicates how many annotations must be included in the union. \\ |
| 849 |
\hline |
| 850 |
{\em ...} & is a list of nb\+\_\+annotations \hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation} pointers of which the union is computed. \\ |
| 851 |
\hline |
| 852 |
\end{DoxyParams} |
| 853 |
\begin{DoxyReturn}{Returns} |
| 854 |
a \hyperlink{structBFT__annotation}{B\+F\+T\+\_\+annotation} pointer to an annotation which is the union of the input annotations. |
| 855 |
\end{DoxyReturn} |
| 856 |
\index{bft.\+h@{bft.\+h}!unset\+\_\+marking@{unset\+\_\+marking}} |
| 857 |
\index{unset\+\_\+marking@{unset\+\_\+marking}!bft.\+h@{bft.\+h}} |
| 858 |
\subsubsection[{\texorpdfstring{unset\+\_\+marking(\+B\+F\+T $\ast$bft)}{unset_marking(BFT *bft)}}]{\setlength{\rightskip}{0pt plus 5cm}void unset\+\_\+marking ( |
| 859 |
\begin{DoxyParamCaption} |
| 860 |
\item[{{\bf B\+FT} $\ast$}]{bft} |
| 861 |
\end{DoxyParamCaption} |
| 862 |
)}\hypertarget{bft_8h_a1136ae628a88730d64de12a1807e6b11}{}\label{bft_8h_a1136ae628a88730d64de12a1807e6b11} |
| 863 |
|
| 864 |
|
| 865 |
Function unlocking and the graph locked for vertices marking. |
| 866 |
|
| 867 |
|
| 868 |
\begin{DoxyParams}{Parameters} |
| 869 |
{\em bft} & is a B\+FT locked for vertices marking. \\ |
| 870 |
\hline |
| 871 |
\end{DoxyParams} |
| 872 |
\index{bft.\+h@{bft.\+h}!unset\+\_\+neighbors\+\_\+traversal@{unset\+\_\+neighbors\+\_\+traversal}} |
| 873 |
\index{unset\+\_\+neighbors\+\_\+traversal@{unset\+\_\+neighbors\+\_\+traversal}!bft.\+h@{bft.\+h}} |
| 874 |
\subsubsection[{\texorpdfstring{unset\+\_\+neighbors\+\_\+traversal(\+B\+F\+T $\ast$bft)}{unset_neighbors_traversal(BFT *bft)}}]{\setlength{\rightskip}{0pt plus 5cm}void unset\+\_\+neighbors\+\_\+traversal ( |
| 875 |
\begin{DoxyParamCaption} |
| 876 |
\item[{{\bf B\+FT} $\ast$}]{bft} |
| 877 |
\end{DoxyParamCaption} |
| 878 |
)}\hypertarget{bft_8h_af273f713203ce229496cafc0a5b2806e}{}\label{bft_8h_af273f713203ce229496cafc0a5b2806e} |
| 879 |
|
| 880 |
|
| 881 |
Function unlocking a locked graph for traversal. |
| 882 |
|
| 883 |
|
| 884 |
\begin{DoxyParams}{Parameters} |
| 885 |
{\em bft} & is a locked B\+FT for traversal that must be unlocked. \\ |
| 886 |
\hline |
| 887 |
\end{DoxyParams} |
| 888 |
\index{bft.\+h@{bft.\+h}!v\+\_\+iterate\+\_\+over\+\_\+kmers@{v\+\_\+iterate\+\_\+over\+\_\+kmers}} |
| 889 |
\index{v\+\_\+iterate\+\_\+over\+\_\+kmers@{v\+\_\+iterate\+\_\+over\+\_\+kmers}!bft.\+h@{bft.\+h}} |
| 890 |
\subsubsection[{\texorpdfstring{v\+\_\+iterate\+\_\+over\+\_\+kmers(\+B\+F\+T $\ast$bft, B\+F\+T\+\_\+func\+\_\+ptr f, va\+\_\+list args)}{v_iterate_over_kmers(BFT *bft, BFT_func_ptr f, va_list args)}}]{\setlength{\rightskip}{0pt plus 5cm}void v\+\_\+iterate\+\_\+over\+\_\+kmers ( |
| 891 |
\begin{DoxyParamCaption} |
| 892 |
\item[{{\bf B\+FT} $\ast$}]{bft, } |
| 893 |
\item[{{\bf B\+F\+T\+\_\+func\+\_\+ptr}}]{f, } |
| 894 |
\item[{va\+\_\+list}]{args} |
| 895 |
\end{DoxyParamCaption} |
| 896 |
)}\hypertarget{bft_8h_aa616e55874abfd5811c8854586718c35}{}\label{bft_8h_aa616e55874abfd5811c8854586718c35} |
| 897 |
|
| 898 |
|
| 899 |
Function iterating over the k-\/mers of a B\+FT. |
| 900 |
|
| 901 |
This function should be used only when called from a function with a variable number of arguments. If not, you must use \hyperlink{bft_8h_af3cb2e5bd87fc7c7f7240986bf7351fe}{iterate\+\_\+over\+\_\+kmers()}. |
| 902 |
\begin{DoxyParams}{Parameters} |
| 903 |
{\em bft} & is a B\+FT containing the k-\/mers to iterate over. \\ |
| 904 |
\hline |
| 905 |
{\em f} & is a pointer on function that will be called on each k-\/mer. If f returns 0, the calling function returns. \\ |
| 906 |
\hline |
| 907 |
{\em args} & should contain all additional arguments to pass to f. They can be extracted in f via its parameter of type va\+\_\+list. \\ |
| 908 |
\hline |
| 909 |
\end{DoxyParams} |
| 910 |
\index{bft.\+h@{bft.\+h}!write\+\_\+\+B\+FT@{write\+\_\+\+B\+FT}} |
| 911 |
\index{write\+\_\+\+B\+FT@{write\+\_\+\+B\+FT}!bft.\+h@{bft.\+h}} |
| 912 |
\subsubsection[{\texorpdfstring{write\+\_\+\+B\+F\+T(\+B\+F\+T $\ast$bft, char $\ast$filename, bool compress\+\_\+annotations)}{write_BFT(BFT *bft, char *filename, bool compress_annotations)}}]{\setlength{\rightskip}{0pt plus 5cm}void write\+\_\+\+B\+FT ( |
| 913 |
\begin{DoxyParamCaption} |
| 914 |
\item[{{\bf B\+FT} $\ast$}]{bft, } |
| 915 |
\item[{char $\ast$}]{filename, } |
| 916 |
\item[{bool}]{compress\+\_\+annotations} |
| 917 |
\end{DoxyParamCaption} |
| 918 |
)}\hypertarget{bft_8h_a51347017832238592f50046c47903aeb}{}\label{bft_8h_a51347017832238592f50046c47903aeb} |
| 919 |
|
| 920 |
|
| 921 |
Function writing a B\+FT to disk. |
| 922 |
|
| 923 |
|
| 924 |
\begin{DoxyParams}{Parameters} |
| 925 |
{\em bft} & is the B\+FT to write on disk. \\ |
| 926 |
\hline |
| 927 |
{\em filename} & is the name of the file in which bft will be written. \\ |
| 928 |
\hline |
| 929 |
{\em compress\+\_\+annotations} & is a boolean indicating if the annotations of the B\+FT must be compressed before writing to disk. \\ |
| 930 |
\hline |
| 931 |
\end{DoxyParams} |
| 932 |
\index{bft.\+h@{bft.\+h}!write\+\_\+kmer\+\_\+ascii\+\_\+to\+\_\+disk@{write\+\_\+kmer\+\_\+ascii\+\_\+to\+\_\+disk}} |
| 933 |
\index{write\+\_\+kmer\+\_\+ascii\+\_\+to\+\_\+disk@{write\+\_\+kmer\+\_\+ascii\+\_\+to\+\_\+disk}!bft.\+h@{bft.\+h}} |
| 934 |
\subsubsection[{\texorpdfstring{write\+\_\+kmer\+\_\+ascii\+\_\+to\+\_\+disk(\+B\+F\+T\+\_\+kmer $\ast$bft\+\_\+kmer, B\+F\+T $\ast$bft, va\+\_\+list args)}{write_kmer_ascii_to_disk(BFT_kmer *bft_kmer, BFT *bft, va_list args)}}]{\setlength{\rightskip}{0pt plus 5cm}size\+\_\+t write\+\_\+kmer\+\_\+ascii\+\_\+to\+\_\+disk ( |
| 935 |
\begin{DoxyParamCaption} |
| 936 |
\item[{{\bf B\+F\+T\+\_\+kmer} $\ast$}]{bft\+\_\+kmer, } |
| 937 |
\item[{{\bf B\+FT} $\ast$}]{bft, } |
| 938 |
\item[{va\+\_\+list}]{args} |
| 939 |
\end{DoxyParamCaption} |
| 940 |
)}\hypertarget{bft_8h_a76832aa3bffe26b997a562f56ce4fcba}{}\label{bft_8h_a76832aa3bffe26b997a562f56ce4fcba} |
| 941 |
|
| 942 |
|
| 943 |
Function writing an A\+S\+C\+II k-\/mer in a file. |
| 944 |
|
| 945 |
This function is of type B\+F\+T\+\_\+func\+\_\+ptr and is intended to be a parameter of \hyperlink{bft_8h_af3cb2e5bd87fc7c7f7240986bf7351fe}{iterate\+\_\+over\+\_\+kmers()} or \hyperlink{bft_8h_aa616e55874abfd5811c8854586718c35}{v\+\_\+iterate\+\_\+over\+\_\+kmers()}. |
| 946 |
\begin{DoxyParams}{Parameters} |
| 947 |
{\em bft\+\_\+kmer} & is a k-\/mer to write to disk. \\ |
| 948 |
\hline |
| 949 |
{\em bft} & is a B\+FT from which bft\+\_\+kmer was extracted. \\ |
| 950 |
\hline |
| 951 |
{\em args} & is a variable list of arguments. It contains a pointer to a file where to write bft\+\_\+kmer. \\ |
| 952 |
\hline |
| 953 |
\end{DoxyParams} |
| 954 |
\index{bft.\+h@{bft.\+h}!write\+\_\+kmer\+\_\+comp\+\_\+to\+\_\+disk@{write\+\_\+kmer\+\_\+comp\+\_\+to\+\_\+disk}} |
| 955 |
\index{write\+\_\+kmer\+\_\+comp\+\_\+to\+\_\+disk@{write\+\_\+kmer\+\_\+comp\+\_\+to\+\_\+disk}!bft.\+h@{bft.\+h}} |
| 956 |
\subsubsection[{\texorpdfstring{write\+\_\+kmer\+\_\+comp\+\_\+to\+\_\+disk(\+B\+F\+T\+\_\+kmer $\ast$bft\+\_\+kmer, B\+F\+T $\ast$bft, va\+\_\+list args)}{write_kmer_comp_to_disk(BFT_kmer *bft_kmer, BFT *bft, va_list args)}}]{\setlength{\rightskip}{0pt plus 5cm}size\+\_\+t write\+\_\+kmer\+\_\+comp\+\_\+to\+\_\+disk ( |
| 957 |
\begin{DoxyParamCaption} |
| 958 |
\item[{{\bf B\+F\+T\+\_\+kmer} $\ast$}]{bft\+\_\+kmer, } |
| 959 |
\item[{{\bf B\+FT} $\ast$}]{bft, } |
| 960 |
\item[{va\+\_\+list}]{args} |
| 961 |
\end{DoxyParamCaption} |
| 962 |
)}\hypertarget{bft_8h_a77a802e5edc240a7a6a705ef6593799d}{}\label{bft_8h_a77a802e5edc240a7a6a705ef6593799d} |
| 963 |
|
| 964 |
|
| 965 |
Function writing an 2 bits encoded k-\/mer in a file. |
| 966 |
|
| 967 |
This function is of type B\+F\+T\+\_\+func\+\_\+ptr and is intended to be a parameter of \hyperlink{bft_8h_af3cb2e5bd87fc7c7f7240986bf7351fe}{iterate\+\_\+over\+\_\+kmers()} or \hyperlink{bft_8h_aa616e55874abfd5811c8854586718c35}{v\+\_\+iterate\+\_\+over\+\_\+kmers()}. |
| 968 |
\begin{DoxyParams}{Parameters} |
| 969 |
{\em bft\+\_\+kmer} & is a k-\/mer to write to disk. \\ |
| 970 |
\hline |
| 971 |
{\em bft} & is a B\+FT from which bft\+\_\+kmer was extracted. \\ |
| 972 |
\hline |
| 973 |
{\em args} & is a variable list of arguments. It contains a pointer to a file where to write bft\+\_\+kmer. \\ |
| 974 |
\hline |
| 975 |
\end{DoxyParams} |