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
use clap::Subcommand;
#[derive(Subcommand)]
pub enum ModEnrichr {
/// Perform the Enrichr gene set enrichment analysis
Enrichr {
/// any database listed at: <https://maayanlab.cloud/Enrichr/#libraries>
/// some shorthands include: pathway, transcription, ontology, diseases_drugs, celltypes,
/// and kinase_interactions.
#[clap(short, long)]
library: String,
/// Optional background gene list to perform enrichment analysis with. Comma delimited
#[clap(short, long, value_parser, value_delimiter = ',')]
background: Option<Vec<String>>,
/// list of gene symbols to perform enrichment analysis on.
#[clap(value_parser, required = true)]
gene_list: Vec<String>,
/// optional filepath to write output to [default=stdout]
#[clap(short, long)]
output: Option<String>,
},
/// List all available libraries and their descriptions
List {
/// Return library names in plaintext
#[clap(short, long)]
minimal: bool,
/// List the categorization of libraries
#[clap(short = 't', long)]
list_categories: bool,
/// Filter to a category ID
#[clap(short, long)]
category: Option<usize>,
/// optional filepath to write output to [default=stdout]
#[clap(short, long)]
output: Option<String>,
},
}