ERaBLE: example
These examples show the two files required by ERaBLE and the results to expect with the default settings: wseq weights, the nksumdist constraint, the ldlt solver and a precision of 12 significant digits.
Copy each input into a separate plain text file. Both examples can be run with the downloaded software; the ATGC online service is being prepared.
A small example with four taxa and two genes
The reference tree groups C and D together. Both genes cover the four taxa. The fast gene has distances twice those of the slow gene, and its alignment is twice as long.
Reference topology
Save the following as erable-mini-topology.txt:
(A,B,(C,D));
Distance matrices
Save the following as erable-mini-matrices.txt:
2%Slow gene
4 100
A 0 0.2 0.4 0.4
B 0.2 0 0.4 0.4
C 0.4 0.4 0 0.2
D 0.4 0.4 0.2 0%Fast gene
4 200
A 0 0.4 0.8 0.8
B 0.4 0 0.8 0.8
C 0.8 0.8 0 0.4
D 0.8 0.8 0.4 0
Expected relative rates
| Gene | Alignment length | Relative rate |
|---|---|---|
| Slow gene | 100 | 0.6 |
| Fast gene | 200 | 1.2 |
The ratio of the estimated rates is 2. Their alignment-length-weighted mean is (100 × 0.6 + 200 × 1.2) / 300 = 1.
Expected tree
((A:0.166666666667,B:0.166666666667):0.333333333333,D:0.166666666667,C:0.166666666667);
The output may be written with a different ordering of leaves or a different top-level representation. These changes do not change its unrooted topology or the estimated distances.
The official example with six taxa and three genes
The example distributed with ERaBLE contains three genes, each covering four of the six reference taxa. It illustrates how genes can cover overlapping subsets of a reference phylogeny.
Reference topology
Save the following as erable-official-topology.txt:
//comment branch lengths are ignored and non necessary
(Tax10:0.51144,(Tax34:0.19411,(Tax20:0.19064,Tax4:0.15564):0.09995):0.09856,(Tax14:0.10233,Tax3:0.03293):0.01914);
The branch lengths already present in this input are ignored; ERaBLE estimates new values from the matrices.
Distance matrices
Save the following as erable-official-matrices.txt:
//comment : Gene names "%names" are optional3 %Gene 43
4 381
Tax10 0.00000000 0.63692700 1.18140000 1.07080000
Tax3 0.63692700 0.00000000 0.70195800 0.59136000
Tax20 1.18140000 0.70195800 0.00000000 0.61216600
Tax4 1.07080000 0.59136000 0.61216600 0.00000000 %Gene 60
4 210
Tax14 0.00000000 0.11026300 0.29855000 0.27683700
Tax3 0.11026300 0.00000000 0.21525100 0.19353800
Tax20 0.29855000 0.21525100 0.00000000 0.15977400
Tax4 0.27683700 0.19353800 0.15977400 0.00000000%Gene 69
4 590
Tax34 0.00000000 0.39659600 0.42909900 0.42292600
Tax14 0.39659600 0.00000000 0.46365800 0.45748400
Tax20 0.42909900 0.46365800 0.00000000 0.28217300
Tax4 0.42292600 0.45748400 0.28217300 0.00000000
Expected relative rates
| Gene | Alignment length | Approximate relative rate |
|---|---|---|
| Gene 43 | 381 | 1.62968557968 |
| Gene 60 | 210 | 0.486296380712 |
| Gene 69 | 590 | 0.776216193547 |
Small differences in the last reported digits can occur with numerical precision or solver changes. Compare gene names, rate scale and tree relationships when checking a run.
Running an example locally
Once the ERaBLE executable is installed and available in your command path, run:
erable -i erable-mini-matrices.txt -t erable-mini-topology.txt -o example -w wseq -c nksumdist -m ldlt -p 12
This creates example.length.nwk and example.rates.txt. For the official example, replace the two input filenames with erable-official-matrices.txt and erable-official-topology.txt.
Online analyses will also provide a rate table in TSV format and additional result summaries. See the input and parameter guide for details.
The official inputs are included in the ERaBLE Unix/Linux archive. Larger research datasets are available from the official repository.