mase
, clustal
, phylip
, fasta
or msf
format. This formats are used to store nucleotide or protein multiple alignments.read.alignment(File, format)
mase
, clustal
, phylip
, fasta
or msf
alignment
which is a list with the following components:NA
if there is no comments;;
. The body of the file has the following structure: First, each entry must begin by one (or more) commentary line. Commentary lines begin by the character ;
. Again, this commentary line may be empty. After the commentaries, the name of the sequence is written on a separate line. At last, the sequence itself is written on the following lines.
}
citation("seqinr")
mase <- read.alignment(File = system.file("sequences/test.mase",package = "seqinr"), format="mase")
phylip <- read.alignment(File = system.file("sequences/test.phylip",package = "seqinr"), format="phylip")
msf <- read.alignment(File = system.file("sequences/test.msf",package = "seqinr"), format="msf")
Run the code above in your browser using DataLab