-
Notifications
You must be signed in to change notification settings - Fork 0
/
tool_annotate.h
67 lines (57 loc) · 1.51 KB
/
tool_annotate.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
// ******************************************************
// vcfCTools (c) 2011 Alistair Ward
// Marth Lab, Department of Biology, Boston College
// All rights reserved.
// ------------------------------------------------------
// Last modified: 18 February 2011
// ------------------------------------------------------
// Annotate a vcf file with dbsnp or hapmap membership.
// The input dbsnp or hapmap files need to be in vcf
// format.
// ******************************************************
#ifndef TOOL_ANNOTATE_H
#define TOOL_ANNOTATE_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"
#include <iostream>
#include <fstream>
#include <string>
#include <getopt.h>
using namespace std;
namespace vcfCTools {
class annotateTool : public AbstractTool {
public:
annotateTool(void);
~annotateTool(void);
int Help(void);
int Run(int argc, char* argv[]);
int parseCommandLine(int argc, char* argv[]);
private:
string commandLine;
string vcfFile;
string outputFile;
string annVcfFile;
string bedFile;
string currentReferenceSequence;
string newRecord;
// Boolean flags.
bool annotateDbsnp;
bool annotateVcf;
bool annotateBed;
bool processComplex;
bool processIndels;
bool processMnps;
bool processRearrangements;
bool processSnps;
bool processSvs;
bool sitesOnly;
bool whollyWithin;
};
} // namespace vcfCTools
#endif