modified: nfig1.py
[GalaxyCodeBases.git] / BGI / BASE / src / 2bwt / karlin.h
blobe4f9fe1a1ebfe1f6f5ed28e168bf47d06a0fbdae
1 /*
3 karlin.h
5 Copyright (C) 2014 The University of Hong Kong.
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either version 2
10 of the License, or (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 #ifndef _karlin_
24 #define _karlin_
27 wss:
28 The following definitions are added to remove dependency on blast.h
30 #include <stdint.h>
31 #define int4 int32_t
32 #define uint4 uint32_t
33 #define int8 int64_t
34 #define uint8 uint64_t
35 #define int2 int16_t
36 #define uint2 uint16_t
38 extern double BlastKarlin_lambda;
39 extern double BlastKarlin_K;
40 extern double BlastKarlin_H;
42 void BlastKarlinBlkCalc(double* scoreProbabilities, int4 min, int4 max);
44 int4 BlastComputeLengthAdjustment(double K,
45 double logK,
46 double alpha_d_lambda,
47 double beta,
48 int4 query_length,
49 uint4 db_length,
50 int4 db_num_seqs,
51 int4 *length_adjustment);
52 #endif