Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"elf_dynamic_array_reader.h:61 tag not found" when loading an iqtree file #98

Open
vmkalbskopf opened this issue Jul 6, 2023 · 2 comments

Comments

@vmkalbskopf
Copy link

vmkalbskopf commented Jul 6, 2023

That is the error when I try to load an iqtree file in RStudio. If I try to load it in a base R session, I get this:

` *** caught segfault ***
address 0x55e30bb1bd18, cause 'memory not mapped'

Traceback:
1: FUN(X[[i]], ...)
2: lapply(STRING, .treeBuild)
3: read.tree(text = treetext)
4: read.iqtree("~/diversity_proj/trees/MLtreewithParts.iqtree")
`

and then the R session crashes.
I'm running R ver 4.2.1 and treeio v1.22.0

all I typed was:
tree = read.iqtree('MLtreewithParts.iqtree')
Nothing else is loading in my environment other than treeio.
MLtreewithParts.iqtree.txt

@brj1
Copy link
Contributor

brj1 commented Jul 6, 2023

The .iqtree file produced by IQ-Tree is not readable by read.iqtree; read.iqtree takes a newick file as input. There should be a .treefile file in the folder with ''MLtreewithParts.iqtree'. Try opening that file instead:

tree <- read.iqtree('MLtreewithParts.treefile')

@vmkalbskopf
Copy link
Author

Yup, that was indeed the issue. You can mark this solved.
Perhaps input validation would help future users ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants