October 2026
joint-parsimony - Report parsimony and indel summaries for joint alignment and tree samples.
joint-parsimony ALIGNMENTS TREES [OPTIONS]
joint-parsimony reports a minimum substitution count and summaries of insertion/deletion runs for each sampled alignment and tree, describing variation across samples. Results go to standard output; diagnostics go to standard error.
ALIGNMENTS and TREES are required positional filenames containing alignment samples and corresponding Newick tree samples. Multiple FASTA alignments can be separated by blank lines; the tree file contains one tree per line. Each retained tree must correspond to the alignment paired with it.
--subsample thins only the tree file, starting with its first tree. The default is 10, for alignments saved once per ten tree samples. Use --subsample=1 when the two files already have matching sampling frequencies. If counts differ, the tool warns and uses only the pairs available from the beginning of both files.
Each alignment/tree pair produces one line containing the following labeled quantities:
length#indels|indels|phase0, phase1, phase2,
no-phaseno-phase is incremented. These
fields appear only for DNA/RNA and nucleotide triplet/codon alphabets.
Reading-frame interpretation assumes coding sequences beginning at a codon boundary. Whole-codon gaps occur at phase zero. The indel counts use the gap patterns on tree branches; the parsimony score instead minimizes state changes using the leaf observations.
Summarize files containing one tree for each alignment:
joint-parsimony samples.fastas samples.trees --subsample=1
Treat aligned nucleotide triplets as codons:
joint-parsimony samples.fastas samples.trees \
--subsample=1 --alphabet=Codons
--subsample NUM--alphabet NAMEDNA,
RNA, Amino-Acids, or Codons. By
default, infer the alphabet from the input.
-h,
--helpjoint-indels(1)
BAli-Phy online help: https://www.bali-phy.org/docs.php.
Please send bug reports to bali-phy-users@googlegroups.com.