Struct SeqArgs

Source
pub struct SeqArgs {
Show 21 fields pub in_fq: Option<String>, pub in_fa: Option<String>, pub mini_seq_length: Option<usize>, pub drop_ambigous_seq: bool, pub output_odd: bool, pub output_even: bool, pub reverse_complement: bool, pub both_complement: bool, pub output_fasta: bool, pub trim_header: bool, pub line_len: Option<usize>, pub ascii_bases: Option<u8>, pub output_qual_33: bool, pub q_low: Option<u8>, pub q_high: Option<u8>, pub fake_fastq_quality: Option<char>, pub uppercases: bool, pub lowercases_to_char: bool, pub mask_char: Option<char>, pub mask_regions: Option<String>, pub mask_complement_region: bool,
}

Fields§

§in_fq: Option<String>

Input fastq path

§in_fa: Option<String>

Input fasta path

§mini_seq_length: Option<usize>

Remove sequences shorter than MINI_SEQ_LENGTH. [default: 0]

§drop_ambigous_seq: bool

drop sequences containing ambiguous bases ‘N’

§output_odd: bool

Output only the reads from odd-numbered (2n-1) records

§output_even: bool

Output only the reads from even-numbered (2n) records

§reverse_complement: bool

reverse complement

§both_complement: bool

output both forward and reverse complement

§output_fasta: bool

force output format to FASTA (discard quality)

§trim_header: bool

drop comments at the header lines (only keep the first word before first space)

§line_len: Option<usize>

Number of characters per line for sequences and their corresponding quality values [default: all on a single line]

§ascii_bases: Option<u8>

The quality scores are represented as chars with ASCII values equal to the score plus a base offset ASCII_BASES [default: 33]

§output_qual_33: bool

Output the quality score to an offset of 33 (Effective only when –ascii-bases is not 33)

§q_low: Option<u8>

Mask bases with a quality score lower than Q_LOW [default: 0]

§q_high: Option<u8>

Mask bases with a quality score higher than Q_HIGH [default: 255]

§fake_fastq_quality: Option<char>

Generate fake quality values using the specified CHAR.

§uppercases: bool

Converts all bases in the sequences to uppercase. When used in conjunction with other masking options (e.g., –q-low, –q-high, –mask-regions, –mask-char, etc.), the program first converts the sequences to uppercase and then applies the other masking operations.

§lowercases_to_char: bool

Convert all lowercases to –mark-char

§mask_char: Option<char>

Mask bases by converting them to MASK_CHAR [default: convert to lowercase]

§mask_regions: Option<String>

Mask bases that overlap with the regions specified in the BED (0-based) file [default: null]

§mask_complement_region: bool

Mask bases that do NOT overlap with the region specified in the BED (effective with –mask-regions / -M)

Trait Implementations§

Source§

impl Args for SeqArgs

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 FromArgMatches for SeqArgs

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.

Auto Trait Implementations§

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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

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

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V