本文整理汇总了C++中Index::dump方法的典型用法代码示例。如果您正苦于以下问题:C++ Index::dump方法的具体用法?C++ Index::dump怎么用?C++ Index::dump使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Index
的用法示例。
在下文中一共展示了Index::dump方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main_index
int main_index(int argc, char** argv) {
if (argc == 2) {
help_index(argv);
return 1;
}
string rocksdb_name;
string gcsa_name;
string xg_name;
// Where should we import haplotype phasing paths from, if anywhere?
string vcf_name;
// This maps from graph path name (FASTA name) to VCF contig name
map<string,string> path_to_vcf;
vector<string> dbg_names;
int kmer_size = 0;
bool path_only = false;
int edge_max = 0;
int kmer_stride = 1;
int prune_kb = -1;
bool store_graph = false;
bool dump_index = false;
bool describe_index = false;
bool show_progress = false;
bool set_kmer_size = false;
bool path_layout = false;
bool store_alignments = false;
bool store_node_alignments = false;
bool store_mappings = false;
bool allow_negs = false;
bool compact = false;
bool dump_alignments = false;
int doubling_steps = 3;
bool verify_index = false;
bool forward_only = false;
size_t size_limit = 200; // in gigabytes
bool store_threads = false; // use gPBWT to store paths
bool discard_overlaps = false;
int c;
optind = 2; // force optind past command positional argument
while (true) {
static struct option long_options[] =
{
//{"verbose", no_argument, &verbose_flag, 1},
{"db-name", required_argument, 0, 'd'},
{"kmer-size", required_argument, 0, 'k'},
{"edge-max", required_argument, 0, 'e'},
{"kmer-stride", required_argument, 0, 'j'},
{"store-graph", no_argument, 0, 's'},
{"store-alignments", no_argument, 0, 'a'},
{"dump-alignments", no_argument, 0, 'A'},
{"store-mappings", no_argument, 0, 'm'},
{"dump", no_argument, 0, 'D'},
{"metadata", no_argument, 0, 'M'},
{"set-kmer", no_argument, 0, 'S'},
{"threads", required_argument, 0, 't'},
{"progress", no_argument, 0, 'p'},
{"prune", required_argument, 0, 'P'},
{"path-layout", no_argument, 0, 'L'},
{"compact", no_argument, 0, 'C'},
{"allow-negs", no_argument, 0, 'n'},
{"gcsa-name", required_argument, 0, 'g'},
{"xg-name", required_argument, 0, 'x'},
{"vcf-phasing", required_argument, 0, 'v'},
{"rename", required_argument, 0, 'r'},
{"verify-index", no_argument, 0, 'V'},
{"forward-only", no_argument, 0, 'F'},
{"size-limit", no_argument, 0, 'Z'},
{"path-only", no_argument, 0, 'O'},
{"store-threads", no_argument, 0, 'T'},
{"node-alignments", no_argument, 0, 'N'},
{"dbg-in", required_argument, 0, 'i'},
{"discard-overlaps", no_argument, 0, 'o'},
{0, 0, 0, 0}
};
int option_index = 0;
c = getopt_long (argc, argv, "d:k:j:pDshMt:b:e:SP:LmaCnAg:X:x:v:r:VFZ:Oi:TNo",
long_options, &option_index);
// Detect the end of the options.
if (c == -1)
break;
switch (c)
{
case 'd':
rocksdb_name = optarg;
break;
case 'x':
xg_name = optarg;
break;
case 'v':
vcf_name = optarg;
break;
case 'r':
//.........这里部分代码省略.........