Repository navigation
Expand file tree
/
Copy pathmerge.h
More file actions
45 lines (40 loc) · 1.4 KB
/
Copy pathmerge.h
File metadata and controls
45 lines (40 loc) · 1.4 KB
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
#include <string>
#include <vector>
#include "signature.h"
#include <unordered_map>
#include "htslib/htslib/thread_pool.h"
struct AlignmentSigs
{
unsigned long long AlignmentID;
std::string TemplateName;
std::vector<std::vector<Signature>> TypeSignatures;
int BeginMost, EndMost;
std::vector<int> TypeBeginMost, TypeEndMost;
int HP;
AlignmentSigs(unsigned long long AlignmentID, const char *TempName="");
int getBeginMost();
int getEndMost();
operator std::string();
};
struct OmniBMergeArgs
{
std::unordered_map<pthread_t,std::vector<std::vector<Signature>>> * pTypeSignatures;
int Index;
std::vector<AlignmentSigs> * pAlignmentsSigs;
const int ** TypeSigIndexes;
const int ** TypeMaxEnds;
Arguments *pArgs;
};
void *omniBHandler(void * Args);
void divideASs(std::vector<AlignmentSigs> &ASs);
void omniBMerge(std::vector<std::vector<Signature>> * pTypeSignatures, int Index, std::vector<AlignmentSigs> * pAlignmentsSigs, const int **TypeSigIndexes, const int **TypeMaxEnds, Arguments *pArgs);
struct SimpleMergeArgs
{
std::unordered_map<pthread_t,std::vector<std::vector<Signature>>> * pTypeSignatures;
int Index;
std::vector<AlignmentSigs> * pAlignmentsSigs;
Arguments *pArgs;
bool Regional;
};
void *simpleMergeHandler(void * Args);
void simpleMerge(std::vector<std::vector<Signature>> * pTypeSignatures, int Index, std::vector<AlignmentSigs> * pAlignmentsSigs, Arguments *pArgs, bool Regional);