Skip to main content

AAProfile

Struct AAProfile 

Source
pub struct AAProfile { /* private fields */ }
Expand description

Amino acid position specific scoring matrix.

Supports characters A to Z. Lowercase characters are uppercased.

Trait Implementations§

Source§

impl Clone for AAProfile

Source§

fn clone(&self) -> AAProfile

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for AAProfile

Source§

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

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

impl PartialEq for AAProfile

Source§

fn eq(&self, other: &AAProfile) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Profile for AAProfile

Source§

const NULL: u8

Byte to use as padding.
Source§

fn new(str_len: usize, block_size: usize, gap_extend: i8) -> Self

Create a new profile of a specific length, with default (large negative) values. Read more
Source§

fn from_bytes( b: &[u8], block_size: usize, match_score: i8, mismatch_score: i8, gap_open_C: i8, gap_close_C: i8, gap_open_R: i8, gap_extend: i8, ) -> Self

Create a new profile from a byte string.
Source§

fn len(&self) -> usize

Get the length of the profile.
Source§

fn clear(&mut self, str_len: usize, block_size: usize)

Clear the profile so it can be reused for profile lengths less than or equal to the length this struct was created with.
Source§

fn set(&mut self, i: usize, b: u8, score: i8)

Set the score for a position and byte. Read more
Source§

fn set_all( &mut self, order: &[u8], scores: &[i8], left_shift: usize, right_shift: usize, )

Set the scores for all positions in the position specific scoring matrix. Read more
Source§

fn set_all_rev( &mut self, order: &[u8], scores: &[i8], left_shift: usize, right_shift: usize, )

Set the scores for all positions in reverse in the position specific scoring matrix. Read more
Source§

fn set_gap_open_C(&mut self, i: usize, gap: i8)

Set the gap open cost for a column. Read more
Source§

fn set_gap_close_C(&mut self, i: usize, gap: i8)

Set the gap close cost for a column. Read more
Source§

fn set_gap_open_R(&mut self, i: usize, gap: i8)

Set the gap open cost for a row. Read more
Source§

fn set_all_gap_open_C(&mut self, gap: i8)

Set the gap open cost for all column transitions.
Source§

fn set_all_gap_close_C(&mut self, gap: i8)

Set the gap close cost for all column transitions.
Source§

fn set_all_gap_open_R(&mut self, gap: i8)

Set the gap open cost for all row transitions.
Source§

fn get(&self, i: usize, b: u8) -> i8

Get the score for a position and byte.
Source§

fn get_gap_extend(&self) -> i8

Get the gap extend cost.
Source§

fn as_ptr_pos(&self, i: usize) -> *const i8

Get the pointer for a specific index.
Source§

fn as_ptr_aa(&self, a: usize) -> *const i16

Get the pointer for a specific amino acid.
Source§

unsafe fn get_scores_pos(&self, i: usize, v: HalfSimd, _right: bool) -> Simd

Get the scores for a certain SIMD vector of bytes at a specific position in the profile.
Source§

unsafe fn get_scores_aa(&self, i: usize, c: u8, _right: bool) -> Simd

Get the scores for a certain byte starting at a specific position in the profile.
Source§

unsafe fn get_gap_open_right_C(&self, i: usize) -> Simd

Get the gap open cost for a column.
Source§

unsafe fn get_gap_close_right_C(&self, i: usize) -> Simd

Get the gap close cost for a column.
Source§

unsafe fn get_gap_open_right_R(&self, i: usize) -> Simd

Get the gap open cost for a row.
Source§

unsafe fn get_gap_open_down_C(&self, i: usize) -> Simd

Get the gap open cost for a column.
Source§

unsafe fn get_gap_close_down_C(&self, i: usize) -> Simd

Get the gap close cost for a column.
Source§

unsafe fn get_gap_open_down_R(&self, i: usize) -> Simd

Get the gap open cost for a row.
Source§

fn convert_char(c: u8) -> u8

Convert a byte to a better storage format that makes retrieving scores easier.
Source§

impl StructuralPartialEq for AAProfile

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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,

Source§

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>,

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.