NCLconverter

NCLconverter is a file conversion utility. It reads in a file in a recognized format, and writes the chosen output format. We have found it to be more robust than the Readseq parser, especially for large phylogenetic files. Mixed data types (for example, DNA, RNA, and protein in a single matrix) are not currently supported. This utility was created from the Nexus Class Library.

When parsing NEXUS files, NCLconverter allows the user to specify the strictness level. The default level is equivalent to s = 2. Using s = 3 or a higher number will convert some warnings into fatal errors. Running with s = 1 will cause the parser to accept "dangerous" constructs, and running with s = 0 will cause the parser make every attempt to finish parsing the file (warning about very serious errors). When s = 0 strictness level is used, the parser often fails to finish because of an error that precedes the error reported.

INPUT= The converter accepts the following files as input types: Nexus, Fasta (DNA, RNA, Amino Acid), Clustal (DNA, RNA, Amino Acid) Phylip (DNA, RNA, Amino Acid, Discrete chars), interleaved or non-interleaved, Relaxed Phylip (DNA, RNA, Amino Acid, Discrete chars), interleaved or non-interleaved, Newick (Phylip Tree), strict or relaxed; and NEXML.

OUTPUT = The converter can create the following output formats:

KNOWN ISSUE: The "normalized" Nexus created by this parser will not be usable by MrBayes 3.1. The reason is that "normalized" Nexus has separate character and taxon elements; MrBayes 3.1 requires these two parameters to be combined into a single element called Data.

Test input file (Nexus format): nclconverter_in.txt

Test output file (NEXML format): nclconverter_out.txt (Note: Microsoft Internet Explorer may not open this file properly, but other browsers succeed. If you use MSIE, you can right click on the link and download the file to view it.


NCLconverter can be found at:

Lewis, P.O., and Holder, M. T. (2008) Nexus Class Library, http://sourceforge.net/projects/ncl/.

If there is a tool or a feature you need, please let us know.