I want to import a file with several genetic sequences in phyDat format
The steps to follow are:
Import fasta alignment of several sequences previously aligned in the Mega program.
aln.1.cons.fa <- read.fasta("C://Users/Ricky/WMV_CP_Alignment_IV_1.fasta")
Reform the file in fasta format.
write.fasta(aln.1.cons.fa,names = names(aln.1.cons.fa),file.out = "C://Users/Ricky/wmv_cp_cons_aln_1.fasta")
Read again the refined fasta file as PhyDat object
aln.cons.1.phydat <- read.phyDat("C://Users/Ricky/wmv_cp_cons_aln_1.fasta",format = "fasta")
After executing the last code I receive the following error:
Error in (function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE, : arguments imply differing number of rows: 125, 23100
What mistake am I making and how can I resolve that error?
Thanks in advance.