Dear all,
Thanks a lot for all of you that responded, either directly or through the
list. Long story short: once I converted all of my files to fasta, the
comments to do concatenation worked like a charm.
cheers,
Karla
On Fri, Nov 18, 2016 at 9:21 AM, Karla Shikev wrote:
>
> Dear all,
>
> I
Dear Karla,
what is exactly the problem and what did you try? There is a (generic)
function cbind for "phyDat" objects in phangorn, which should exactly do
this task.
library(phangorn)
data(Laurasiatherian)
(x1 <- subset(Laurasiatherian, 1:20))
(x2 <- subset(Laurasiatherian, 11:30))
cbind(x1, x2)
Dear Karla,
First, I suggest you manage your alignment files in FASTA rather than in
NEXUS: this is much more efficient in practice.
You may read an alignment in a NEXUS file using read.nexus.data() in
ape, then convert it in "DNAbin" class with as.DNAbin(). The cbind()
funtion in ape allows