Re: [R-sig-phylo] problem with write.nexus.data

2014-09-24 Thread Emmanuel Paradis
Hi Liam and Nicholas. write.nexus.data() accepts only lists as specified in the help page, but it's a bit of an anomaly since the same help page says the sequences must be aligned. I have modified this function so that it now accepts both lists and matrices. Best, Emmanuel Le 18/09/2014

Re: [R-sig-phylo] problem with write.nexus.data

2014-09-18 Thread Nicholas Crouch
This solved the problem exactly, thank you very much. Nick On Thu, Sep 18, 2014 at 12:22 AM, Liam J. Revell liam.rev...@umb.edu wrote: Hi Nicholas. I think this is a bug. Try the following to circumvent: write.nexus.data(as.list(data), file=test.nex, interleaved=TRUE,

[R-sig-phylo] problem with write.nexus.data

2014-09-17 Thread Nicholas Crouch
Hi, I am having a problem with write.nexus.data, such that the file generated is nonsense. I have a very, very large data set, but have been working with a subset trying to solve this problem. My data is in .fasta format, and I am looking to convert it into nexus format. I load the data:

Re: [R-sig-phylo] problem with write.nexus.data

2014-09-17 Thread Liam J. Revell
Hi Nicholas. I think this is a bug. Try the following to circumvent: write.nexus.data(as.list(data), file=test.nex, interleaved=TRUE, charsperline=100) Since I don't have your dataset, I can't check it; but it fixed the problem in another dataset with which I was able to reproduce the