pub struct ReadThreadingAssembler { /* private fields */ }Implementations§
Source§impl ReadThreadingAssembler
impl ReadThreadingAssembler
pub fn new( max_allowed_paths_for_read_threading_assembler: i32, kmer_sizes: Vec<usize>, dont_increase_kmer_sizes_for_cycles: bool, allow_non_unique_kmers_in_ref: bool, num_pruning_samples: i32, prune_factor: usize, use_adaptive_pruning: bool, initial_error_rate_for_pruning: f64, pruning_log_odds_threshold: f64, pruning_seeding_log_odds_threshold: f64, max_unpruned_variants: usize, _use_linked_debruijn_graphs: bool, enable_legacy_graph_cycle_detection: bool, min_matching_bases_to_dangle_end_recovery: i32, disable_prune_factor_correction: bool, ) -> ReadThreadingAssembler
pub fn default() -> Self
pub fn default_with_kmers( max_allowed_paths_for_read_threading_assembler: i32, kmer_sizes: Vec<usize>, prune_factor: usize, ) -> Self
pub fn set_just_return_raw_graph(&mut self, value: bool)
pub fn set_remove_paths_not_connected_to_ref(&mut self, value: bool)
pub fn set_recover_dangling_branches(&mut self, value: bool)
Sourcepub fn run_local_assembly<'b>(
&mut self,
assembly_region: AssemblyRegion,
ref_haplotype: &'b mut Haplotype<SimpleInterval>,
full_reference_with_padding: Vec<u8>,
ref_loc: SimpleInterval,
sample_names: &'b [String],
dangling_end_sw_parameters: Parameters,
reference_to_haplotype_sw_parameters: Parameters,
avx_mode: AVXMode,
additional_kmer_sizes: Option<Vec<usize>>,
) -> AssemblyResultSet<ReadThreadingGraph>
pub fn run_local_assembly<'b>( &mut self, assembly_region: AssemblyRegion, ref_haplotype: &'b mut Haplotype<SimpleInterval>, full_reference_with_padding: Vec<u8>, ref_loc: SimpleInterval, sample_names: &'b [String], dangling_end_sw_parameters: Parameters, reference_to_haplotype_sw_parameters: Parameters, avx_mode: AVXMode, additional_kmer_sizes: Option<Vec<usize>>, ) -> AssemblyResultSet<ReadThreadingGraph>
Main entry point into the assembly engine. Build a set of deBruijn graphs out of the provided reference sequence and list of reads @param assemblyRegion AssemblyRegion object holding the reads which are to be used during assembly @param refHaplotype reference haplotype object @param fullReferenceWithPadding byte array holding the reference sequence with padding @param refLoc GenomeLoc object corresponding to the reference sequence with padding @param readErrorCorrector a ReadErrorCorrector object, if read are to be corrected before assembly. Can be null if no error corrector is to be used. @param aligner {@link SmithWatermanAligner} used to align dangling ends in assembly graphs to the reference sequence @return the resulting assembly-result-set
Sourcepub fn assemble<'b>(
&mut self,
reads: &'b Vec<BirdToolRead>,
ref_haplotype: &'b Haplotype<SimpleInterval>,
sample_names: &'b [String],
dangling_end_sw_parameters: &Parameters,
avx_mode: AVXMode,
additional_kmer_sizes: Option<Vec<usize>>,
) -> Vec<AssemblyResult<SimpleInterval, ReadThreadingGraph>>
pub fn assemble<'b>( &mut self, reads: &'b Vec<BirdToolRead>, ref_haplotype: &'b Haplotype<SimpleInterval>, sample_names: &'b [String], dangling_end_sw_parameters: &Parameters, avx_mode: AVXMode, additional_kmer_sizes: Option<Vec<usize>>, ) -> Vec<AssemblyResult<SimpleInterval, ReadThreadingGraph>>
Given reads and a reference haplotype give us graphs to use for constructing non-reference haplotypes.
@param reads the reads we’re going to assemble @param refHaplotype the reference haplotype @param aligner {@link SmithWatermanAligner} used to align dangling ends in assembly graphs to the reference sequence @return a non-null list of reads
Trait Implementations§
Source§impl Clone for ReadThreadingAssembler
impl Clone for ReadThreadingAssembler
Source§fn clone(&self) -> ReadThreadingAssembler
fn clone(&self) -> ReadThreadingAssembler
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ReadThreadingAssembler
impl RefUnwindSafe for ReadThreadingAssembler
impl Send for ReadThreadingAssembler
impl Sync for ReadThreadingAssembler
impl Unpin for ReadThreadingAssembler
impl UnwindSafe for ReadThreadingAssembler
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.