File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -735,9 +735,18 @@ MigrationGraph CellTree::getObservedMigrationGraph() const
735
735
mutations.insert (cell.getPassengerMutations ().begin (),
736
736
cell.getPassengerMutations ().end ());
737
737
738
+ IntSet mappedMutations;
739
+ for (int j : mutations)
740
+ {
741
+ if (_cellTreeMutationToObservableMutation.count (i))
742
+ {
743
+ mappedMutations.insert (_cellTreeMutationToObservableMutation.find (j)->second );
744
+ }
745
+ }
746
+
738
747
IntSet X;
739
- std::set_intersection (mutations .begin (),
740
- mutations .end (),
748
+ std::set_intersection (mappedMutations .begin (),
749
+ mappedMutations .end (),
741
750
_sampledMutationsByAnatomicalSite[t].begin (),
742
751
_sampledMutationsByAnatomicalSite[t].end (),
743
752
std::inserter (X, X.begin ()));
@@ -755,7 +764,7 @@ MigrationGraph CellTree::getObservedMigrationGraph() const
755
764
std::cout << " " << i;
756
765
}
757
766
std::cout << " ; mutations in migrating cell: " ;
758
- for (int i : mutations )
767
+ for (int i : mappedMutations )
759
768
{
760
769
std::cout << " " << i;
761
770
}
You can’t perform that action at this time.
0 commit comments