Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java library or code to parse Newick format?

Tags:

java

tree

Anyone knows a good Java library I can use to parse a Newick file easily? Or if you have some tested source code I could use?

I want to read the newick file: http://en.wikipedia.org/wiki/Newick_format in java and generate a visual representation of the same. I have seen some java programs that do that but not easy to find how the parsing works in code.

like image 260
Ravish Bhagdev Avatar asked May 05 '26 11:05

Ravish Bhagdev


2 Answers

Check out jebl (Java Evolutionary Biology Library) of FigTree and BEAST fame. Probably a lot more tree functionality than you might need, but it's a solid library.

like image 158
Chris F. Avatar answered May 06 '26 23:05

Chris F.


Stumbled on this question while looking for a Java Newick parser.

I've also come across libnewicktree, which appears to be an updated version of the Newick parser from Juxtaposer.

like image 44
nickdos Avatar answered May 07 '26 00:05

nickdos