fas2bin: Convert a File in FASTA Format to Binary

View source: R/fas2bin.R

fas2binR Documentation

Convert a File in FASTA Format to Binary

Usage

fas2bin(infile, outfile, ...)

Arguments

infile

The address of the FASTA file to be converted. If not in the current working directory, provide the full address. The FASTA file must contain amino acid sequences, not DNA sequences.

outfile

The name (or full address, if necessary) of the output FASTA file to be written, containing the binary matrix.

...

Any other arguments that can be passed to the function write.fasta from the ape package.

Details

This code makes use of the function make.binary from the same package. See documentation of that function for more details on requirements for the binary matrix.

Value

The converted matrix, where there can only be two states per column.

Author(s)

Andrew Hipp and Kasey Pham

See Also

make.binary, write.fasta


andrew-hipp/morton documentation built on April 7, 2024, 12:15 p.m.