fastas_to_phylos: Create one or more random phylogenies.

Description Usage Arguments Value Author(s) Examples

View source: R/fastas_to_phylos.R

Description

Per FASTA file, one random phylogeny is created, with the same taxa names as that FASTA file. All phylogenies have the same crown age.

Usage

1
fastas_to_phylos(fasta_filenames, crown_age)

Arguments

fasta_filenames

One or more FASTA filenames. Use get_fasta_filename to obtain a testing FASTA filename.

crown_age

the crown age of the phylogeny

Value

a multiPhylo with as much phylogenies as there were FASTA filenames. Each phylogeny has the same taxa names as its corresponding FASTA file. All phylogenies have the same crown age.

Author(s)

Richèl J.C. Bilderbeek

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
  # Create two random phylogies, with
  # - the same taxa names as the FASTA files
  # - the desired crown age
  fasta_filenames <- beautier::get_beautier_paths(
    c("anthus_aco.fas")
  )
  initial_phylogenies <- fastas_to_phylos(
    fasta_filenames,
    crown_age = 15
  )

richelbilderbeek/ribir documentation built on March 19, 2021, 3:55 a.m.