This makes sense as I was also able to read in the file using read.tree() with no difficulty running in Windows. - Liam
On 1/21/2011 10:46 AM, Leonor Palmeira wrote: > On 21/01/11 16:39, Chris Mcowen wrote: >> Thanks for this, it works now. I wonder how that got there? It isn't >> in the nexus format? Very odd! >> >> Also, >> >>> Enrico Rezende >> >>> Chris, >>> FYI, I opened your file in R with the read.tree command and had no >>> problems to visualise your tree. >>> >>> >>>> tree<- read.tree("tree.txt") >>>> tree >>> >>> Phylogenetic tree with 1325 tips and 1248 internal nodes. >>> >>> Tip labels: >>> Acanthochlamys_bracteata, Barbacenia_albiflora, >>> Barbacenia_pallida, Barbacenia_riedeliana, Barbacenia_trigona, >>> Freycinetia_awaiarensis, ... >>> >>> Rooted; includes branch lengths. >>> >>> >>> Enrico >> >> How could he open it in this format? > > It might be related to the system under which you're running R? I am > running it under Linux and have the same error as you. Enrico might be > running it under Windows, which might ignore this character. > > Sorry that I don't have any more insight on this matter. > > Leo. > >> Thanks >> >> On 21 Jan 2011, at 15:36, Leonor Palmeira wrote: >> >> Hi, >> >> this is just due to a unallowed character in your file in >> "Ptychosperma_harannii". If you change this, it should run fine. >> >> Leo. >> >> On 21/01/11 16:00, Chris Mcowen wrote: >>> Hi, >>> >>> I am using a function that requires a tree in PHYLIP format. I had >>> it in nexus ( which read in fine using the read.nexus function) i >>> then opened it in figtree and output it as phylip. >>> >>> However when i try and open it i get this error: >>> >>>>> read.tree("/Users/chrismcowen/Desktop/tree.txt") >>>> NULL >>>> Warning message: >>>> In strsplit(tree, NULL) : input string 1 is invalid in this locale >>>> >>> >>> I can open it in figtree fine, so i am unsure why i cant in R? >>> >>> any help would be greatly appreciated. >>> >>> p.s - the tree is attached. >>> >>> Chris >>> >>> >>> >>> _______________________________________________ >>> R-sig-phylo mailing list >>> R-sig-phylo@r-project.org >>> https://stat.ethz.ch/mailman/listinfo/r-sig-phylo >> > -- Liam J. Revell NESCent, Duke University web: http://anolis.oeb.harvard.edu/~liam/ NEW email: lrev...@nescent.org [[alternative HTML version deleted]] _______________________________________________ R-sig-phylo mailing list R-sig-phylo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-phylo