Skip to content

Commit 18f08c0

Browse files
committed
Add get_pairs() method to export prioritized pair list without alignments
1 parent e34c2ad commit 18f08c0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/iterator.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,12 @@ impl<'a> AllPairIterator<'a> {
140140
pub fn pair_count(&self) -> usize {
141141
self.actual_pair_count
142142
}
143+
144+
/// Export the prioritized pair list without performing alignments
145+
/// Returns pairs as (seq1_idx, seq2_idx) in priority order
146+
pub fn get_pairs(self) -> Vec<(usize, usize)> {
147+
self.pair_iter.collect()
148+
}
143149
}
144150

145151
impl<'a> Iterator for AllPairIterator<'a> {

0 commit comments

Comments
 (0)