Skip to content

Commit

Permalink
commit before major update of fastq reader
Browse files Browse the repository at this point in the history
  • Loading branch information
angelovangel committed Dec 9, 2021
1 parent 3d8d2ac commit 8283017
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/target
hyperfine.sh
mg1655.fasta
x86_64-linux
x86_64_linux*
121 changes: 121 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ flate2 = "1.0.18"
clap = "~2.33.3"
serde_json = "*"
regex = "1"
probminhash = "0.1.5"

[dev-dependencies]
assert_cmd = "0.10"
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use clap::{App, Arg};
fn get_fastq_reader(path: &String) -> Box<dyn (::std::io::Read)> {
if path.ends_with(".gz") {
let f = fs::File::open(path).unwrap();
Box::new(bufread::MultiGzDecoder::new(BufReader::new(f)))
Box::new(bufread::MultiGzDecoder::new( BufReader::new(f)) )
} else {
let f = fs::File::open(path).unwrap();
Box::new(BufReader::new(f))
Expand All @@ -27,7 +27,7 @@ fn main() {

.arg(Arg::with_name("kmer")
.required(true)
.help("k-mer size, maximal value is 21 (required)")
.help("k-mer size, maximal value is 31 (required)")
.takes_value(true)
.long("kmer_size")
.short("k"))
Expand Down

0 comments on commit 8283017

Please sign in to comment.