Loading AI tools
File format used in bioinformatics From Wikipedia, the free encyclopedia
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.
Filename extensions | usually .nex or .nxs |
---|---|
Internet media type | application/octet-stream |
Magic number | '#NEXUS\n' |
Developed by | Maddison DR, Swofford DL, Maddison WP |
Initial release | December 1997 |
Type of format | bioinformatics |
Open format? | Yes |
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]
((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;
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.