-
Notifications
You must be signed in to change notification settings - Fork 0
/
tool_intersect.h
70 lines (59 loc) · 1.56 KB
/
tool_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
61
62
63
64
65
66
67
68
69
70
// ******************************************************
// vcfCTools (c) 2011 Alistair Ward
// Marth Lab, Department of Biology, Boston College
// All rights reserved.
// ------------------------------------------------------
// Last modified: 18 February 2011
// ------------------------------------------------------
// Calculate the intersection of two vcf files, or a vcf
// file and a bed file.
// ******************************************************
#ifndef TOOL_INTERSECT_H
#define TOOL_INTERSECT_H
#include <cstdio>
#include <iostream>
#include <string>
#include <getopt.h>
#include <stdlib.h>
#include "bed.h"
#include "bedStructure.h"
#include "header.h"
#include "intersect.h"
#include "tools.h"
#include "variant.h"
#include "vcf.h"
#include "vcfCTools_tool.h"
using namespace std;
namespace vcfCTools {
class intersectTool : public AbstractTool {
public:
intersectTool(void);
~intersectTool(void);
int Help(void);
int Run(int argc, char* argv[]);
int parseCommandLine(int argc, char* argv[]);
private:
string commandLine;
string bedFile;
vector<string> vcfFiles;
string outputFile;
string currentReferenceSequence;
string writeFrom;
// Boolean flags.
bool allowMismatch;
bool distanceDistribution;
bool findCommon;
bool findUnion;
bool findUnique;
bool passFilters;
bool processComplex;
bool processIndels;
bool processMnps;
bool processRearrangements;
bool processSnps;
bool processSvs;
bool sitesOnly;
bool whollyWithin;
};
} // namespace vcfCTools
#endif