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.
Click to show internal directories.
Click to hide internal directories.