pub struct FilterOptions {
pub list: Option<HashSet<Vec<u8>>>,
pub list_file: Option<PathBuf>,
pub bam: Option<PathBuf>,
pub cram: Option<PathBuf>,
pub fasta: Option<PathBuf>,
pub fastq1: Option<PathBuf>,
pub fastq2: Option<PathBuf>,
pub suffix: String,
pub fasta_out: bool,
pub fastq_out: bool,
pub read_list: Option<PathBuf>,
}Expand description
Options to pass to blobtk filter
Fields§
§list: Option<HashSet<Vec<u8>>>List of sequence IDs
list_file: Option<PathBuf>Path to input file containing a list of sequence IDs
bam: Option<PathBuf>Path to BAM file
cram: Option<PathBuf>Path to CRAM file
fasta: Option<PathBuf>Path to assembly FASTA input file (required for CRAM)
fastq1: Option<PathBuf>Path to FASTQ file to filter (forward or single reads)
fastq2: Option<PathBuf>Path to paired FASTQ file to filter (reverse reads)
suffix: StringSuffix to use for output filtered files
fasta_out: boolFlag to output a filtered FASTA file
fastq_out: boolFlag to output filtered FASTQ files
read_list: Option<PathBuf>Path to output list of read IDs
Trait Implementations§
Source§impl Args for FilterOptions
impl Args for FilterOptions
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
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 moreSource§impl CommandFactory for FilterOptions
impl CommandFactory for FilterOptions
Source§impl Debug for FilterOptions
impl Debug for FilterOptions
Source§impl FromArgMatches for FilterOptions
impl FromArgMatches for FilterOptions
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
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>
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 FilterOptions
impl Parser for FilterOptions
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for FilterOptions
impl RefUnwindSafe for FilterOptions
impl Send for FilterOptions
impl Sync for FilterOptions
impl Unpin for FilterOptions
impl UnsafeUnpin for FilterOptions
impl UnwindSafe for FilterOptions
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.