set

package
v0.0.0-...-a50ec8e Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package set implements a command to set node ages for a list of trees.

Index

Constants

This section is empty.

Variables

View Source
var Command = &command.Command{
	Usage: `set [--tozero]  [-i|--input <file>]
	[-o|--output <file>] <treefile>...`,
	Short: "set ages of the nodes of a tree",
	Long: `
Command set reads one or more trees in TSV format, and use a list of node ages
to set the ages of the nodes of a tree.

One or more tree files must be given as arguments.

The ages of the nodes can be defined either from an input file defined with
the --input, or -i, flag, or provided in the standard input. The ages file is
a TSV file without header, and the following columns:

	-tree  the name of the tree
	-node  the ID of the node to set
	-age   the age (in million years) of the node

The node ages must be consistent with any other age already defined on the
tree. The changes are made sequentially.

As an usual operation is to set ages of all terminals to 0 (present), the flag
--tozero is provided to automatize this action. Note that the flag will set
all terminals in the tree collection.

The resulting tree file will be printed in the standard output. Use the flag
--output, or -o, to define an output file.
	`,
	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