Learn R Programming

CorMut (version 1.14.0)

seqFormat-methods: Process the multiple sequence alignment files

Description

Process the multiple sequence alignment files, the results can be used for the other functional functions. Note that the reference sequence should be included as the first sequence.

Usage

seqFormat(x, format = c("clustal","fasta","mase","phylip","msf"))

Arguments

x
multiple sequence alignment files
format
a character string specifying the format of the file: "clustal","fasta","mase","phylip","msf", refer to read.alignment function in seqinr package for details.

Value

A vector of sequences with names is returned.

Examples

Run this code
examplefile=system.file("extdata","PI_treatment.aln",package="CorMut")
example=seqFormat(examplefile)

Run the code above in your browser using DataLab