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

Error message regarding gene trees input file format #94

Open
abcbot123 opened this issue Mar 16, 2024 · 2 comments
Open

Error message regarding gene trees input file format #94

abcbot123 opened this issue Mar 16, 2024 · 2 comments

Comments

@abcbot123
Copy link

Hi,
I'm using ASTRAL tool to get the species tree using gene trees. I have created the gene trees and the bootstrap gene trees using RAxML. This is the code I have used in ASTRAL.
java -jar Astral/astral.5.7.1.jar -i genetree_combine -o astral_speciestree -b bootstrap_combine -r 100

This is the error I got,
================== ASTRAL =====================

This is ASTRAL version 5.7.1
Gene trees are treated as unrooted
Exception in thread "main" java.lang.RuntimeException: Failed to Parse Tree number: 1
at phylonet.coalescent.CommandLine.readInputTrees(CommandLine.java:835)
at phylonet.coalescent.CommandLine.readOptions(CommandLine.java:328)
at phylonet.coalescent.CommandLine.main(CommandLine.java:513)
Caused by: phylonet.tree.io.ParseException: ')' expected
at phylonet.tree.io.NewickReader.readNode(NewickReader.java:405)
at phylonet.tree.io.NewickReader.readNode(NewickReader.java:399)
at phylonet.tree.io.NewickReader.readNode(NewickReader.java:399)
at phylonet.tree.io.NewickReader.readNode(NewickReader.java:399)
at phylonet.tree.io.NewickReader.readNode(NewickReader.java:399)
at phylonet.tree.io.NewickReader.readNode(NewickReader.java:399)
at phylonet.tree.io.NewickReader.readNode(NewickReader.java:399)
at phylonet.tree.io.NewickReader.readTree(NewickReader.java:374)
at phylonet.tree.io.NewickReader.readTree(NewickReader.java:95)
at phylonet.coalescent.CommandLine.readInputTrees(CommandLine.java:802)
... 2 more
Is this error regarding my input file format?
But I couldn't figure out any format errors in my input files. I have look for the test_data in the tool itself and seems my data is in the same Newick format. Could you please help me to figure out what's the formatting error in my input files.

Thanks so much!

@biocyberman
Copy link

I got the same error and figured out that it is because I have '/' characters in the identifiers of the entries in the newick tree files. After replacing them with _, it works. @smirarab

@smirarab
Copy link
Owner

smirarab commented Apr 1, 2024

It's hard for me to know what is going wrong without seeing the input. It may be an unsupported character, as @biocyberman mentioned. But it also could be the format of the bootstrap_combine files is wrong. Please see https://github.com/smirarab/ASTRAL/blob/master/astral-tutorial.md#multi-locus-bootstrapping Make sure you -b file inclues the path to newick files, as mentioned in the tutorial.

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

3 participants