Hi, I'm new to using R studio and I'm using the phangorn package. I'm trying to read in an alignment with a fast file containing protein sequences, but it is showing me an error:
Error in (function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE, : arguments imply differing number of rows: 279, 305, 343, 331, 285, 253, 315, 302, 301, 311, 633, 644, 662, 563
This is what I tried and I cannot figure out why I'm getting the error.
file = "Loxosceles_reclusa.fasta"
dat = read.phyDat("Loxosceles_reclusa.fasta", format = "fasta", type = "AA")
Could someone please help me find out what the problem here is? Thank you so much!