profiles2phylip: Save the transposed binary profiles matrix to a file in...

View source: R/07_microsynteny-based_phylogeny.R

profiles2phylipR Documentation

Save the transposed binary profiles matrix to a file in PHYLIP format

Description

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.

Value

Character specifying the path to the PHYLIP file.

Examples

data(clusters)
profile_matrix <- phylogenomic_profile(clusters)
tmat <- binarize_and_transpose(profile_matrix)
profiles2phylip(tmat)

almeidasilvaf/syntenet documentation built on March 23, 2024, 8:27 a.m.