File: clusterBed.h

package info (click to toggle)
bedtools 2.27.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 54,804 kB
  • sloc: cpp: 38,072; sh: 7,307; makefile: 2,241; python: 163
file content (47 lines) | stat: -rw-r--r-- 1,115 bytes parent folder | download | duplicates (3)
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
/*****************************************************************************
  clusterBed.h

  (c) 2009 - Aaron Quinlan
  Hall Laboratory
  Department of Biochemistry and Molecular Genetics
  University of Virginia
  aaronquinlan@gmail.com

  Licenced under the GNU General Public License 2.0 license.
******************************************************************************/
#include "bedFile.h"
#include <vector>
#include <algorithm>
#include <numeric>
#include <iostream>
#include <fstream>
#include <limits.h>
#include <stdlib.h>
#include <unistd.h>

using namespace std;


//************************************************
// Class methods and elements
//************************************************
class BedCluster {

public:

  // constructor
  BedCluster(string &bedFile, int maxDistance, bool forceStrand);
  // destructor
  ~BedCluster(void);
  // find clusters
  void ClusterBed();
  // find clusters based on strand
  void ClusterBedStranded();

private:
    string _bedFile;
    bool   _forceStrand;
    int    _maxDistance;
    // instance of a bed file class.
    BedFile *_bed;    
};