annotate mrfast-2.1.0.5/HashTable.h @ 1:d4054b05b015 default tip

Version update to 2.1.0.5
author calkan
date Fri, 09 Mar 2012 07:35:51 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
1 /*
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
2 * Copyright (c) <2008 - 2012>, University of Washington, Simon Fraser University
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
3 * All rights reserved.
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
4 *
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
5 * Redistribution and use in source and binary forms, with or without modification,
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
6 * are permitted provided that the following conditions are met:
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
7 *
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
8 * Redistributions of source code must retain the above copyright notice, this list
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
9 * of conditions and the following disclaimer.
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
10 * - Redistributions in binary form must reproduce the above copyright notice, this
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
11 * list of conditions and the following disclaimer in the documentation and/or other
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
12 * materials provided with the distribution.
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
13 * - Neither the names of the University of Washington, Simon Fraser University,
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
14 * nor the names of its contributors may be
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
15 * used to endorse or promote products derived from this software without specific
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
16 * prior written permission.
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
17 *
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
22 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
29 */
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
30
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
31 /*
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
32 Authors:
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
33 Farhad Hormozdiari
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
34 Faraz Hach
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
35 Can Alkan
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
36 Emails:
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
37 farhadh AT uw DOT edu
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
38 fhach AT cs DOT sfu DOT ca
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
39 calkan AT uw DOT edu
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
40 */
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
41
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
42
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
43
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
44 #ifndef __HASH_TABLE__
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
45 #define __HASH_TABLE__
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
46
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
47 typedef struct HashTable
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
48 {
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
49 long long hv;
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
50 int *locs;
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
51 } HashTable;
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
52
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
53 typedef struct
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
54 {
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
55 unsigned int *locs;
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
56 } IHashTable;
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
57
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
58 int hashVal(char *seq);
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
59 void configHashTable();
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
60 char *getRefGenome();
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
61 char *getRefGenomeName();
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
62 int getRefGenomeOffset();
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
63 int initLoadingHashTable(char *fileName);
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
64 HashTable *getHashTable();
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
65
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
66 void (*generateHashTable)(char *fileName, char *indexName);
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
67 int (*loadHashTable)(double *loadTime, int errThreshould);
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
68 void (*finalizeLoadingHashTable)();
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
69 unsigned int *(*getCandidates)(int hv);
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
70
d4054b05b015 Version update to 2.1.0.5
calkan
parents:
diff changeset
71 #endif