-
Notifications
You must be signed in to change notification settings - Fork 0
/
condense_markers_into_bins.h
48 lines (44 loc) · 1.45 KB
/
condense_markers_into_bins.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
/*
* condense_markers_into_bins.h
* consensusmap
*
* Created by yonghui on 5/12/07.
* Copyright 2007 __MyCompanyName__. All rights reserved.
*
*/
#ifndef CONDENSE_MARKERS_INTO_BINS
#define CONDENSE_MARKERS_INTO_BINS
#include <vector>
#include <set>
#include <string>
#include <utility>
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <sstream>
#include <boost/regex.hpp>
#include <boost/graph/strong_components.hpp>
#include <boost/graph/graph_utility.hpp>
#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/johnson_all_pairs_shortest.hpp>
#include "constants.h"
#include <map>
#include <utility>
#include "single_population.h"
using namespace std;
using namespace boost;
namespace consensus_map
{
class linkage_group_bin;
class linkage_group_DAG;
// _in_p_to_array_lgs is a reference to an array of pointers to linkage_group_bin objects
// _out_p_to_array_lgs is the output lgs where the markers are condensed into supernodes
// The individual elements of the array is initialized inside the function,
// and should be deallocated by the caller of this function.
void consolidate_markers_into_bins(vector<const linkage_group_bin*>& _in_p_to_array_lgs,
int _in_number_of_lgs,
vector<linkage_group_bin*>& _out_p_to_array_lgs,
const linkage_group_DAG & lg_dag);
};
#endif