Struct fasten::io::seq::Seq

source ·
pub struct Seq {
    pub id: String,
    pub seq: String,
    pub qual: String,
    pub pairid: String,
    pub thresholds: HashMap<String, f32>,
}
Expand description

A sequence struct that contains the ID, sequence, and quality cigar line

Fields§

§id: String§seq: String§qual: String§pairid: String§thresholds: HashMap<String, f32>

Trait Implementations§

source§

impl Cleanable for Seq

source§

fn new(id: &String, seq: &String, qual: &String) -> Seq

Make a new cleanable sequence object

source§

fn blank() -> Seq

Make a blank sequence object.

source§

fn is_blank(&self) -> bool

Determine if it is a blank sequence.

source§

fn from_string(seq_str: &String) -> Seq

Create a sequence object from a string. TODO make it more like the careful method than quick.

source§

fn sanitize_id(id: &String) -> String

Read an identifier and return a cleaned version, e.g., removing @ in a fastq identifier.

source§

fn lower_ambiguity_q(&mut self)

Alter any ambiguity site with a quality=0

source§

fn trim(&mut self)

Trim the ends of reads with low quality

source§

fn is_high_quality(&mut self) -> bool

Reports bool whether the read passes thresholds.

source§

fn to_string(&self) -> String

Make a String object
source§

fn print(&self)

Print the result of to_string()
source§

impl Clone for Seq

source§

fn clone(&self) -> Seq

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Seq

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Seq

§

impl Send for Seq

§

impl Sync for Seq

§

impl Unpin for Seq

§

impl UnwindSafe for Seq

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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 Twhere U: TryFrom<T>,

§

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.