-
Notifications
You must be signed in to change notification settings - Fork 7
/
PEDIndividualsExtractor.h
61 lines (45 loc) · 1.79 KB
/
PEDIndividualsExtractor.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
#ifndef PEDIndividualsExtractor_H
#define PEDIndividualsExtractor_H
#include "BasicDefinitions.h"
#include "NucleotideMap.h"
#include "PolymorphicIndividualsExtractor.h"
#include <string>
using namespace std;
class PEDIndividualsExtractor : public PolymorphicIndividualsExtractor
{
public:
// PEDIndividualsExtractor(): default constructor
// Precondition: None.
// Postcondition: three input files have been obtained from user
PEDIndividualsExtractor();
// getInput(): gets input from .haps file
// Precondition: Input is a .ped file in a valid format
// Postcondition: inds points to individuals from .ped file
void getInput(string map, string ped);
void loadInput();
void getCompleteMarkerSet(Individual * p);
void getCompleteMarkerSet(Individual * p0 , Individual * p1 );
//////////////////////////////////////////////////////////////////////////////////
void loadCompleteMarkerSet(Individual ** p);
void updateMarkerSet(Individual * p,unsigned int start,unsigned int end);
void appendMarkerSet(Individual * p,unsigned int, int );
private:
// getIndividuals(FamilyType ft): runs specific Individuals parser based on ft
// Precondition: "ft" is set to a valid FamilyType (matches file input)
// Postcondition: correct get method is run for family type
//void getIndividuals();
void stripWhitespace();
void readMarkerSet( MarkerSet ** );
// file name for input file
string ped_file;
// file name for info file
string map_file;
ifstream stream;
// holds map of nucleotides to binary/quad values
NucleotideMap inp;
///////////////////////////////////////////////////////////////////////////////////
void loadIndividuals();
void loadMarkerSet( MarkerSet ** );
};
#endif
// end PEDIndividualsExtractor.h