Nexus file
From Infogalactic: the planetary knowledge core
<templatestyles src="Module:Hatnote/styles.css"></templatestyles>
The NEXUS file format[1] (usually .nex or .nxs) is widely used in bioinformatics. Several popular phylogenetic programs such as Paup*,[2] MrBayes,[3] Mesquite, and MacClade[4] use this format.
Syntax
Command inside square brackets [ and ] are ignored (comment). Each block starts with BEGIN block_name;
and finishes with END;
[5]
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
- TAXA block
- The TAXA block contains information about taxa.
- DATA block
- The DATA block contains the data matrix (e.g. sequence alignment).
- TREES block
- The TREES block contains phylogenetic trees described using the Newick format, e.g.
((A,B),C);
:
#NEXUS BEGIN TAXA; TAXLABELS A B C; END; BEGIN TREES; TREE tree1 = ((A,B),C); END;
See also
References
<templatestyles src="Reflist/styles.css" />
Cite error: Invalid <references>
tag; parameter "group" is allowed only.
<references />
, or <references group="..." />
External links
- NEXUS file format — detailed explanation with lots of examples
- NEXUS format — a good description of the format and its uses in the field
- Nexus to phyloXML converter
- NeXML
- Nexus to Fasta converter
<templatestyles src="Asbox/styles.css"></templatestyles>