SW#
 All Files Functions Variables Typedefs Macros
pre_proc.h
Go to the documentation of this file.
1 /*
2 swsharp - CUDA parallelized Smith Waterman with applying Hirschberg's and
3 Ukkonen's algorithm and dynamic cell pruning.
4 Copyright (C) 2013 Matija Korpar, contributor Mile Šikić
5 
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10 
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15 
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 
19 Contact the author by mkorpar@gmail.com.
20 */
27 #ifndef __SW_SHARP_PRE_PROCESH__
28 #define __SW_SHARP_PRE_PROCESH__
29 
30 #include "chain.h"
31 #include "scorer.h"
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
48 extern Chain* createChainComplement(Chain* chain);
49 
61 extern void readFastaChain(Chain** chain, const char* path);
62 
73 extern void readFastaChains(Chain*** chains, int* chainsLen, const char* path);
74 
89 extern void scorerCreateScalar(Scorer** scorer, int match, int mismatch,
90  int gapOpen, int gapExtend);
91 
106 extern void scorerCreateMatrix(Scorer** scorer, char* name, int gapOpen,
107  int gapExtend);
108 
109 #ifdef __cplusplus
110 }
111 #endif
112 #endif // __SW_SHARP_PRE_PROCESH__
Provides object used for alignment scoring.
void scorerCreateMatrix(Scorer **scorer, char *name, int gapOpen, int gapExtend)
Nonscalar scorer creation utility functions.
void scorerCreateScalar(Scorer **scorer, int match, int mismatch, int gapOpen, int gapExtend)
Scalar scorer creation utility functions.
void readFastaChain(Chain **chain, const char *path)
Fasta chain reading function.
struct Scorer Scorer
Scorer object used for alignment scoring.
Definition: scorer.h:42
Provides object for storing named sequnces.
Chain * createChainComplement(Chain *chain)
Creates chain complement.
void readFastaChains(Chain ***chains, int *chainsLen, const char *path)
Fasta chain reading function.
struct Chain Chain
Chain object used for storing named sequnces.
Definition: chain.h:43