Learn R Programming

alignfigR (version 0.1.1)

read_alignment: Read a multiple sequence alignment file.

Description

This function parses a FASTA file containing molecular sequence data and returns a named-array of the sequences.

Usage

read_alignment(file)

Arguments

file

File name. NOTE: Only FASTA file are supported!

Value

seq_array, a named-array of the parsed sequence data

Examples

Run this code
# NOT RUN {
fasta_file <- system.file("extdata", "example.fasta", package = "alignfigR")
plot_frame <- read_alignment(file = fasta_file)
# }

Run the code above in your browser using DataLab