Skip to contents

This function reads and parses a multiple sequence alignment file produced by the MAFFT –text algorithm. It extracts showID and sequence information from the file and returns it as a data frame.

Usage

read_mafft_clustal_alignment(file_path)

Arguments

file_path

A character string specifying the path to the MAFFT Clustal alignment file.

Value

A data frame with two columns:

  • showID: An integer vector of show identifiers.

  • sequence: A character vector of aligned sequences.

Details

Parse MAFFT Clustal Alignment File

Examples

if (FALSE) { # \dontrun{
alignment_data <- read_mafft_clustal_alignment("path/to/mafft_alignment.txt")
head(alignment_data)
} # }