-
Notifications
You must be signed in to change notification settings - Fork 8
/
OutputDPResult.h
80 lines (64 loc) · 4.35 KB
/
OutputDPResult.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
*
* OutputDPResult.h
* Soap3(gpu)
*
* Copyright (C) 2011, HKU
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef _OUTPUTDPRESULT_H_
#define _OUTPUTDPRESULT_H_
#include "PEAlgnmt.h"
#include "CPUfunctions.h"
#include "BGS-IO.h"
#include "definitions.h"
#define MC_CeilDivide16(x) ((x+15)>>4)
// output a set of alignment results
// the alignments of the same pair of reads have to be together
// algnNum: the number of results in "algnResult"
void outputRead ( AlgnmtDPResult * algnResult, unsigned int algnNum, unsigned char * upkdQueries, char * upkdQueryNames,
unsigned int * upkdReadLengths, unsigned int maxReadLength, unsigned int accumReadNum, int outputFormat,
FILE * outputDPFile, samfile_t * samOutputDPFilePtr, Soap3Index * index, int peStrandLeftLeg, int peStrandRightLeg );
void outputRead2 ( AlgnmtDPResult * algnResult, unsigned int algnNum,
unsigned int * queries, unsigned int * readLengths, unsigned int * origReadIDs, char * upkdQueryNames, char * upkdQualities,
unsigned int maxReadLength, unsigned int accumReadNum, int outputFormat,
FILE * outputDPFile, samfile_t * samOutputDPFilePtr, Soap3Index * index, int peStrandLeftLeg, int peStrandRightLeg );
// output a set of deep DP alignment results
// the alignments of the same pair of reads have to be together
void outputDeepDPResult ( DeepDPAlignResult * algnResult, unsigned int algnNum, unsigned char * upkdQueries, char * upkdQueryNames,
unsigned int * upkdReadLengths, unsigned int maxReadLength, unsigned int accumReadNum, int outputFormat,
FILE * outputDPFile, samfile_t * samOutputDPFilePtr, HSP * hsp, int peStrandLeftLeg, int peStrandRightLeg );
void outputDeepDPResult2 ( DeepDPAlignResult * algnResult, unsigned int algnNum,
unsigned int * queries, unsigned int * readLengths, unsigned int * origReadIDs, char * upkdQueryNames, char * upkdQualities,
unsigned int maxReadLength, unsigned int accumReadNum, int outputFormat,
FILE * outputDPFile, samfile_t * samOutputDPFilePtr, Soap3Index * index, int peStrandLeftLeg, int peStrandRightLeg );
// output DP single-end alignment results
// the alignments of the same pair of reads have to be together
// algnNum: the number of results in "algnResult"
void outputDPSingleResult ( SingleAlgnmtResult * algnResult, unsigned int algnNum, unsigned char * upkdQueries, char * upkdQueryNames,
unsigned int * upkdReadLengths, unsigned int maxReadLength, unsigned int accumReadNum, int outputFormat,
FILE * outputDPFile, samfile_t * samOutputDPFilePtr, HSP * hsp );
void outputDPSingleResult2 ( SingleAlgnmtResult * algnResult, unsigned int algnNum,
unsigned int * queries, unsigned int * readLengths, unsigned int * origReadIDs, char * upkdQueryNames, char * upkdQualities,
unsigned int maxReadLength, unsigned int accumReadNum, int outputFormat,
FILE * outputDPFile, samfile_t * samOutputDPFilePtr, Soap3Index * index );
// output the single-end alignment results for the pair-end reads
void outputSingleResultForPairEnds ( AllHits * allHits,
unsigned int * queries, unsigned int * readLengths, unsigned int * origReadIDs, char * upkdQueryNames, char * upkdQualities,
unsigned int maxReadLength, unsigned int accumReadNum, int outputFormat,
samfile_t * samOutputDPFilePtr, Soap3Index * index );
#endif