Skip to main content

Args

Struct Args 

Source
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: String

Input 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: String

Input 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: String

Input 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: String

Output 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: String

Output 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: String

If 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: usize

If 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: bool

If 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: bool

If 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: usize

Size of the kmers to index and search

§min_threshold: f32

Output 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: f32

Output 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: bool

Used original kmer strand (else canonical kmers are considered)

§query_reverse: bool

Query the reverse complement of reads. Useless without the –stranded option

§no_low_complexity: bool

Do not index low complexity kmers (ie. with a Shannon entropy < 1.0)

§threads: usize

Number 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

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 Args

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 Args

Source§

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

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

impl FromArgMatches for Args

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 Args

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 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> 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, 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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.