1 /************************************************************
\r
2 * Copyright (C) 1998 Ian Holmes (ihh@sanger.ac.uk)
\r
3 * HMMER - Biological sequence analysis with profile HMMs
\r
4 * Copyright (C) 1992-1999 Washington University School of Medicine
\r
5 * All Rights Reserved
\r
7 * This source code is distributed under the terms of the
\r
8 * GNU General Public License. See the files COPYING and LICENSE
\r
10 ************************************************************/
\r
13 * Author: Ian Holmes (ihh@sanger.ac.uk, Jun 5 1998)
\r
14 * Derived from core_algorithms.c (SRE, Nov 11 1996)
\r
15 * Incorporated SRE, Sat Nov 6 09:07:02 1999
\r
17 * Functions for working with posterior probabilities,
\r
18 * including unfussed "backwards" and "optimal accuracy"
\r
22 #ifndef POSTPROB_INCLUDED
\r
23 #define POSTPROB_INCLUDED
\r
25 #include "structs.h"
\r
30 /* Extra algorithms to work with posterior probabilities.
\r
33 extern float P7OptimalAccuracy(char *dsq, int L, struct plan7_s *hmm,
\r
34 struct p7trace_s **ret_tr);
\r
36 extern float P7Backward(char *dsq, int L, struct plan7_s *hmm,
\r
37 struct dpmatrix_s **ret_mx);
\r
39 extern void P7EmitterPosterior(int L, struct plan7_s *hmm,
\r
40 struct dpmatrix_s *forward,
\r
41 struct dpmatrix_s *backward,
\r
42 struct dpmatrix_s *mx);
\r
44 extern float P7FillOptimalAccuracy(int L, int M,
\r
45 struct dpmatrix_s *posterior,
\r
46 struct dpmatrix_s *mx,
\r
47 struct p7trace_s **ret_tr);
\r
49 extern void P7OptimalAccuracyTrace(int L, int M,
\r
50 struct dpmatrix_s *posterior,
\r
51 struct dpmatrix_s *mx,
\r
52 struct p7trace_s **ret_tr);
\r