-
Notifications
You must be signed in to change notification settings - Fork 0
/
bed.h
65 lines (54 loc) · 1.32 KB
/
bed.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
// ******************************************************
// vcfCTools (c) 2011 Alistair Ward
// Marth Lab, Department of Biology, Boston College
// All rights reserved.
// ------------------------------------------------------
// Last modified: 18 February 2011
// ------------------------------------------------------
// Define the bed class with all associated operations.
// ******************************************************
#ifndef BED_H
#define BED_H
#include "split.h"
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <fstream>
#include <string>
#include <stdlib.h>
#include <map>
using namespace std;
namespace vcfCTools {
struct bedRecord {
string referenceSequence;
int start;
int end;
string info;
};
class bed {
public:
bed(void);
~bed(void);
public:
void closeBed();
bool getRecord();
bool openBed(string&);
void parseHeader(string&);
public:
istream* input;
ifstream file;
string bedFilename;
// variant information
bool success;
string record;
string referenceSequence;
vector<string> referenceSequenceVector;
map<string, bool> referenceSequences;
unsigned int numberTargets;
unsigned int targetLength;
unsigned int targetVariance;
bedRecord bRecord;
bool fromHeader;
};
} // namespace vcfCTools
#endif // BED_H