-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkmers_to_kwtree.h
More file actions
23 lines (18 loc) · 953 Bytes
/
kmers_to_kwtree.h
File metadata and controls
23 lines (18 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef KMERS_TO_KWTREE_H
#define KMERS_TO_KWTREE_H
#include <stdlib.h>
#include <stdint.h>
#include <time.h>
#include <string.h>
#include "common.h"
#include "keyword_tree.h"
//produces an array of k-mers by reading provided file. This can be treated as each line as a separate input, or the entire file as one long string
int fillKmersArrayAndInfo(KWTreeBuildingManager* manager, FILE *inputFP,
char **kmers, KmerInfo *kmersInfo, SC_INT maxPossibleNumberOfKmers);
//collects stats about possible number of k-mers to count
int collectKmerInputStats(FILE *inputFP, SC_INT k, int inputType, SC_INT *estimatedNumberOfKmers);
//builds kw tree index from all k-mers
int convertAllKmersIntoKWTree (char *kmersFileName, int inputType, SC_INT k, int includeRC, SC_INT memoryMB);
//saves binary tree to file for future use
int saveTreeAndMapping (char *kwtreeFileName, KWTNode *KWtree, SC_INT totalNodes, KmerInfo *kmersInfo, SC_INT totalKmers);
#endif