-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdiscover_main.h
49 lines (45 loc) · 1.59 KB
/
discover_main.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
#ifndef PANDORA_DISCOVER_MAIN_H
#define PANDORA_DISCOVER_MAIN_H
#include <boost/filesystem.hpp>
#include <boost/log/core.hpp>
#include <boost/log/expressions.hpp>
#include <boost/log/trivial.hpp>
#include <boost/log/utility/setup/console.hpp>
#include "CLI11.hpp"
#include "denovo_discovery/denovo_utils.h"
#include "utils.h"
#include "index.h"
#include "pangenome/pangraph.h"
#include "estimate_parameters.h"
namespace fs = boost::filesystem;
/// Collection of all options of discover subcommand.
struct DiscoverOptions {
fs::path index_file;
fs::path reads_idx_file;
fs::path outdir { "pandora_discover" };
uint32_t threads { 1 };
uint8_t verbosity { 0 };
float error_rate { 0.11 };
uint32_t rng_seed { 0 };
uint32_t genome_size { 5000000 };
uint32_t max_diff { 250 };
float conflicting_clusters_overlap_threshold { 0.8 };
float conflicting_clusters_minimiser_tolerance { 0.05 };
bool output_kg { false };
bool illumina { false };
bool binomial { false };
bool do_not_auto_update_params { false };
uint32_t max_covg { 600 };
float min_absolute_gene_coverage { 3.0 };
float min_relative_gene_coverage { 0.05 };
float max_relative_gene_coverage { 100 };
float min_gene_coverage_proportion { 0.8 };
bool no_gene_coverage_filtering { false };
uint32_t min_cluster_size { 10 };
uint32_t max_num_kmers_to_avg { 100 };
float partial_matching_lower_bound { 0.5 };
bool keep_extra_debugging_files { false };
};
void setup_discover_subcommand(CLI::App& app);
int pandora_discover(DiscoverOptions& opt);
#endif // PANDORA_DISCOVER_MAIN_H