-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcommand_dist_wrapper.h
53 lines (52 loc) · 1.42 KB
/
command_dist_wrapper.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
53
// Copyright 2019 Huiguang Yi. All Rights Reservered.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef DIST_WRAPPER
#define DIST_WRAPPER
#include "global_basic.h"
#include <stdbool.h>
#include <argp.h>
int cmd_dist(struct argp_state* state);
const char *mk_dist_rslt_dir (const char *parentdirpath, const char * outdirpath );
typedef enum { Jcd, Ctm } MTRIC;
typedef enum { Dst, Qv, CI} PFIELD;
typedef struct dist_opt_val
{
int k ;
int p ;
int dr_level;
char dr_file[PATHLEN];
double mmry;
char fmt[10];
char refpath[PATHLEN];
char fpath[PATHLEN];
char outdir[PATHLEN];
int kmerocrs;
int kmerqlty;
bool keepco;
bool stage2;
int num_neigb;
double mut_dist_max;
MTRIC metric;
PFIELD outfields;
bool correction;
bool abundance;
bool u;
char pipecmd[PATHLEN];
char shared_kmerpath[PATHLEN];
bool keep_shared_kmer;
bool byread;
int num_remaining_args;
char **remaining_args;
} dist_opt_val_t;
#endif