-
Notifications
You must be signed in to change notification settings - Fork 25
/
s-subpop.h
35 lines (28 loc) · 921 Bytes
/
s-subpop.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
/* RFMIX v2.XX - Local Ancestry and Admixture Analysis
Bustamante Lab - Stanford School of Medicine
(c) 2016 Mark Hamilton Wright
This program is licensed for academic research use only
unless otherwise stated. Contact [email protected] for
commercial licensing options.
Academic and research users should cite Brian Maples'
paper describing RFMIX in any publication using RFMIX
results. Citation is printed when the program is started. */
#ifndef S_SUBPOP_H
#define S_SUBPOP_H
#include "hash-table.h"
class Subpop {
public:
Subpop(char *name);
~Subpop(void);
void add_sample(char *sample_name);
char *subpop_name;
int idx;
static int n_subpops;
static Subpop *lookup_sample_subpop(char *sample_name);
static Subpop *lookup_subpop(char *subpop_name);
static void set_ordering(void);
private:
static HashTable *subpop_map;
static HashTable *sample_map;
};
#endif