5 #ifndef _LEGACY_SUBSTITUTION_MAPPING_TOOLS_H_
6 #define _LEGACY_SUBSTITUTION_MAPPING_TOOLS_H_
9 #include "../Likelihood/DRTreeLikelihood.h"
10 #include "../../Mapping/SubstitutionCount.h"
11 #include "../../Mapping/OneJumpSubstitutionCount.h"
48 std::shared_ptr<const DRTreeLikelihoodInterface> drtl,
49 std::shared_ptr<SubstitutionCountInterface> substitutionCount,
52 std::vector<int> nodeIds;
70 std::shared_ptr<const DRTreeLikelihoodInterface> drtl,
71 const std::vector<int>& nodeIds,
72 std::shared_ptr<SubstitutionCountInterface> substitutionCount,
76 std::shared_ptr<const DRTreeLikelihoodInterface> drtl,
78 const std::vector<int>& nodeIds,
79 std::shared_ptr<SubstitutionCountInterface> substitutionCount,
103 std::shared_ptr<const DRTreeLikelihoodInterface> drtl,
104 std::shared_ptr<SubstitutionCountInterface> substitutionCount,
105 bool verbose =
true);
127 std::shared_ptr<const DRTreeLikelihoodInterface> drtl,
128 std::shared_ptr<SubstitutionCountInterface> substitutionCount,
129 bool verbose =
true);
148 std::shared_ptr<const DRTreeLikelihoodInterface> drtl,
149 std::shared_ptr<SubstitutionCountInterface> substitutionCount,
150 bool verbose =
true);
161 std::shared_ptr<const DRTreeLikelihoodInterface> drtl,
164 std::shared_ptr<SubstitutionModelInterface> ptr =
nullptr;
165 auto ojsm = std::make_shared<OneJumpSubstitutionCount>(ptr);
260 std::shared_ptr<DRTreeLikelihoodInterface> drtl,
261 const std::vector<int>& ids,
262 std::shared_ptr<SubstitutionModelInterface> model,
263 std::shared_ptr<const SubstitutionRegisterInterface> reg,
264 double threshold = -1,
265 bool verbose =
true);
268 std::shared_ptr<DRTreeLikelihoodInterface> drtl,
269 const std::vector<int>& ids,
271 std::shared_ptr<const SubstitutionRegisterInterface> reg,
272 double threshold = -1,
273 bool verbose =
true);
289 std::shared_ptr<DRTreeLikelihoodInterface> drtl,
290 const std::vector<int>& ids,
291 std::shared_ptr<const SubstitutionModelInterface> nullModel,
293 bool verbose =
true);
309 std::shared_ptr<DRTreeLikelihoodInterface> drtl,
310 const std::vector<int>& ids,
311 std::shared_ptr<const SubstitutionModelSet> nullModelSet,
313 bool verbose =
true);
334 std::shared_ptr<DRTreeLikelihoodInterface> drtl,
335 const std::vector<int>& ids,
336 std::shared_ptr<SubstitutionModelInterface> model,
337 std::shared_ptr<const SubstitutionRegisterInterface> reg,
338 double threshold = -1,
341 std::vector<std::vector<double>> result;
363 std::shared_ptr<DRTreeLikelihoodInterface> drtl,
364 const std::vector<int>& ids,
365 std::shared_ptr<SubstitutionModelInterface> model,
366 std::shared_ptr<SubstitutionModelInterface> nullModel,
367 std::shared_ptr<const SubstitutionRegisterInterface> reg,
372 std::vector< std::vector<double>> result;
394 std::shared_ptr<DRTreeLikelihoodInterface> drtl,
395 const std::vector<int>& ids,
396 std::shared_ptr<SubstitutionModelSet> modelSet,
397 std::shared_ptr<SubstitutionModelSet> nullModelSet,
398 std::shared_ptr<const SubstitutionRegisterInterface> reg,
403 std::vector<std::vector<double>> result;
429 std::shared_ptr<DRTreeLikelihoodInterface> drtl,
430 const std::vector<int>& ids,
431 std::shared_ptr<SubstitutionModelInterface> model,
432 std::shared_ptr<const SubstitutionRegisterInterface> reg,
461 std::shared_ptr<DRTreeLikelihoodInterface> drtl,
462 const std::vector<int>& ids,
463 std::shared_ptr<SubstitutionModelInterface> model,
464 std::shared_ptr<const SubstitutionRegisterInterface> reg,
466 double threshold = -1,
467 bool verbose =
true);
489 std::shared_ptr<DRTreeLikelihoodInterface> drtl,
490 const std::vector<int>& ids,
491 std::shared_ptr<SubstitutionModelInterface> model,
492 std::shared_ptr<SubstitutionModelInterface> nullModel,
493 std::shared_ptr<const SubstitutionRegisterInterface> reg,
497 bool verbose =
true);
521 std::shared_ptr<DRTreeLikelihoodInterface> drtl,
522 const std::vector<int>& ids,
523 std::shared_ptr<SubstitutionModelSet> modelSet,
524 std::shared_ptr<SubstitutionModelSet> nullModelSet,
525 std::shared_ptr<const SubstitutionRegisterInterface> reg,
529 bool verbose =
true);
552 std::shared_ptr<DRTreeLikelihoodInterface> drtl,
553 const std::vector<int>& ids,
554 std::shared_ptr<SubstitutionModelInterface> model,
555 std::shared_ptr<const SubstitutionRegisterInterface> reg,
577 std::shared_ptr<DRTreeLikelihoodInterface> drtl,
578 const std::vector<int>& ids,
579 std::shared_ptr<SubstitutionModelInterface> model,
580 std::shared_ptr<SubstitutionModelInterface> nullModel,
581 std::shared_ptr<const SubstitutionRegisterInterface> reg,
605 std::shared_ptr<DRTreeLikelihoodInterface> drtl,
606 const std::vector<int>& ids,
607 std::shared_ptr<SubstitutionModelSet> modelSet,
608 std::shared_ptr<SubstitutionModelSet> nullModelSet,
609 std::shared_ptr<const SubstitutionRegisterInterface> reg,
636 std::shared_ptr<DRTreeLikelihoodInterface> drtl,
637 const std::vector<int>& ids,
638 std::shared_ptr<SubstitutionModelInterface> model,
639 std::shared_ptr<const SubstitutionRegisterInterface> reg,
660 std::shared_ptr<DRTreeLikelihoodInterface> drtl,
661 const std::vector<int>& ids,
662 std::shared_ptr<SubstitutionModelInterface> model,
663 std::shared_ptr<SubstitutionModelInterface> nullModel,
664 std::shared_ptr<const SubstitutionRegisterInterface> reg,
687 std::shared_ptr<DRTreeLikelihoodInterface> drtl,
688 const std::vector<int>& ids,
689 std::shared_ptr<SubstitutionModelSet> modelSet,
690 std::shared_ptr<SubstitutionModelSet> nullModelSet,
691 std::shared_ptr<const SubstitutionRegisterInterface> reg,
706 const std::vector<int>& ids,
720 const std::vector<int>& ids,
Legacy data storage class for probabilistic substitution mappings.
Legacy interface for storing mapping data.
Substitution models manager for non-homogeneous / non-reversible models of evolution.
The SubstitutionRegister interface.
Defines the basic types of data flow nodes.
std::vector< VVdouble > VVVdouble
std::vector< Vdouble > VVdouble