-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcli.rs
More file actions
66 lines (64 loc) · 2.26 KB
/
cli.rs
File metadata and controls
66 lines (64 loc) · 2.26 KB
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
use clap::{Arg, Command, arg};
pub const GENOMICDIST_CMD: &str = "genomicdist";
pub fn create_genomicdist_cli() -> Command {
Command::new(GENOMICDIST_CMD)
.about("Compute genomic distribution statistics for a BED file.")
.arg(
arg!(--bed <BED>)
.required(true)
.help("Path to input BED file"),
)
.arg(
arg!(--gtf <GTF>)
.required(false)
.help("Path to GTF/GTF.gz gene model (enables partitions; also TSS distances if no --tss)"),
)
.arg(
arg!(--tss <TSS>)
.required(false)
.help("Path to TSS BED file (overrides GTF-derived TSS for distance calculation)"),
)
.arg(
Arg::new("chrom-sizes")
.long("chrom-sizes")
.required(false)
.help("Path to chrom.sizes file (enables expected partitions and promoter trimming)"),
)
.arg(
arg!(--output <OUTPUT>)
.required(false)
.help("Output JSON path (default: stdout)"),
)
.arg(
arg!(--bins <BINS>)
.required(false)
.default_value("250")
.help("Number of bins for region distribution"),
)
.arg(
Arg::new("signal-matrix")
.long("signal-matrix")
.required(false)
.help("Path to open signal matrix TSV (enables cell-type open chromatin enrichment)"),
)
.arg(
Arg::new("promoter-upstream")
.long("promoter-upstream")
.required(false)
.default_value("200")
.help("Upstream distance (bp) from TSS to define promoter regions"),
)
.arg(
Arg::new("promoter-downstream")
.long("promoter-downstream")
.required(false)
.default_value("2000")
.help("Downstream distance (bp) from TSS to define promoter regions"),
)
.arg(
Arg::new("compact")
.long("compact")
.action(clap::ArgAction::SetTrue)
.help("Compact JSON output (default: pretty-printed)"),
)
}