For faster navigation, this Iframe is preloading the Wikiwand page for Nexus file.

Nexus file

Nexus format
Filename extensionsusually .nex or .nxs
Internet media typeapplication/octet-stream
Magic number'#NEXUS\n'
Developed byMaddison DR, Swofford DL, Maddison WP
Initial releaseDecember 1997 (26 years ago) (1997-12)
Type of formatbioinformatics
Open format?Yes

The extensible NEXUS file format is widely used in bioinformatics. It stores information about taxa, morphological and molecular characters, distances, genetic codes, assumptions, sets, trees, etc.[1] Several popular phylogenetic programs such as PAUP*,[2] MrBayes,[3] Mesquite,[4] MacClade[5] and SplitsTree[6] use this format.

Syntax

A NEXUS file is made out of a fixed header #NEXUS followed by multiple blocks. Each block starts with BEGIN block_name; and ends with END;. The keywords are case-insensitive. Comments are enclosed inside square brackets [...].[7]

There are a few pre-defined block names for common types of data. Examples include:[7]

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);:

The following example uses the three block types above:

#NEXUS
Begin TAXA;
  Dimensions ntax=4;
  TaxLabels SpaceDog SpaceCat SpaceOrc SpaceElf;
End;

Begin data;
  Dimensions nchar=15;
  Format datatype=dna missing=? gap=- matchchar=.;
  Matrix
    [ When a position is a "matchchar", it means that it is the same as the first entry at the same position. ]
    SpaceDog   atgctagctagctcg
    SpaceCat   ......??...-.a.
    SpaceOrc   ...t.......-.g. [ same as atgttagctag-tgg ]
    SpaceElf   ...t.......-.a.           
  ;
End;

BEGIN TREES;
  Tree tree1 = (((SpaceDog,SpaceCat),SpaceOrc,SpaceElf));
END;

See also

References

  1. ^ Maddison DR, Swofford DL, Maddison WP (1997). "NEXUS: An extensible file format for systematic information". Systematic Biology. 46 (4): 590–621. doi:10.1093/sysbio/46.4.590. PMID 11975335.
  2. ^ PAUP* Archived 2006-09-03 at the Wayback Machine — Phylogenetic Analysis Using Parsimony *and other methods
  3. ^ MrBayes
  4. ^ Mesquite: A modular system for evolutionary analysis
  5. ^ MacClade
  6. ^ Huson and Bryant, Application of Phylogenetic Networks in Evolutionary Studies, Mol Biol Evol (2005) 23 (2): 254-267. https://doi.org/10.1093/molbev/msj030
  7. ^ a b Detailed NEXUS specification
{{bottomLinkPreText}} {{bottomLinkText}}
Nexus file
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?