Nexus file

From Wikipedia, the free encyclopedia
Revision as of 22:56, 26 January 2025 by imported>EBraun68
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description Script error: No such module "For". Script error: No such module "Infobox".Template:Template otherScript error: No such module "Check for unknown parameters".

The extensible NEXUS file format is widely used in phylogenetics, evolutionary biology, and bioinformatics. It stores information about taxa, morphological character states, DNA and protein sequence alignments, distances, and phylogenetic trees.[1] The NEXUS format also allows the storage of data that can facilitate analyses, such as sets of characters or taxa. Many popular phylogenetic programs, including PAUP*,[2] MrBayes,[3] Mesquite,[4] MacClade,[5] and SplitsTree,[6] use this format. Nexus file names typically have the extension .nxs or .nex .

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] Each of the pre-defined types of blocks may appear only once.

Block Name Description
TAXA Specifies the OTUs (operational taxonomic units) in data set
CHARACTERS Specifies the character data (e.g., homologous morphological characters or a multiple sequence alignment)
DATA Equivalent to a CHARACTERS block that includes the NewTaxa subcommand in the Dimensions command
TREES Stores trees in Newick format
DISTANCES Stores distance matrices
SETS Assigns names to sets of characters (CHARSET) or OTUs (TAXSET)
ASSUMPTIONS Assumptions about the data or directions regarding data treatment (e.g., the character exclusion status)

The following example NEXUS uses the TAXA, CHARACTERS, and TREES blocks:

#NEXUS
Begin TAXA;
  Dimensions ntax=4;
  TaxLabels Alpha Beta Gamma Delta;
End;

Begin CHARACTERS;
  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. ]
    Alpha   Template:DNA sequence
    Beta    Template:DNA sequence
    Gamma   Template:DNA sequence [ same as atgttagctag-tgg ]
    Delta   Template:DNA sequence           
  ;
End;

Begin TREES;
  Tree tree1 = ((Alpha,Beta),Gamma,Delta);
END;

See also

References

Template:Reflist

External links

Template:Bioinformatics

  1. Script error: No such module "Citation/CS1".
  2. PAUP* Template:Webarchive — 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. Detailed NEXUS specification