SubcloneSeeker  1.0.0
Subclone deconvolution software framework
 All Classes Files Functions Variables Macros Pages
treemerge_p.h
Go to the documentation of this file.
1 
13 /*
14 The MIT License (MIT)
15 
16 Copyright (c) 2013 Yi Qiao
17 
18 Permission is hereby granted, free of charge, to any person obtaining a copy
19 of this software and associated documentation files (the "Software"), to deal
20 in the Software without restriction, including without limitation the rights
21 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
22 copies of the Software, and to permit persons to whom the Software is
23 furnished to do so, subject to the following conditions:
24 
25 all copies or substantial portions of the Software.
26 
27 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
30 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
32 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
33 THE SOFTWARE.
34 */
35 
36 #ifndef TREEMERGE_P_H
37 #define TREEMERGE_P_H
38 
39 #include "SomaticEvent.h"
40 #include "Subclone.h"
41 
45 #define BOUNDRY_RESOLUTION 20000000L
46 
47 using namespace SubcloneSeeker;
48 
58 SomaticEventPtr_vec nodeEventsList(Subclone * node);
59 
67 SomaticEventPtr_vec SomaticEventDifference(
68  const SomaticEventPtr_vec& master,
69  const SomaticEventPtr_vec& unwanted);
70 
78 bool eventSetContains(
79  const SomaticEventPtr_vec& v_container,
80  const SomaticEventPtr_vec& v_containee);
81 
89 bool resultSetComparator(const SomaticEventPtr_vec& v1, const SomaticEventPtr_vec &v2);
90 
100 SomaticEventPtr_vec checkPlacement(
101  Subclone *pnode,
102  SomaticEventPtr_vec somaticEvents,
103  bool * placeableOnSubtree,
104  int * cp = NULL);
105 
113 bool TreeMerge(Subclone *p, Subclone *q);
114 #endif
SomaticEventPtr_vec SomaticEventDifference(const SomaticEventPtr_vec &master, const SomaticEventPtr_vec &unwanted)
Definition: treemerge_p.cc:73
bool eventSetContains(const SomaticEventPtr_vec &v_container, const SomaticEventPtr_vec &v_containee)
Definition: treemerge_p.cc:93
bool resultSetComparator(const SomaticEventPtr_vec &v1, const SomaticEventPtr_vec &v2)
Definition: treemerge_p.cc:121
The class that represents a subclone in a subclonal structure tree.
Definition: Subclone.h:52
SomaticEventPtr_vec nodeEventsList(Subclone *node)
Definition: treemerge_p.cc:60
SomaticEventPtr_vec checkPlacement(Subclone *pnode, SomaticEventPtr_vec somaticEvents, bool *placeableOnSubtree, int *cp=NULL)
Definition: treemerge_p.cc:126
bool TreeMerge(Subclone *p, Subclone *q)
Definition: treemerge_p.cc:416