source: trunk/GDE/PHYML20130708/phyml/src/io.h

Last change on this file was 10307, checked in by aboeckma, 11 years ago

added most recent version of phyml

File size: 3.7 KB
Line 
1/*
2
3PHYML :  a program that  computes maximum likelihood  phylogenies from
4DNA or AA homologous sequences
5
6Copyright (C) Stephane Guindon. Oct 2003 onward
7
8All parts of  the source except where indicated  are distributed under
9the GNU public licence.  See http://www.opensource.org for details.
10
11*/
12
13#include <config.h>
14
15#ifndef IO_H
16#define IO_H
17
18#include "utilities.h"
19
20t_tree *Read_Tree(char **s_tree);
21void R_rtree(char *s_tree_a,char *s_tree_d,t_node *a,t_tree *tree,int *n_int,int *n_ext);
22void Read_Branch_Label(char *s_d,char *s_a,t_edge *b);
23void Read_Branch_Length(char *s_d,char *s_a,t_tree *tree);
24void Read_Node_Name(t_node *d,char *s_tree_d,t_tree *tree);
25void Clean_Multifurcation(char **subtrees,int current_deg,int end_deg);
26char **Sub_Trees(char *tree,int *degree);
27int Next_Par(char *s,int pos);
28void Print_Tree(FILE *fp,t_tree *tree);
29char *Write_Tree(t_tree *tree,int custom);
30void R_wtree(t_node *pere,t_node *fils,int *available,char **s_tree,t_tree *tree);
31void R_wtree_Custom(t_node *pere,t_node *fils,int *available,char **s_tree,int *pos,t_tree *tree);
32void Detect_Align_File_Format(option *io);
33void Detect_Tree_File_Format(option *io);
34align **Get_Seq(option *io);
35void Get_Nexus_Data(FILE *fp,option *io);
36int Get_Token(FILE *fp,char *token);
37align **Get_Seq_Phylip(option *io);
38void Read_Ntax_Len_Phylip(FILE *fp,int *n_otu,int *n_tax);
39align **Read_Seq_Sequential(option *io);
40align **Read_Seq_Interleaved(option *io);
41int Read_One_Line_Seq(align ***data,int num_otu,FILE *in);
42t_tree *Read_Tree_File(option *io);
43char *Return_Tree_String_Phylip(FILE *fp_input_tree);
44t_tree *Read_Tree_File_Phylip(FILE *fp_input_tree);
45void Print_Site_Lk(t_tree *tree,FILE *fp);
46void Print_Seq(FILE *fp, align **data, int n_otu);
47void Print_CSeq(FILE *fp,int compressed,calign *cdata);
48void Print_CSeq_Select(FILE *fp,int compressed,calign *cdata,t_tree *tree);
49void Print_Dist(matrix *mat);
50void Print_Node(t_node *a,t_node *d,t_tree *tree);
51void Print_Model(t_mod *mod);
52void Print_Mat(matrix *mat);
53FILE *Openfile(char *filename,int mode);
54void Print_Fp_Out(FILE *fp_out,time_t t_beg,time_t t_end,t_tree *tree,option *io,int n_data_set,int num_tree, int add_citation);
55void Print_Fp_Out_Lines(FILE *fp_out,time_t t_beg,time_t t_end,t_tree *tree,option *io,int n_data_set);
56void Print_Freq(t_tree *tree);
57void Print_Settings(option *io);
58void Print_Banner(FILE *fp);
59void Print_Banner_Small(FILE *fp);
60void Print_Data_Set_Number(option *io,FILE *fp);
61void Print_Lk(t_tree *tree,char *string);
62void Print_Pars(t_tree *tree);
63void Print_Lk_And_Pars(t_tree *tree);
64void Read_Qmat(phydbl *daa,phydbl *pi,FILE *fp);
65void Print_Qmat_AA(phydbl *daa,phydbl *pi);
66void Print_Square_Matrix_Generic(int n,phydbl *mat);
67void Print_Diversity(FILE *fp,t_tree *tree);
68void Print_Diversity_Pre(t_node *a,t_node *d,t_edge *b,FILE *fp,t_tree *tree);
69t_tree *Read_User_Tree(calign *cdata,t_mod *mod,option *io);
70void Print_Time_Info(time_t t_beg,time_t t_end);
71void PhyML_Printf(char *format,...);
72void PhyML_Fprintf(FILE *fp,char *format,...);
73void Read_Clade_Priors(char *file_name,t_tree *tree);
74option *Get_Input(int argc,char **argv);
75void Print_Data_Structure(int final, FILE *fp, t_tree *root);
76int Set_Whichmodel(int select);
77void Print_Site(calign *cdata, int num, int n_otu, char *sep, int stepsize, FILE *fp);
78void PhyML_XML(char *xml_filename);
79void Check_Taxa_Sets(t_tree *mixt_tree);
80void Make_Ratematrice_From_XML_Node(xml_node *instance, option *io, t_mod *mod);
81void Make_Efrq_From_XML_Node(xml_node *instance, option *io, t_mod *mod);
82void Make_Topology_From_XML_Node(xml_node *instance, option *io, t_mod *mod);
83void Make_RAS_From_XML_Node(xml_node *parent, t_mod *mod);
84void Post_Process_Data(option *io);
85int *Return_Int(int in);
86
87#endif
Note: See TracBrowser for help on using the repository browser.