Hi Ben.

Your Newick string has some issues & is possibly invalid. I believe there are commas missing after "0.0242997" and after "0.475571". If the line-breaks are eliminated, phytools read.newick will read the string - but the result is a very peculiar tree. Whereas if I put commas in those two spots, I obtain an ultrametric tree from read.tree or read.newick.

This may be beside the point if the issue is that this text string when read using read.tree crashes R rather than producing a more sensible error. This I too experienced.

All the best, Liam

Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org

On 3/9/2015 9:02 PM, Ben Bolker wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

   I came across this in one of my example files.  Just thought I'd
report it:

library("ape")
sessionInfo()
## R Under development (unstable) (2015-02-11 r67792)
## Platform: i686-pc-linux-gnu (32-bit)
## Running under: Ubuntu precise (12.04.5 LTS)
## ...
## other attached packages:
## [1] ape_3.2

treeText <- "(((8:0.102773,3:0.102773):0.0537417,((0:0.0242997
(7:0.0205236,2:0.0205236):0.00377606):0.0523697,4:0.0766694):0.0798455):0.475571
((9:0.0099204,5:0.0099204):0.202541,(1:0.00367543,6:0.00367543):0.208786):0.419624);"
tree <- collapse.singles(read.tree(file=textConnection(treeText)))
plot(tree)

  *** caught segfault ***
address 0x4d79c0e0, cause 'memory not mapped'

Traceback:
  1: .C(node_height, as.integer(Ntip), as.integer(Nnode),
as.integer(edge[,     1]), as.integer(edge[, 2]), as.integer(Nedge),
as.double(yy))
  2: .nodeHeight(Ntip, Nnode, z$edge, Nedge, yy)
  3: plot.phylo(tree)
  4: plot(tree)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBAgAGBQJU/kKhAAoJEOCV5YRblxUHZ0oIAINCaS7b6BK3LNnb36rGJqsM
8dtdWvXuVAN88h2EF7EnRbXm9dLQ3tyd/Ss7+mpATInohJ5vI7l42QecQYRzFw5P
1hqCGxuVpTwStXxEemlbvOQUf6iEaPYxBMFHkWXszOP2yesRt3k4qsij4YVhHKVi
HTqnR+2YTg0Rjm+gHk4kidU2mcMZl4mPwSWJamGnmve3Qw58mpB2tSzqhnJYS2XH
DEbrV1FEsZPGr7NnS01FrykDjB4gnRx+qiIul7Ym6N0ONc/q9Mt3Fewwi2K4MpyS
D5uaJXfUUKIr8MQq64sBGAjTw96ja4s20aqEl2yAf0tH4nGgMH+xa1n/8f8Cuo0=
=/Ft9
-----END PGP SIGNATURE-----

_______________________________________________
R-sig-phylo mailing list - R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/


_______________________________________________
R-sig-phylo mailing list - R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/

Reply via email to