Skip to content

Commit

Permalink
organizing branch variations
Browse files Browse the repository at this point in the history
  • Loading branch information
“suchapalaver” committed Sep 10, 2021
1 parent 4bb6679 commit 6ede24b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ or, searching for kmers of length 21 across multiple records:



On branches:
Branches are Variations in Implementation:

-main is the same as ParallelBridge
-- main uses rayon's ParallelBridge (https://docs.rs/rayon/1.5.1/rayon/iter/trait.ParallelBridge.html)

-ParallelBridge uses rayon's ParallelBridge (https://docs.rs/rayon/1.5.1/rayon/iter/trait.ParallelBridge.html)
-- collect_the_iterator uses rayon's parallel iterator by collecting the rust-bio fasta Reader into a vector

-collect_the_iterator is able to use rayon by 'collecting' the rust-bio fasta Reader into a vector of Records
-- std_threads uses Rust's standard library thread to process in parallel

-std_threads uses Rust's standard library thread to achieve multithreadedness

-single-thread has no multithreaded processing
-- single-thread has no parallel processing
11 changes: 5 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@ use std::{
path::Path,
str
};

extern crate bio;
use bio::{alignment::sparse::hash_kmers,
alphabets::dna::revcomp,
io::fasta};

io::fasta
};
extern crate rayon;
use rayon::iter::ParallelBridge;
use rayon::prelude::ParallelIterator;

use rayon::{iter::ParallelBridge,
prelude::ParallelIterator
};
pub struct Config {
pub kmer_len: String,
pub filepath: String,
Expand Down

0 comments on commit 6ede24b

Please sign in to comment.