-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathoutput.h
28 lines (25 loc) · 1.68 KB
/
output.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
/*
* output.h
*
* Created on: Oct 12, 2015
* Author: jahnka
*/
#ifndef OUTPUT_H_
#define OUTPUT_H_
double binTreeRootScore(int** obsMutProfiles, int mut, int m, double ** logScores);
int getHighestOptPlacement(int** obsMutProfiles, int mut, int m, double ** logScores, bool** ancMatrix);
int* getHighestOptPlacementVector(int** obsMutProfiles, int n, int m, double ** logScores, bool** ancMatrix);
std::vector<std::string> getBinTreeNodeLabels(int nodeCount, int* optPlacements, int n, std::vector<std::string> geneNames);
int getLcaWithLabel(int node, int* parent, std::vector<std::string> label, int nodeCount);
std::string getGraphVizBinTree(int* parents, int nodeCount, int m, std::vector<std::string> label);
std::string getMutTreeGraphViz(std::vector<std::string> label, int nodeCount, int m, int* parent);
void writeToFile(std::string content, std::string fileName);
std::string getGraphVizFileContentNumbers(int* parents, int n);
std::string getGraphVizFileContentNames(int* parents, int n, std::vector<std::string> geneNames, bool attachSamples, bool** ancMatrix, int m, double** logScores, int** dataMatrix);
std::string getBestAttachmentString(bool ** ancMatrix, int n, int m, double** logScores, int** dataMatrix, std::vector<std::string> geneNames);
bool** attachmentPoints(bool ** ancMatrix, int n, int m, double** logScores, int** dataMatrix);
void printParentVectors(std::vector<bool**> optimalTrees, int n, int m, double** logScores, int** dataMatrix);
void printGraphVizFile(int* parents, int n);
void printSampleTrees(std::vector<int*> list, int n, std::string fileName);
void printScoreKimSimonTree(int n, int m, double** logScores, int** dataMatrix, char scoreType);
#endif /* OUTPUT_H_ */