-
Notifications
You must be signed in to change notification settings - Fork 3
/
cmd_make_bv.h
45 lines (39 loc) · 1.18 KB
/
cmd_make_bv.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
#ifndef cmd_make_bv_H
#define cmd_make_bv_H
#include <string>
#include <cstdlib>
#include <cstdint>
#include <iostream>
#include "hash.h"
#include "commands.h"
class MakeBVCommand: 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::uint64_t defaultNumBits = 500*1000;
public:
MakeBVCommand(const std::string& name): Command(name) {}
virtual ~MakeBVCommand();
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_bit_vector_fasta (void);
virtual void make_bit_vector_kmers (void);
std::string listFilename;
std::vector<std::string> seqFilenames;
bool inputIsKmers;
std::string bvFilename;
std::string asPerFilename;
std::uint32_t kmerSize;
std::uint32_t minAbundance;
bool minAbundanceSet;
std::uint32_t numThreads;
std::uint64_t hashSeed;
std::uint64_t numBits;
HashCanonical* hasher = nullptr;
};
#endif // cmd_make_bv_H