We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 38a2a28 + 22aeefe commit 82eaf78Copy full SHA for 82eaf78
src/hashing/aahash_iterator.rs
@@ -79,9 +79,9 @@ impl AaHashIterator {
79
log::debug!("Preprocessing sequence");
80
let mut reader =
81
parse_fastx_file(file).unwrap_or_else(|_| panic!("Invalid path/file: {file}"));
82
+ let mut seq_hash_it = Self::default(level.clone());
83
loop {
84
let record_read = reader.next();
- let mut seq_hash_it = Self::default(level.clone());
85
if let Some(record) = record_read {
86
let seqrec = record.expect("Invalid FASTA/Q record");
87
if seqrec.qual().is_some() {
@@ -98,6 +98,7 @@ impl AaHashIterator {
98
}
99
if concat_fasta {
100
hash_vec.push(seq_hash_it);
101
+ seq_hash_it = Self::default(level.clone());
102
} else {
103
seq_hash_it.seq.push(SEQSEP);
104
0 commit comments