Skip to content
/ mrca Public

Get the MRCA of a group of tips from a phylogenetic tree

Notifications You must be signed in to change notification settings

bjeight/mrca

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mrca

Find the most recent common ancestor (MRCA) of a set of tips in a phylogenetic tree

Use

The input tree (-t) must be rooted and in newick format, with internal nodes labelled. Tip names are matched by providing a regular expression to -r:

> mrca -t rooted.newick -r "in|out0"
Node2

The MRCA node's label is written to stdout. If the MRCA is the root of the tree, "root" will be printed if the root node is not named.

Help:

./mrca -h
Usage:
   [flags]

Flags:
  -h, --help           help for this command
  -r, --regex string   regex of tip names to parse
  -t, --tree string    tree file to read (in Newick format)

Installation

First, install go,

then:

go install github.com/bjeight/mrca@latest

or

git clone https://github.com/bjeight/mrca.git
cd mrca
go build -o mrca

About

Get the MRCA of a group of tips from a phylogenetic tree

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages