Skip to content

Commit

Permalink
depending on a newer minimap2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
wdecoster committed Mar 6, 2023
1 parent cee1c67 commit 825a554
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 20 deletions.
24 changes: 12 additions & 12 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ bio = "*"
clap = { version = "3.2.6", features = ["derive"] }
rayon = "*"
approx = "*"
minimap2 = "0.1.9"
minimap2 = "0.1.10"
13 changes: 6 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use clap::AppSettings::DeriveDisplayOrder;
use clap::Parser;
use minimap2::*;
use rayon::prelude::*;
use std::fs::File;
use std::io::{self, Read};
use std::path::PathBuf;

Expand Down Expand Up @@ -194,7 +193,7 @@ fn test_ave_qual() {
#[test]
fn test_filter() {
filter(
&mut File::open("test-data/test.fastq").unwrap(),
&mut std::fs::File::open("test-data/test.fastq").unwrap(),
Cli {
minlength: 100,
maxlength: 100000,
Expand All @@ -210,7 +209,7 @@ fn test_filter() {
#[test]
fn test_contam() {
let aligner = setup_contamination_filter("test-data/random_contam.fa");
let rec = fastq::Reader::new(File::open("test-data/test.fastq").unwrap())
let rec = fastq::Reader::new(std::fs::File::open("test-data/test.fastq").unwrap())
.records()
.next()
.unwrap()
Expand All @@ -221,7 +220,7 @@ fn test_contam() {
#[test]
fn test_no_contam() {
let aligner = setup_contamination_filter("test-data/random_contam.fa");
let rec = fastq::Reader::new(File::open("test-data/other-test.fastq").unwrap())
let rec = fastq::Reader::new(std::fs::File::open("test-data/other-test.fastq").unwrap())
.records()
.next()
.unwrap()
Expand All @@ -232,7 +231,7 @@ fn test_no_contam() {
#[test]
fn test_filter_with_contam() {
filter(
&mut File::open("test-data/test.fastq").unwrap(),
&mut std::fs::File::open("test-data/test.fastq").unwrap(),
Cli {
minlength: 100,
maxlength: 100000,
Expand All @@ -247,7 +246,7 @@ fn test_filter_with_contam() {

#[test]
fn test_record_qual_len() {
fastq::Reader::new(File::open("test-data/test.fastq").unwrap())
fastq::Reader::new(std::fs::File::open("test-data/test.fastq").unwrap())
.records()
.into_iter()
.for_each(|record| {
Expand All @@ -266,7 +265,7 @@ fn test_record_qual_len() {

#[test]
fn test_quals() {
let rec = fastq::Reader::new(File::open("test-data/test.fastq").unwrap())
let rec = fastq::Reader::new(std::fs::File::open("test-data/test.fastq").unwrap())
.records()
.next()
.unwrap()
Expand Down

0 comments on commit 825a554

Please sign in to comment.