-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsamples.h
46 lines (37 loc) · 990 Bytes
/
samples.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
// ******************************************************
// vcfCTools (c) 2011 Alistair Ward
// Marth Lab, Department of Biology, Boston College
// All rights reserved.
// ------------------------------------------------------
// Last modified: 18 February 2011
// ------------------------------------------------------
// Create a class to handle lists of samples.
// ******************************************************
#ifndef SAMPLES_H
#define SAMPLES_H
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <fstream>
#include <string>
#include <stdlib.h>
#include <map>
#include <vector>
#include "vcf.h"
using namespace std;
namespace vcfCTools {
class samples {
public:
samples(void);
~samples(void);
bool openSamplesFile(string&);
void getSamples(vcf&);
public:
string samplesFilename;
istream* input;
ifstream file;
unsigned int noSamples;
map<string, int> samplesMap;
};
} // namespace vcfCTools
#endif // SAMPLES_H