Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 committed Feb 6, 2025
1 parent bfa3879 commit 7fcb6d9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/bin/commands/demux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ impl DemuxMetric {
/// mismatches (see `--max-mismatches`).
/// 2. The difference between number of mismatches in the best and second best barcodes is greater
/// than or equal to the minimum mismatch delta (`--min-mismatch-delta`).
///
/// The expected barcode sequence may contains Ns, which are not counted as mismatches regardless
/// of the observed base (e.g. the expected barcode `AAN` will have zero mismatches relative to
/// both the observed barcodes `AAA` and `AAN`).
Expand Down Expand Up @@ -894,7 +895,7 @@ impl Command for Demux {
);

let mut fq_iterators = fq_sources
.zip(self.read_structures.clone().into_iter())
.zip(self.read_structures.clone())
.map(|(source, read_structure)| {
ReadSetIterator::new(read_structure, source, self.skip_reasons.clone())
.read_ahead(1000, 1000)
Expand Down Expand Up @@ -1147,6 +1148,7 @@ mod tests {

#[test]
#[should_panic(expected = "cannot be read-only")]
#[allow(clippy::permissions_set_readonly_false)]
fn test_read_only_output_dir_fails() {
let tmp = TempDir::new().unwrap();
let read_structures = vec![
Expand Down Expand Up @@ -1880,7 +1882,7 @@ mod tests {
let read_structures =
vec![ReadStructure::from_str("+T").unwrap(), ReadStructure::from_str("7B").unwrap()];

let records = vec![
let records = [
vec!["AAAAAAA", &SAMPLE1_BARCODE[0..7]], // barcode too short
vec!["CCCCCCC", SAMPLE1_BARCODE], // barcode the correct length
vec!["", SAMPLE1_BARCODE], // template basese too short
Expand Down Expand Up @@ -1916,7 +1918,7 @@ mod tests {
let read_structures =
vec![ReadStructure::from_str("+T").unwrap(), ReadStructure::from_str("7B").unwrap()];

let records = vec![
let records = [
vec!["AAAAAAA", &SAMPLE1_BARCODE[0..7]], // barcode too short
vec!["CCCCCCC", SAMPLE1_BARCODE], // barcode the correct length
vec!["", SAMPLE1_BARCODE], // template basese too short
Expand Down

0 comments on commit 7fcb6d9

Please sign in to comment.