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 Profile for AAProfile
impl Profile for AAProfile
Source§fn new(str_len: usize, block_size: usize, gap_extend: i8) -> Self
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
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 clear(&mut self, str_len: usize, block_size: usize)
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)
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,
)
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,
)
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_close_C(&mut self, i: usize, gap: i8)
fn set_gap_close_C(&mut self, i: usize, gap: i8)
Set the gap close cost for a column. Read more
Source§fn set_all_gap_open_C(&mut self, gap: i8)
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)
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)
fn set_all_gap_open_R(&mut self, gap: i8)
Set the gap open cost for all row transitions.
Source§fn get_gap_extend(&self) -> i8
fn get_gap_extend(&self) -> i8
Get the gap extend cost.
Source§unsafe fn get_scores_pos(&self, i: usize, v: HalfSimd, _right: bool) -> Simd
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
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
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
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
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
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
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
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
fn convert_char(c: u8) -> u8
Convert a byte to a better storage format that makes retrieving scores
easier.
impl StructuralPartialEq for AAProfile
Auto Trait Implementations§
impl Freeze for AAProfile
impl RefUnwindSafe for AAProfile
impl Send for AAProfile
impl Sync for AAProfile
impl Unpin for AAProfile
impl UnsafeUnpin for AAProfile
impl UnwindSafe for AAProfile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more