sub

package
v0.0.0-...-8e46452 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package sub implements a command to produce a sub-tree from a phylogenetic tree in a tsv file.

Index

Constants

This section is empty.

Variables

View Source
var Command = &command.Command{
	Usage: `sub [-i|--input <file>] [-o|--output <file>]
	[--name <tree-name>] --tree <tree-name>
	<taxon-1> <taxon-2> [<taxon-n>...]`,
	Short: "retrieve a sub-tree",
	Long: `
Command sub reads a tree file in TSV format and selects the clade that contains
the most recent common ancestor of the indicated terminals.

By default, the input tree will be read from the standard input. Use the flag
--input or -i to set a particular input file name.

By default, the output will be printed in the standard output. Use the flag
--output, or -o, to define an output file. If the file already exists, the
resulting tree will be added to the file.

The flag --tree is required and defines the name of the source tree.

By default, the resulting tree will be named after the name of the node; if the
node does not have a name, it will use the name of the source tree and the node
ID in that tree. Use the flag --name to define a name for the resulting tree.

The arguments of the command are the names of at least two taxons named in the
source tree; the most recent common ancestor of the indicated names will be
used as the root node for the resulting tree.
	`,
	SetFlags: setFlags,
	Run:      run,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL