pub struct Args {Show 16 fields
pub in_kmers: String,
pub in_sequences: String,
pub in_filelist: String,
pub out_sequences: String,
pub out_filelist: String,
pub out_kmers: String,
pub counted_kmer_threshold: usize,
pub output_kmer_positions: bool,
pub output_mapping_positions: bool,
pub kmer_size: usize,
pub min_threshold: f32,
pub max_threshold: f32,
pub stranded: bool,
pub query_reverse: bool,
pub no_low_complexity: bool,
pub threads: usize,
}Expand description
Extract sequences that contain some kmers
Fields§
§in_kmers: StringInput fasta file containing the original kmers Note: back_to_sequences considers the content as a set of kmers This means that a kmer is considered only once, even if it occurs multiple times in the file. If the stranded option is not used (default), a kmer and its reverse complement are considered as the same kmer.
in_sequences: StringInput fasta or fastq [.gz|zst] file containing the original sequences (eg. reads).
The stdin is used if not provided
(and if --in_filelist is not provided neither)
in_filelist: StringInput txt file containing in each line a path to a fasta or fastq [.gz|zst] file
containing the original sequences (eg. reads).
Note1: if this option is used, the --out_filelist option must be used.
The number of lines in out_filelist must be the same as in_filelist
Note2: Incompatible with --in_sequences
out_sequences: StringOutput file containing the filtered original sequences (eg. reads). It will be automatically in fasta or fastq format depending on the input file. If not provided, only the in_kmers with their count is output
out_filelist: StringOutput txt file containing in each line a path to a fasta or fastq [.gz] file that will contain the related output file from the input files list
out_kmers: StringIf provided, output a text file containing the kmers that occur in the reads
with their
* number of occurrences
or
* their occurrence positions if the –output_kmer_positions option is used
Note: if --in_filelist is used the output counted kmers are
those occurring the last input file of that list
counted_kmer_threshold: usizeIf out_kmers is provided, output only reference kmers whose number of occurrences is at least equal to this value. If out_kmers is not provided, this option is ignored
output_kmer_positions: boolIf out_kmers is provided, either only count their number of occurrences (default) or output their occurrence positions (read_id, position, strand) if this option is used
output_mapping_positions: boolIf provided, output matching positions on sequences in the out_sequence file(s) Also outputs the number and ratio of shared kmers Also outputs the number of positions covered by shared kmers (last value in parathesis)
kmer_size: usizeSize of the kmers to index and search
min_threshold: f32Output sequences are those whose ratio of indexed kmers is in ]min_threshold; max_threshold] Minimal threshold of the ratio (%) of kmers that must be found in a sequence to keep it (default 0%). Thus by default, if no kmer is found in a sequence, it is not output.
max_threshold: f32Output sequences are those whose ratio of indexed kmers is in ]min_threshold; max_threshold] Maximal threshold of the ratio (%) of kmers that must be found in a sequence to keep it (default 100%). Thus by default, there is no limitation on the maximal number of kmers found in a sequence.
stranded: boolUsed original kmer strand (else canonical kmers are considered)
query_reverse: boolQuery the reverse complement of reads. Useless without the –stranded option
no_low_complexity: boolDo not index low complexity kmers (ie. with a Shannon entropy < 1.0)
threads: usizeNumber of threads Note: if not provided, the number of threads is set to the number of logical cores
Trait Implementations§
Source§impl Args for Args
impl Args for Args
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
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>
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>
ArgMatches to self.Source§impl Parser for Args
impl Parser for Args
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, 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 Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnsafeUnpin for Args
impl UnwindSafe for Args
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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