The NEXUS file format (usually .nex or .nxs) is widely used in bioinformatics. Several popular phylogenetic programs such as PAUP*, MrBayes, Mesquite,, MacClade and SplitsTree use this format.
Contents
Syntax
Command inside square brackets [ and ] are ignored (comment). Each block starts with BEGIN block_name;
and finishes with END;
An example for a simple DNA alignment would be:
#NEXUS Begin data; Dimensions ntax=4 nchar=15; Format datatype=dna missing=? gap=-; Matrix Species1 atgctagctagctcg Species2 atgcta??tag-tag Species3 atgttagctag-tgg Species4 atgttagctag-tag ; End;Basic blocks
((A,B),C);
:
#NEXUS
BEGIN TAXA;
TAXLABELS A B C;
END;
BEGIN TREES;
TREE tree1 = ((A,B),C);
END;
References
Nexus file Wikipedia(Text) CC BY-SA