-
Notifications
You must be signed in to change notification settings - Fork 0
/
intersect.h
60 lines (51 loc) · 1.61 KB
/
intersect.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
// ******************************************************
// vcfCTools (c) 2011 Alistair Ward
// Marth Lab, Department of Biology, Boston College
// All rights reserved.
// ------------------------------------------------------
// Last modified: 18 February 2011
// ------------------------------------------------------
// Perform file intersections
// ******************************************************
#ifndef INTERSECT_H
#define INTERSECT_H
#include <cstdio>
#include <iostream>
#include <string>
#include <getopt.h>
#include <stdlib.h>
#include "bed.h"
#include "bedStructure.h"
#include "header.h"
#include "output.h"
#include "structures.h"
#include "tools.h"
#include "variant.h"
#include "vcf.h"
#include "vcfCTools_tool.h"
using namespace std;
//using namespace vcfCTools;
namespace vcfCTools {
class intersect {
public:
intersect(void);
~intersect(void);
void beyondInterval();
void checkReferenceSequences(variant&, variant&);
void intersectVcf(vcfHeader&, vcfHeader&, vcf&, variant&, vcf&, variant&, output&);
void intersectVcfBed(vcfHeader&, vcf&, variant&, bed&, bedStructure&, output&);
void iterateBedFile(bed&, bedStructure&);
void iterateVcfFile(vcfHeader&, vcf&, variant&, output&);
void nextReferenceSequence(vcf&, variant&, bed&, bedStructure&);
bool priorToInterval(intFlags&);
void setBooleanFlags(bool, bool, bool, bool, bool, bool);
bool withinInterval(intFlags&);
public:
bool iterateBed;
bool iterateVcf;
string currentReferenceSequence;
intFlags flags;
map<string, map<int, unsigned int> > distanceDist;
};
} // namespace vcfCTools
#endif