Skip to main content

cyto_cli/ibu/
view.rs

1use super::IbuInput;
2
3#[derive(clap::Parser, Debug)]
4pub struct ArgsView {
5    #[clap(flatten)]
6    pub input: IbuInput,
7
8    #[clap(flatten)]
9    pub options: OptionsView,
10}
11
12#[derive(clap::Parser, Debug)]
13pub struct OptionsView {
14    /// Decode the contents of the IBU library (from 2bit)
15    #[clap(short, long)]
16    pub decode: bool,
17
18    /// Only output the header of the IBU library
19    #[clap(short = 'H', long, conflicts_with = "skip_header")]
20    pub header: bool,
21
22    /// Skip outputting the header of the IBU library
23    ///
24    /// Be careful when doing this if not decoding the library as you
25    /// may not be able to decode correctly without the header
26    #[clap(short = 'S', long)]
27    pub skip_header: bool,
28
29    /// File containing the index features
30    ///
31    /// If this is provided the index features names will be output instead of their index values
32    #[clap(short = 'f', long)]
33    pub features: Option<String>,
34
35    /// The column in the feature file to use (the unit name, aggr name, etc.)
36    #[clap(short = 'C', long, default_value_t = 0)]
37    pub feature_col: usize,
38
39    /// Output file [default=stdout]
40    #[clap(short, long)]
41    pub output: Option<String>,
42}