Struct lt_fm_index::LtFmIndexBuilder
source · pub struct LtFmIndexBuilder { /* private fields */ }
Expand description
The safe and concise builder for LtFmIndex
Implementations§
source§impl LtFmIndexBuilder
impl LtFmIndexBuilder
sourcepub fn text_type_is_inferred(self) -> Self
pub fn text_type_is_inferred(self) -> Self
Make the TextType to be inferred (This is default option)
- What is the difference from the specification of TextType manually?
- If the ACGTY is used as Text, TextType is inferred as TextType::NucleotideWithNoise (ACGT and Y as wildcard)
- However, when you specify the TextType as TextType::NucleotideOnly, you can force the both T and Y to be treated as wildcard.
- Locating AATTAA, AAYYAA, AA@@AA, AA**AA, … all gives the same result.
sourcepub fn text_type_is_nucleotide_only(self) -> Self
pub fn text_type_is_nucleotide_only(self) -> Self
Mark the TextType as TextType::NucleotideOnly
sourcepub fn text_type_is_nucleotide_with_noise(self) -> Self
pub fn text_type_is_nucleotide_with_noise(self) -> Self
Mark the TextType as TextType::NucleotideWithNoise
sourcepub fn text_type_is_amino_acid_only(self) -> Self
pub fn text_type_is_amino_acid_only(self) -> Self
Mark the TextType as TextType::AminoAcidOnly
sourcepub fn text_type_is_amino_acid_with_noise(self) -> Self
pub fn text_type_is_amino_acid_with_noise(self) -> Self
Mark the TextType as TextType::AminoAcidWithNoise
sourcepub fn bwt_block_size_is_default(self) -> Self
pub fn bwt_block_size_is_default(self) -> Self
Use the default BWT block size
sourcepub fn bwt_block_size_is_64(self) -> Self
pub fn bwt_block_size_is_64(self) -> Self
Use the 64-sized BWT block
sourcepub fn bwt_block_size_is_128(self) -> Self
pub fn bwt_block_size_is_128(self) -> Self
Use the 128-sized BWT block
sourcepub fn set_suffix_array_sampling_ratio_to_default(self) -> Self
pub fn set_suffix_array_sampling_ratio_to_default(self) -> Self
Use the default suffix array sampling ratio
sourcepub fn set_suffix_array_sampling_ratio(
self,
sampling_ratio: u64
) -> Result<Self, BuildError>
pub fn set_suffix_array_sampling_ratio(
self,
sampling_ratio: u64
) -> Result<Self, BuildError>
Set the suffix array sampling ratio
sourcepub fn set_lookup_table_kmer_size_to_default(self) -> Self
pub fn set_lookup_table_kmer_size_to_default(self) -> Self
Use the default kmer size for lookup table
sourcepub fn set_lookup_table_kmer_size(
self,
kmer_size: usize
) -> Result<Self, BuildError>
pub fn set_lookup_table_kmer_size(
self,
kmer_size: usize
) -> Result<Self, BuildError>
Set the size of kmer in lookup table
Trait Implementations§
source§impl Clone for LtFmIndexBuilder
impl Clone for LtFmIndexBuilder
source§fn clone(&self) -> LtFmIndexBuilder
fn clone(&self) -> LtFmIndexBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LtFmIndexBuilder
impl Debug for LtFmIndexBuilder
Auto Trait Implementations§
impl RefUnwindSafe for LtFmIndexBuilder
impl Send for LtFmIndexBuilder
impl Sync for LtFmIndexBuilder
impl Unpin for LtFmIndexBuilder
impl UnwindSafe for LtFmIndexBuilder
Blanket Implementations§
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.