create_random_fasta: Create a random FASTA file

View source: R/create_random_fasta.R

create_random_fastaR Documentation

Create a random FASTA file

Description

Create a random FASTA file

Usage

create_random_fasta(
  n_taxa,
  sequence_length,
  fasta_filename,
  taxa_name_ext = ""
)

Arguments

n_taxa

The number of taxa

sequence_length

a DNA sequence length, in base pairs

fasta_filename

a FASTA filename.

taxa_name_ext

the extension of the taxa names

Value

Nothing, creates a FASTA file

Author(s)

Richèl J.C. Bilderbeek

Examples

check_empty_beaustier_folders()

fasta_filename <- get_beastier_tempfilename()
create_random_fasta(
  n_taxa = 5,
  sequence_length = 20,
  fasta_filename = fasta_filename
)
file.remove(fasta_filename)

remove_beaustier_folders()
check_empty_beaustier_folders()

richelbilderbeek/beastier documentation built on Nov. 8, 2023, 9:29 p.m.