Struct umgap::commands::taxa2tree::TaxaToTree
source · pub struct TaxaToTree {
pub url: bool,
}
Expand description
Visualizes a stream of taxon IDs using the Unipept API
The umgap taxa2tree
command, similar to the unipept taxa2tree
command, takes one or more
taxon IDs and returns a visualized taxonomic tree of these taxa using the Unipept API server.
The input is given in a FASTA format on standard input. Each FASTA record contains one taxon
ID. A HTML file is written to standard output containing a visualization of the taxonomic
tree containing all these taxa. With -u
, a URL to the visualization hosted online is printed
instead.
$ cat input.txt
>header1
817
329854
1099853
$ umgap taxa2tree < input.txt > output.html
$ umgap taxa2tree --url < input.txt
https://bl.ocks.org/a686a37e1dcd43dd4ec7d467487bd6a1
Fields§
§url: bool
Host the result online and return the URL
Trait Implementations§
source§impl Debug for TaxaToTree
impl Debug for TaxaToTree
source§impl StructOpt for TaxaToTree
impl StructOpt for TaxaToTree
source§fn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
Builds the struct from
clap::ArgMatches
. It’s guaranteed to succeed
if matches
originates from an App
generated by StructOpt::clap
called on
the same type, otherwise it must panic.source§fn from_args() -> Selfwhere
Self: Sized,
fn from_args() -> Selfwhere
Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os
).
Calls clap::Error::exit
on failure, printing the error message and aborting the program.source§fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os
).
Unlike StructOpt::from_args
, returns clap::Error
on failure instead of aborting the program,
so calling .exit
is up to you.source§fn from_iter<I>(iter: I) -> Self
fn from_iter<I>(iter: I) -> Self
Gets the struct from any iterator such as a
Vec
of your making.
Print the error message and quit the program in case of failure. Read moreAuto Trait Implementations§
impl RefUnwindSafe for TaxaToTree
impl Send for TaxaToTree
impl Sync for TaxaToTree
impl Unpin for TaxaToTree
impl UnwindSafe for TaxaToTree
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more