
dndtag.pl - applies unique node labels to newick trees.

[-t|--treefile <tree file>] [-s|--string 'newick string'] [-n|--nexus] [-v|--verbose] [-h|--help] [-m|--man]

The dndtag.pl program applies node labels to newick trees:
((A,B),C); --> ((A,B)Node1,C)Node2;
The node labels are unique per tree. Already existing node labels are left in place. The output is written to standard out.

A text file containing newick formatted tree descriptions.
'newick string'A tree string, i.e. a parenthetical statement, possibly shell-escaped (e.g. on /bin/bash, this statement needs to be single quoted, on windows cmd double quoted).
Output printed in nexus format.
Returns this help message.
Verbose mode yields (a few) more messages.
Opens the full documentation in perldoc format.

Parameters: none
Checks command line arguments for sanity.
Parameters: infile
Parses the provided input file.
Parameters: infile
Calls the other subroutines.

The following exit values are returned:
0 All input files were processed successfully.
1 Invalid command line arguments.
2 No input file specified.

The program requires either a newick string or a valid newick-formatted tree file issued after the --treefile command line argument.

Rutger Vos: http://search.cpan.org/~rvosa

Meaning: Command line arguments where supplied that aren't recognized by the program.
Meaning: Apparently, no input file name or string was specified.