This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#= | |
to use the functions in this file, read it within julia with: | |
include("path/to/outgroup-reroot.jl"); | |
but replace 'path/to/' by the actual path to this file on your machine. | |
main function defined in this file: | |
rootgenetrees | |
rootgenetree! | |
outgrouplabels |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#= | |
inspired from evobiR::CalcD (https://github.com/coleoguy/evobir/blob/master/R/CalcD.R) | |
used in [Blair & Ané 2020](https://doi.org/10.1093/sysbio/syz056) | |
=# | |
using BioSymbols | |
using BioSequences | |
using FASTX | |
using PhyloNetworks | |
using Random |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# concatenate several phylip alignments | |
# asssumptions: | |
# - the current directory contains all the alignments | |
# (uncomment and modify the first line of code otherwise) | |
# - alignments are those files ending with ".phy" | |
# (beware: after running the script, the concatenated file will also end | |
# in .phy and will be in same folder: do don't re-run the script) | |
# - in each alignment, first line = header (no blank line before) | |
# - each taxon is sampled across all alignments: |