Struct parasail_rs::AlignerBuilder
source · pub struct AlignerBuilder { /* private fields */ }
Expand description
Aligner builder
Implementations§
source§impl AlignerBuilder
impl AlignerBuilder
sourcepub fn semi_global(&mut self) -> &mut Self
pub fn semi_global(&mut self) -> &mut Self
Set alignment mode to semi-global
sourcepub fn matrix(&mut self, matrix: Matrix) -> &mut Self
pub fn matrix(&mut self, matrix: Matrix) -> &mut Self
Set scoring matrix. The default is an identity matrix for DNA sequences. For more information on creating matrices, see the Matrix struct. Default is an identity matrix for DNA sequences.
sourcepub fn gap_open(&mut self, gap_open: i32) -> &mut Self
pub fn gap_open(&mut self, gap_open: i32) -> &mut Self
Set gap open penalty. Note that this should be passed as a positive integer. Default = 5.
sourcepub fn gap_extend(&mut self, gap_extend: i32) -> &mut Self
pub fn gap_extend(&mut self, gap_extend: i32) -> &mut Self
Set gap extend penalty. Note that this should be passed as a positive integer. Default = 2
sourcepub fn profile(&mut self, profile: Profile) -> &mut Self
pub fn profile(&mut self, profile: Profile) -> &mut Self
Set query profile. No query profile is set by default.
sourcepub fn allow_query_gaps(&mut self, allow_gaps: Vec<String>) -> &mut Self
pub fn allow_query_gaps(&mut self, allow_gaps: Vec<String>) -> &mut Self
Set allowed gaps on query sequence for semi-global alignment. By default, gaps are allowed at the beginning and end of the query sequence. Example:
use parasail_rs::Aligner;
// allow gaps at the beginning of the query sequence
let allow_gaps = vec![String::from("prefix")];
let aligner = Aligner::new().allow_query_gaps(allow_gaps).build();
sourcepub fn allow_ref_gaps(&mut self, allow_gaps: Vec<String>) -> &mut Self
pub fn allow_ref_gaps(&mut self, allow_gaps: Vec<String>) -> &mut Self
Set allowed gaps on reference sequence for semi-global alignment. By default, gaps are allowed at the beginning and end of the reference sequence. Example:
use parasail_rs::Aligner;
// allow gaps at the beginning of the reference sequence
let allow_gaps = vec![String::from("suffix")];
let aligner = Aligner::new().allow_query_gaps(allow_gaps).build();
sourcepub fn use_stats(&mut self) -> &mut Self
pub fn use_stats(&mut self) -> &mut Self
Set whether to use statistics for alignment. By default, statistics are not used. Note that enabling stats and traceback is not supported. Enabling stats will disable traceback if it is enabled.
sourcepub fn use_table(&mut self) -> &mut Self
pub fn use_table(&mut self) -> &mut Self
Set whether to return the score table. By default, the score table is not returned. Note that enabling traceback and tables is not supported. Enabling tables will disable traceback.
sourcepub fn use_last_rowcol(&mut self) -> &mut Self
pub fn use_last_rowcol(&mut self) -> &mut Self
Set whether to return the last row and column of the score table. By default, the last row and column are not returned. Note that if both use_table and use_last_rowcol are set to true, use_table will be ignored and only the last row and column will be returned.
sourcepub fn use_trace(&mut self) -> &mut Self
pub fn use_trace(&mut self) -> &mut Self
Set whether to enable traceback capability. By default, traceback is not enabled. Note that enabling traceback along with tables or stats is not supported. Enabling traceback will disable tables and stats if they are enabled.
pub fn bandwith(&mut self, bandwith: i32) -> &mut Self
Trait Implementations§
source§impl Default for AlignerBuilder
impl Default for AlignerBuilder
Default aligner uses global alignment with an identity matrix for DNA sequences and no gap penalties. No profile, trace, table, or stats options are set. Vectorization strategy is set to striped by default.