1 /* -*- mode: c; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
3 /*********************************************************************
4 * Clustal Omega - Multiple sequence alignment
6 * Copyright (C) 2010 University College Dublin
8 * Clustal-Omega is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of the
11 * License, or (at your option) any later version.
13 * This file is part of Clustal-Omega.
15 ********************************************************************/
18 * RCS $Id: clustal-omega.h 212 2011-03-10 15:09:46Z andreas $
31 #include "clustal-omega-config.h"
33 /* the following needs to be kept in sync with library_include_HEADERS of all
34 * subdir Makefile.am's
38 #include "hhalign/general.h"
39 #include "hhalign/hhfunc.h"
43 #include "clustal/log.h"
44 #include "clustal/util.h"
45 #include "clustal/symmatrix.h"
46 #include "clustal/tree.h"
47 #include "clustal/seq.h"
48 #include "clustal/mbed.h"
49 #include "clustal/weights.h"
50 #include "clustal/pair_dist.h"
51 #include "clustal/hhalign_wrapper.h"
55 #define CLUSTERING_UNKNOWN 0
56 #define CLUSTERING_UPGMA 1
58 /* weights will be computed if 1. but are not really used for now and they
59 * might slow things down. also, mbed's screws up branch lengths which will
60 * have a negative effect on weights
64 extern int iNumberOfThreads;
67 enum {INPUT_ORDER = 0, TREE_ORDER};
70 /** user/commandline options
72 * changes here will have to be reflected in ParseCommandLine()
73 * and during setup of the default opts
77 /* auto: Clustal (know what) is good for you
83 /** distance matrix input file */
84 char *pcDistmatInfile;
85 /** distance matrix output file */
86 char *pcDistmatOutfile;
88 /* Clustering / guide-tree
90 /** clustering type (from cmdline arg) */
92 /** number of sequences in cluster */
94 /** file with clustering information */
96 /** use transitivity */
98 /** file with posterior probability information */
99 char *pcPosteriorfile;
100 /** pairwise distance method */
102 /** use mbed-like clustering */
104 /** use mbed-like clustering also during iteration */
105 bool bUseMbedForIteration;
108 /** guidetree output file */
109 char *pcGuidetreeOutfile;
110 /** guidetree input file */
111 char *pcGuidetreeInfile;
112 /** use Kimura corrected distance */
114 /** print percentage identity */
119 /** HMM input files. index range: 0..iHMMInputFiles */
121 /** number of provided HMM input files. not really a user
122 option but need for ppcHMMInput */
124 /** HMM batch-file, specify HMMs for individual sequences. FS, r291 -> */
129 /** number of iterations */
131 /** determine number of iterations automatically */
132 bool bIterationsAuto;
133 /** maximum number of hmm iterations */
134 int iMaxHMMIterations;
135 /** max number of guidetree iterations */
136 int iMaxGuidetreeIterations;
138 hhalign_para rHhalignPara;
140 /* changes here will have to be reflected in FreeAlnOpts(),
141 * SetDefaultAlnOpts(), AlnOptsLogicCheck() etc
148 PrintLongVersion(char *pcStr, int iSize);
151 SetDefaultAlnOpts(opts_t *opts);
154 FreeAlnOpts(opts_t *aln_opts);
157 AlnOptsLogicCheck(opts_t *opts);
160 PrintAlnOpts(FILE *prFile, opts_t *opts);
163 InitClustalOmega(int iNumThreadsToUse);
166 SequentialAlignmentOrder(int **piOrderLR_p, int iNumSeq);
169 AlignmentOrder(int **piOrderLR_p, double **pdSeqWeights_p, mseq_t *prMSeq,
170 int iPairDistType, char *pcDistmatInfile, char *pcDistmatOutfile,
171 int iClusteringType, int iClustersizes,
172 char *pcGuidetreeInfile, char *pcGuidetreeOutfile, char *pcClusterFile,
173 bool bUseMBed, bool bPercID);
176 Align(mseq_t *prMSeq,
177 mseq_t *prMSeqProfile,
181 AlignProfiles(mseq_t *prMSeqProfile1,
182 mseq_t *prMSeqProfile2, hhalign_para rHhalignPara);
186 ReadPseudoCountParams(hhalign_para *rHhalignPara_p, char *pcPseudoFile);