Struct parasail_rs::AlignResult

source ·
pub struct AlignResult { /* private fields */ }
Expand description

Sequence alignment result.

Implementations§

source§

impl AlignResult

source

pub fn get_score(&self) -> i32

Get alignment score.

source

pub fn get_end_query(&self) -> i32

Get end position of query sequence.

source

pub fn get_end_ref(&self) -> i32

Get end position of the reference sequence.

source

pub fn get_matches(&self) -> Result<i32, AlignResultError>

Get number of matches in the alignment.

source

pub fn get_similar(&self) -> i32

source

pub fn get_length(&self) -> Result<i32, AlignResultError>

Get alignment length.

source

pub fn get_score_table(&self) -> Result<i32, AlignResultError>

Get score table.

source

pub fn get_matches_table(&self) -> Result<i32, AlignResultError>

Get matches table.

source

pub fn get_similar_table(&self) -> Result<i32, AlignResultError>

Get similar table.

source

pub fn get_length_table(&self) -> Result<i32, AlignResultError>

Get length table.

source

pub fn get_score_row(&self) -> Result<i32, AlignResultError>

Get score row.

source

pub fn get_matches_row(&self) -> Result<i32, AlignResultError>

Get matches row.

source

pub fn get_similar_row(&self) -> Result<i32, AlignResultError>

Get similar row.

source

pub fn get_length_row(&self) -> Result<i32, AlignResultError>

Get length row.

source

pub fn get_score_col(&self) -> Result<i32, AlignResultError>

Get score column.

source

pub fn get_matches_col(&self) -> Result<i32, AlignResultError>

Get matches column.

source

pub fn get_similar_col(&self) -> Result<i32, AlignResultError>

Get similar column.

source

pub fn get_length_col(&self) -> Result<i32, AlignResultError>

Get length column

source

pub fn get_trace_table(&self) -> Result<i32, AlignResultError>

Get trace table.

source

pub fn print_traceback(&self, query: &[u8], reference: &[u8])

Get alignment strings and statistics

source

pub fn get_traceback_strings( &self, query: &[u8], reference: &[u8], ) -> Result<Traceback, AlignResultError>

Get alignment strings.

source

pub fn get_cigar( &self, query: &[u8], reference: &[u8], ) -> Result<String, AlignResultError>

Get CIGAR string.

source

pub fn is_global(&self) -> bool

Check if the alignment mode is global.

source

pub fn is_semi_global(&self) -> bool

Check if the alignment mode is semi-global.

source

pub fn is_local(&self) -> bool

Check if the alignment mode is local.

source

pub fn is_saturated(&self) -> bool

Check if the solution width is saturated (i.e., using 8-bit solution width first and falling back to 16-bit if necessary).

source

pub fn is_banded(&self) -> bool

Check if banded alignment is used.

source

pub fn is_scan(&self) -> bool

Check if vector strategy is scan.

source

pub fn is_striped(&self) -> bool

Check if vector strategy is striped.

source

pub fn is_diag(&self) -> bool

Check if vector strategy is diagonal.

source

pub fn is_blocked(&self) -> bool

source

pub fn is_stats(&self) -> bool

Check if statistics are returned from alignment.

source

pub fn is_stats_table(&self) -> bool

Check if result is a stats table

source

pub fn is_table(&self) -> bool

Check if result is a table

source

pub fn is_rowcol(&self) -> bool

Check if result is a last row and column of table

source

pub fn is_stats_rowcol(&self) -> bool

Check if result is a row and column of table with additional statistics.

source

pub fn is_trace(&self) -> bool

Check if result is trace enabled.

Trait Implementations§

source§

impl Clone for AlignResult

source§

fn clone(&self) -> AlignResult

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 AlignResult

source§

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

Formats the value using the given formatter. Read more

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> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where 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 T
where 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 T
where 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.