alg2csv: algToCsv (alignemnt to CSV)

Description Usage Arguments Details Value Author(s)

Description

Converts an alignment into a CSV file.

Usage

1
alg2csv(file, output, format = "fasta")

Arguments

file

path and file name for a DNA alignement.

output

path and file name of the CSV file which will contain the alignement.

format

format of the alignement specified by the ‘file’ argument.

Details

This function converts an alignement (in FASTA format by default, but accepts all formats accepted by ape:::read.dna) into a 2-column CSV file, where the first column is the sequence name, and the second column the actual sequence. The sequences are ordered alphabetically, and converted to upper case.

Value

TRUE if the function succeeded, and writes the ‘output’ file where specified.

Author(s)

Francois Michonneau


fmichonneau/chopper documentation built on May 16, 2019, 1:43 p.m.