Implement masking logic for pairwise reduction
Introduces masking based on `free_loss` and `no_ambiguity` flags within pairwise algorithms. Updates reducer initialization and adds tests to verify cardinality calculation.
This commit is contained in:
1 parent
1702addbf9
commit
cd06fa2ce3
3 files changed
+93
-11
No files matched your search
@@ -278,7 +278,8 @@ pub fn run(args: PhyloArgs) {
|
||||
let mut alignment_reducer = need_alignment.then(|| {
|
||||
obikphylo::siblings::AlignmentReducer::new(&cache, &snp_exclude_mask, args.free_loss, args.no_ambiguity)
|
||||
});
|
||||
let mut pairwise_reducer = need_pairwise.then(|| obikphylo::siblings::PairwiseReducer::new(n));
|
||||
let mut pairwise_reducer =
|
||||
need_pairwise.then(|| obikphylo::siblings::PairwiseReducer::new(n, args.free_loss, args.no_ambiguity));
|
||||
|
||||
if need_alignment || need_pairwise {
|
||||
let mut reducers: Vec<&mut dyn obikphylo::siblings::LayerReducer> = Vec::new();
|
||||
|
||||
Reference in new issue
Block a user