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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
use clap::{Parser, Subcommand};
#[derive(Debug, Parser)]
#[command(
name = "beemorph",
version = "1.0",
about = "Interaction portal for bee interaction
************************************************
Gaurav Sablok,
Email: codeprog@icloud.com
************************************************"
)]
pub struct CommandParse {
/// subcommands for the specific actions
#[command(subcommand)]
pub command: Commands,
}
#[derive(Subcommand, Debug)]
pub enum Commands {
/// browse the interactions
TaxonID {
/// path to the file
filepath: String,
/// threads for the analysis
thread: String,
/// search by taxonid
taxonid: String,
},
/// browse according to taxontds
TaxonTds {
/// path to the file
filepath: String,
/// threads for the analysis
thread: String,
/// search by taxontds
taxontds: String,
},
/// browse according to taxonname
TaxonName {
/// path to the file
filepath: String,
/// threads for the analysis
thread: String,
/// search by taxonname
taxonname: String,
},
/// browse according to taxonpathname
TaxonPathName {
/// path to the file
filepath: String,
/// threads for the analysis
thread: String,
/// search by taxonpath
taxonpathname: String,
},
/// browse according to taxonpathids
TaxonpathID {
/// path to the file
filepath: String,
/// threads for the analysis
thread: String,
/// search by taxon path id
taxonpathid: String,
},
/// browse according to taxonsubgenusid
TaxonSubGenusID {
/// path to the file
filepath: String,
/// threads for the analysis
thread: String,
/// search by the taxon sub genus id
taxonsubgenusid: String,
},
/// browse according to taxongenusname
TaxonGenusName {
/// path to the file
filepath: String,
/// threads for the analysis
thread: String,
/// search by the taxon genus name
taxongenusname: String,
},
/// browse according to taxonfamilyid
TaxonFamilyID {
/// path to the file
filepath: String,
/// threads for the analysis
thread: String,
/// search by taxon family id
taxonfamilyid: String,
},
/// browse according to taxonfamilyname
TaxonFamilyName {
/// path to the file
filepath: String,
/// threads for the analysis
thread: String,
/// search by taxon family name
taxonfamilyname: String,
},
/// browse according to wildsearch
WildSearch {
/// path to the file
filepath: String,
/// threads for the analysis
thread: String,
/// search wild categoris
wildsearch: String,
},
/// make a database
DiversityDatabase {
/// filepath
pathfile: String,
/// number of threads
threads: String,
},
}