-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
57 lines (37 loc) · 1.34 KB
/
README
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
*** Use main.py to interact with the program
Comparison of taxonomic trees induced by group of samples.
**** Algorithm to get the most different pairs of (groups of) patients:
- Choose a metadatum such as its values can induce a partition of the set of samples
(Or only select groups of samples by their names)
- Construct the complete graph of these trees where edges are weighted by a certain comparison function (Zhang-Shasha's algorithm, total ratio of nodes, ...)
- Apply Kruskal's algorithm on this graph to obtain the minimal covering tree
- Store distances in a matrix and select the pairs of groups de patients that are the most different (which distance is superior to the third quartile of the distances)
(Default distance is LCA-path-length difference)
**** Files:
- actions.py
- comparisonFunctions.py
Implementation of comparison functions.
- distanceFunctions.py
Implementation of distance functions.
- /files
Storing results.
- graph.py
Implementation of graph (of the trees).
- kruskal.py
Implementation of Kruskal's algorithm.
- main.py
Interface with the user.
- /meta
Contains metadata.
- misc.py
Useful functions.
- parsingInfo.py
Parses the data matrix.
- parsingMatrix.py
Parses the occurrence matrix.
- parsingTree.py
Parses the taxonomic tree.
- taxoTree.py
Implementation of the taxonomic tree.
- writeOnFiles.py
Self-explanatory.