Changelog¶
v0.1.2 - Nov 13, 2026¶
outflow_introgressionis renamedoutflow_or_bidirectional_introgression, and itsinferencereadsintrogression from B to C with probable C to B.- Consolidation weights only the outflow edge and marks its reverse
cell with a dashed inner box in both figures, black or white for contrast
with the cell's fill;
introgression_matrix_sampled_probable_reverse.tsvcounts the triplets behind each mark. - The sampled matrices are renamed from
introgression_matrix_inflow_outflow*.tsvtointrogression_matrix_sampled*.tsv. - New
bootstrap_thresholdkey (-bt,--bootstrap-threshold), off by default: the introgression maps take only triplets whosebootstrap_valueclears their class's threshold, given as one value, four in the order no, inflow, outflow, ghost, or a mapping ofMSC,MSCi_in,MSCi_outandMSCig. The results TSV keeps every triplet. - The bootstrap figure's colour bar is ticked every 0.2 up to 30 taxa, every 0.1 up to 120 and every 0.05 beyond, in place of 0, 0.5 and 1 alone.
v0.1.1 - Oct 30, 2026¶
- Consolidation writes two figures in place of
introgression_combined.png.introgression_bootstrap.pngkeeps the bootstrap heatmap and draws every ghost target as an equal-length bar filled on the heatmap's colour scale, so the bar's colour rather than its length carries the support.introgression_counts.pngshows supporting triplet counts: black heatmap cells labelled with their count and no colour scale, and ghost bars as long as their count. In both, a ghost bar's outline is dashed for ghost introgression only and solid when the taxon is also the target of a sampled edge.
v0.1.0 - Oct 12, 2026¶
The initial release under this repository. Earlier versions were developed in
a private personal repository under the asif256000 account, and the scripts
released with the 2025 bioRxiv preprint are archived in the
legacy-2025 release.
- A pip-installable Python package (Python 3.10 or later) that replaces the preprint's Python and R scripts, with no R or newick_utils dependency.
python -m ghostparser.orchestratorroots the species tree and the gene trees on the outgroups, reads every ingroup triplet out of every gene tree, and classifies each triplet as no, inflow, outflow or ghost introgression, or ambiguous.- Three tests per triplet: a discordant count test, a Kolmogorov-Smirnov tree-height test, and a studentized permutation test with a TOST equivalence step for the direction; the p-values are corrected across the run, and each call gets a bootstrap support value.
- The default settings match those used in the IDP preprint, and every one is configurable.
- Consolidated introgression maps (a heatmap of sampled introgression beside a bar chart of ghost targets, with their TSV matrices).
- Settings from command-line flags or a YAML or JSON config file, an input check that runs before any analysis, triplet and species filters, and one-line errors with distinct exit statuses. Runs in parallel on one machine, with identical results at any worker count under a fixed seed.
- The optional
ghostparser.mlsubpackage trains random-forest and multi-label KNN classifiers on a run's summary statistics and tunes their hyperparameters, optionally logging to Weights & Biases. - The empirical datasets (Drosophila, Heliconius, Jaltomata, Thuja) and the simulated training statistics, kept in the repository rather than in the release downloads.