-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcmd_make_bf.h
52 lines (46 loc) · 1.58 KB
/
cmd_make_bf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef cmd_make_bf_H
#define cmd_make_bf_H
#include <string>
#include <cstdlib>
#include <cstdint>
#include <iostream>
#include "commands.h"
class MakeBFCommand: public Command
{
public:
static const std::uint32_t defaultKmerSize = 20;
static const std::uint32_t defaultMinAbundance = 1;
static const std::uint32_t defaultNumThreads = 1;
static const std::uint32_t defaultNumHashes = 1;
static const std::uint64_t defaultNumBits = 500*1000;
public:
MakeBFCommand(const std::string& name): Command(name) {}
virtual ~MakeBFCommand() {}
virtual void short_description (std::ostream& s);
virtual void usage (std::ostream& s, const std::string& message="");
virtual void debug_help (std::ostream& s);
virtual void parse (int _argc, char** _argv);
virtual int execute (void);
virtual void make_bloom_filter_fasta (void);
virtual void make_bloom_filter_kmers (void);
virtual void report_stats(const std::string& bfOutFilename, std::uint64_t kmersAdded);
virtual std::string build_output_filename(void);
virtual std::string build_stats_filename(const std::string& bfOutFilename);
std::string listFilename;
std::vector<std::string> seqFilenames;
bool inputIsKmers;
std::string bfFilename;
std::string asPerFilename;
std::uint32_t kmerSize;
std::uint32_t minAbundance;
bool minAbundanceSet;
std::uint32_t numThreads;
std::uint32_t numHashes;
std::uint64_t hashSeed1, hashSeed2;
std::uint64_t hashModulus;
std::uint64_t numBits; // nota bene: numBits <= hashModulus
std::uint32_t compressor;
bool outputStats;
std::string statsFilename;
};
#endif // cmd_make_bf_H