1. Home
  2. BPRINT procedure

BPRINT procedure

Displays a tree (R.W. Payne).

Option

PRINT = string tokens Controls printed output (indented, bracketed, labelleddiagram, numbereddiagram); default inde

Parameter

TREE = trees Trees to be displayed

Description

BPRINT can print a tree in various formats. The tree is specified by the TREE parameter, and the PRINT option indicates what output is required, with settings:

    bracketed display as used to represent an identification key in “bracketed” form (printed node by node);
    indented display as used to represent an identification key in “indented” form (printed branch by branch);
    labelleddiagram diagrammatic display including the node labels;
    numbereddiagram diagrammatic display with the nodes labelled by their numbers.

Option: PRINT.

Parameter: TREE.

Method

BPRINT uses the standard tree functions to parse the tree for printing.

See also

Directive: TREE.

Procedures: BRDISPLAY, BKDISPLAY, BRDISPLAY, BGRAPH.

Commands for: Input and output.

Example

CAPTION 'BPRINT example',\
        'Example 1 from Genkey Manual (Payne 1993, Rothamsted).';
        STYLE=meta,plain
FACTOR  [NVALUES=8; LEVELS=2] T1,T2,T3,T4,T5
READ    T1,T2,T3,T4,T5
1 1 1 2 1
1 2 1 2 2
1 2 1 1 1
2 1 2 1 2
2 2 1 1 2
2 2 1 1 1
2 2 2 1 2
2 2 2 2 2 :
TEXT    [VALUES=A,B,C,D,E,F,G,H] Taxa
PRINT   Taxa,T1,T2,T3,T4,T5; FIELD=6,5(4); DECIMALS=0
BKEY    [PRINT=*; TAXONNAMES=Taxa; CRITERION=cme; KEY=Ex1] T1,T2,T3,T4,T5
BPRINT  [PRINT=indented,bracketed,labelleddiagram,numbereddiagram] Ex1
Updated on March 8, 2019

Was this article helpful?