source: tags/initial/GDE/MOLPHY/tridist.h

Last change on this file was 2, checked in by oldcode, 24 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1/*
2 * tridist.h   Adachi, J.   1995.09.22
3 * Copyright (C) 1993-1995 J. Adachi & M. Hasegawa, All rights reserved.
4 */
5
6#include "molphy.h"
7#include "matrixut.h"
8
9#define UPPERLIMIT 500.0   /* upper limit on branch length (subsutitutions) */
10#define LOWERLIMIT 0.001   /* lower limit on branch length (subsutitutions) */
11#define EPSILON    0.001
12#define MAXCOLUMN  80
13#define BUFLINE    512
14#define MAXOVER    50
15#define MAXLENG    30
16#define NMLNGTH    10 /* max. num. of characters in species name with S or I */
17#define SWITCHES   "Hhilm:o:St:T:uvwzZ"
18#define VERSION    "1.2.5"
19#define DATE       "Oct 30 1995"
20
21#define TREEFEXT   ".tre"
22#define EPSFILEEXT ".eps"
23#define TPLGYFEXT  ".tpl"
24#ifdef NJ
25#define TPLGYFILE  "njdist.tpl"
26#define EPSFILE    "njdist.eps"
27#else  /* NJ */
28#define TPLGYFILE  "tridist.tpl"
29#define EPSFILE    "tridist.eps"
30#endif /* NJ */
31
32typedef struct node {
33        struct node *isop;
34        struct node *kinp;
35        int descen;           /* descendants */
36        int num;
37        double length;
38} Node;
39
40typedef struct tree {
41        Node *rootp;
42        Node *firstp;
43        Node **brnchp;
44        double ablength;
45        double rssleast;
46        int npara;
47        imatrix paths;
48} Tree;
49
50#ifdef MAIN_MODULE
51#define EXTERN
52#else
53#define EXTERN extern
54#endif
55
56EXTERN FILE *Epsfp;
57EXTERN time_t Ct0;
58
59EXTERN boolean Upgma_optn;    /* u option UPGMA */
60EXTERN boolean Least_optn;    /* l option least squares */
61EXTERN boolean Outgr_optn;    /* o option */
62EXTERN boolean Tfile_optn;    /* T option  Tree file option */
63EXTERN boolean Tplgy_optn;    /* t option  topology file option */
64EXTERN boolean Seque_optn;    /* S option  PHYLIP Sequential input format */
65EXTERN boolean Verbs_optn;    /* v option  Verbose to stderr */
66EXTERN boolean Info_optn;     /* i option  get Information */
67EXTERN boolean Multi_optn;    /* m option  multiple data sets */
68EXTERN boolean Write_optn;    /* w option  output more infomation */
69EXTERN boolean Relia_optn;    /* R option  Reliability of a branch */
70EXTERN boolean Debug_optn;    /* z option  output debug data */
71EXTERN boolean Debug;         /* Z option  output more debug data */
72
73EXTERN char *Epsfile;
74EXTERN char *Prog_name;
75EXTERN char *Comment;
76EXTERN int Numspc;
77EXTERN int Numtree;
78EXTERN int Cnotree;
79EXTERN int Maxbrnch;
80EXTERN int Numbrnch;
81EXTERN int Numpair;
82EXTERN int Numexe;           /* number of executes */
83EXTERN int Cnoexe;           /* curent numbering of executes */
84EXTERN int Outgroup;
85EXTERN double Proportion;
86
87EXTERN Tree *Ctree;
88EXTERN char **Identif;
89EXTERN char **Sciname;
90EXTERN char **Engname;
91EXTERN dmatrix Distanmat;
92EXTERN dvector Distanvec;
93EXTERN dvector Lengths;
94EXTERN dmatrix Reliprob;
Note: See TracBrowser for help on using the repository browser.