Skip to main content

Cli

Struct Cli 

Source
pub struct Cli {
Show 24 fields pub fasta: PathBuf, pub vcf: Option<PathBuf>, pub bam: Vec<PathBuf>, pub region: Option<String>, pub tag: Option<String>, pub annotations: Vec<PathBuf>, pub annotation_format: Option<String>, pub signals: Vec<PathBuf>, pub signal_format: Option<String>, pub links: Vec<PathBuf>, pub link_format: Option<String>, pub link_min_score: Option<f64>, pub light_mode: bool, pub log_level: String, pub config: Option<PathBuf>, pub snapshot_bed: Option<PathBuf>, pub snapshot_genes: Option<PathBuf>, pub snapshot_out: Option<PathBuf>, pub snapshot_format: String, pub snapshot_width: u32, pub snapshot_flank: f64, pub snapshot_theme: String, pub no_browser: bool, pub serve_port: u16,
}

Fields§

§fasta: PathBuf

Path to the reference genome FASTA file (must have a .fai index).

§vcf: Option<PathBuf>

Path to a VCF file (must have a .tbi index). May be repeated in a future iteration; today only the first is honored.

§bam: Vec<PathBuf>

Path to a BAM file (must have a .bai or .csi index). May be repeated to display multiple alignment tracks.

§region: Option<String>

Initial region (e.g. “chr1:1000-2000”, “chr1:1000”, “chr1”).

§tag: Option<String>

BAM tag to color reads by (two-character tag, e.g. “ha”).

§annotations: Vec<PathBuf>

Path to a GFF3, GTF, BED, or narrowPeak/broadPeak annotation file. Format auto-detected by extension. May be repeated.

§annotation_format: Option<String>

Override annotation format auto-detection (gff, gff3, gtf, bed, narrowpeak, or broadpeak). Applies to all -g files.

§signals: Vec<PathBuf>

Path to a bigWig signal file (.bw / .bigwig). May be repeated.

§signal_format: Option<String>

Override signal format auto-detection (currently only bigwig). Applies to all -s files.

§links: Vec<PathBuf>

Path to a BEDPE link file (.bedpe / .bedpe.gz). May be repeated. Each file becomes its own track showing pairwise interactions (chromatin loops, enhancer-promoter, ChIA-PET, etc.).

§link_format: Option<String>

Override link format auto-detection (currently only bedpe). Applies to all -l files.

§link_min_score: Option<f64>

Drop links whose score column is below this value. Records without a score are unaffected.

§light_mode: bool

Use light theme (for light-background terminals).

§log_level: String

Logging level filter.

§config: Option<PathBuf>

Optional override config path. Defaults to $XDG_CONFIG_HOME/igv-rs/config.toml.

§snapshot_bed: Option<PathBuf>

Render snapshots for every region in this BED file (no TUI). Mutually exclusive with –snapshot-genes.

§snapshot_genes: Option<PathBuf>

Render snapshots for every gene name in this newline-separated file (no TUI). Requires at least one -g/–annotation. Mutually exclusive with –snapshot-bed.

§snapshot_out: Option<PathBuf>

Output directory for batch snapshots. Required when –snapshot-bed or –snapshot-genes is set.

§snapshot_format: String

Output format for snapshots: svg (default) or png.

§snapshot_width: u32

Image width in px for snapshots.

§snapshot_flank: f64

Padding fraction added to each side of every batch region.

§snapshot_theme: String

Snapshot color theme: igv (default) or tui.

§no_browser: bool

Disable the B keystroke / browser launch (CI, headless servers).

§serve_port: u16

TCP port for the browser-view HTTP server. 0 picks any free port.

Trait Implementations§

Source§

impl Args for Cli

Source§

fn group_id() -> Option<Id>

Report the ArgGroup::id for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

impl CommandFactory for Cli

Source§

fn command<'b>() -> Command

Build a Command that can instantiate Self. Read more
Source§

fn command_for_update<'b>() -> Command

Build a Command that can update self. Read more
Source§

impl Debug for Cli

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for Cli

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Parser for Cli

Source§

fn parse() -> Self

Parse from std::env::args_os(), exit on error.
Source§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
Source§

fn parse_from<I, T>(itr: I) -> Self
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, exit on error.
Source§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
Source§

fn update_from<I, T>(&mut self, itr: I)
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, exit on error. Read more
Source§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for Cli

§

impl RefUnwindSafe for Cli

§

impl Send for Cli

§

impl Sync for Cli

§

impl Unpin for Cli

§

impl UnsafeUnpin for Cli

§

impl UnwindSafe for Cli

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,