Add phylogenetic export support for TNT, PhyG, and IQ-TREE
Extends the phylogenetic pipeline with exporters for TNT, PhyG, and IQ-TREE that generate executable scripts, cost matrices, and recoded alignments. Adds internal helpers for state indexing, floating-point matrix scaling, and Floyd-Warshall metric closure to satisfy external tool constraints. Adjusts visibility modifiers for sibling iterators and entropy annex structs, and updates design documentation for evolutionary distance metrics.
This commit is contained in:
1 parent
1536217ac1
commit
0b40d2d0da
12 files changed
+1057
-41
No files matched your search
@@ -27,20 +27,21 @@ mod subsample;
|
||||
|
||||
use obikidxcache::index_cache::IndexCache;
|
||||
|
||||
pub use cardcomp::{cardinality_transition_probs, composition_transition_probs, pairwise_cost_matrix};
|
||||
pub use alignment::SnpAlignment;
|
||||
pub use cardcomp::{
|
||||
cardinality_transition_probs, composition_transition_probs, pairwise_cost_matrix,
|
||||
};
|
||||
pub use pairwise::{BasePairTally, CardinalityTally, RawSnpDistanceOutput};
|
||||
pub use sankoff::SankoffBundle;
|
||||
pub use stats::SiblingAnnexStats;
|
||||
pub use subsample::EntropyBias;
|
||||
pub use subsample::{EntropyBias, SurvivingFamily};
|
||||
|
||||
pub(crate) use alignment::snp_pseudo_alignment;
|
||||
pub(crate) use annex::build_layer_sibling_annex;
|
||||
pub(crate) use entropy::{ensure_layer_entropy_annex, family_entropy, family_entropy_4, iter_full_entropy};
|
||||
pub(crate) use entropy::{ensure_layer_entropy_annex, family_entropy, family_entropy_4};
|
||||
pub(crate) use family_scan::{Selection, scan_layer_families};
|
||||
pub(crate) use sankoff::sankoff_bundle;
|
||||
pub(crate) use stats::{sibling_annex_stats, sibling_family_size_histogram};
|
||||
pub(crate) use subsample::sample_index;
|
||||
|
||||
/// Whether every layer number in `cache` fits in a `FamilyMask` field
|
||||
/// (`< 7`) — a single fact about the whole index, decided once here so
|
||||
@@ -51,5 +52,10 @@ pub(crate) use subsample::sample_index;
|
||||
/// interprets that field (`SiblingExt::build_sibling_annex`,
|
||||
/// `SiblingBuilder::ensure_entropy_annexes`), so they can never disagree.
|
||||
pub(crate) fn is_fast_mode(cache: &IndexCache) -> bool {
|
||||
cache.partitions().filter_map(|p| cache.n_layer(p)).max().unwrap_or(0) <= 7
|
||||
cache
|
||||
.partitions()
|
||||
.filter_map(|p| cache.n_layer(p))
|
||||
.max()
|
||||
.unwrap_or(0)
|
||||
<= 7
|
||||
}
|
||||
Reference in new issue
Block a user