An Interface to the Nexus Class Library

An interface to the Nexus Class Library which allows parsing of NEXUS, Newick and other phylogenetic tree file formats. It provides elements of the file that can be used to build phylogenetic objects such as ape's 'phylo' or phylobase's 'phylo4(d)'. This functionality is demonstrated with 'read_newick_phylo()' and 'read_nexus_phylo()'.


R-CMD-check Codecov test coverage

An R interface to the NEXUS Class Library

This R package provides an interface to the C++ library NCL. It can parse efficiently common file formats used to store phylogenetic trees, especially NEXUS and Newick files.

This package is primarily intended to be used by package developers as it extracts the elements needed to build R objects that represent the content of the file. For instance, phylobase uses rncl to extract trees and/or data stored in NEXUS and Newick files to create objects of class phylo4 or phylo4d.

The package however provides two functions for users: read_nexus_phylo() and read_newick_phylo(). They read NEXUS and Newick files respectively, and return (a valid) phylo or multiPhylo object from the package ape. These functions differ from those found in ape (respectively read.tree and read.nexus) as rncl functions can read trees with singletons, and missing branch lengths. However, rncl adheres to the NEXUS standards and only accepts tip labels without white spaces and tip labels cannot be duplicated in the same tree.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rncl")

0.8.10 by Francois Michonneau, 3 months ago


https://github.com/fmichonneau/rncl


Report a bug at https://github.com/fmichonneau/rncl/issues


Browse source code at https://github.com/cran/rncl


Authors: Francois Michonneau [aut, cre] (ORCID: , Ben Bolker [aut] , Mark Holder [aut] , Paul Lewis [aut] , Brian O'Meara [aut]


Documentation:   PDF Manual  


BSD_2_clause + file LICENSE license


Imports Rcpp, progress, stats

Suggests testthat, ape

Linking to Rcpp, progress


Imported by phylobase, rotl.

Depended on by CommEcol.


See at CRAN