forked from wtsi-npg/simtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
b2g.h
75 lines (43 loc) · 1.17 KB
/
b2g.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
71
72
73
74
75
// b2g.h
//
// Matthew Gillman, WTSI, 13th October 2010.
//
// $Id: b2g.h 1331 2010-10-25 16:07:24Z mg10 $
//
// The b2g class is to convert BeadStudio Final Call Report files
// into files required for GenoSNP input.
//
#ifndef _B2G_H
#define _B2G_H
#include "b2base.h"
class b2g : public b2base {
public:
b2g () : b2base() {
XRaw = "X Raw";
YRaw = "Y Raw";
}
~b2g () {}
void process_command_line (int argc, char** argv,
string& manifest_file,
string& input,
string& listing,
string& snps,
string& data,
bool& wf);
void usage();
void initialise_colpos ();
bool check_file_integrity
( const char* const filename,
map < std::string, hash_map <std::string, std::string> > &readings,
map <std::string, int> &samples );
void process_input_file ( std::string input,
FILE* outFile );
void write_SNPs_file ( std::string& final );
FILE* create_samples_file ( string& tempname );
void write_line_to_samples_file ( FILE* outFile,
map<string, string>& mymap,
string& sampleID );
string XRaw, YRaw;
Manifest mf;
};
#endif // _B2G_H