Save the transposed binary profiles matrix to a file in PHYLIP format
Source:R/07_microsynteny-based_phylogeny.R
profiles2phylip.Rd
Save the transposed binary profiles matrix to a file in PHYLIP format
Usage
profiles2phylip(transposed_profiles = NULL, outdir = tempdir())
Arguments
- transposed_profiles
A binary and transposed profile matrix. The profile matrix can be obtained with
phylogenomic_profile()
.- outdir
Path to output directory. By default, files are saved in a temporary directory, so they will be deleted when the R session closes. If you want to keep the files, specify a custom output directory.
Examples
data(clusters)
profile_matrix <- phylogenomic_profile(clusters)
tmat <- binarize_and_transpose(profile_matrix)
profiles2phylip(tmat)
#> [1] "/tmp/RtmpNS1OhZ/microsynteny_phylogeny_08_Oct_2024_09h27.phy"