This file is indexed.

/usr/include/libphylo/computeSubstitutionCounts.h is in rate4site 3.0.0-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef ___COMPUTE_SUBSTITUTION_COUNTS
#define ___COMPUTE_SUBSTITUTION_COUNTS

#include "definitions.h"
#include "replacementModel.h"
#include "sequenceContainer.h"
#include "tree.h"
#include <map>

class multipleStochasticProcess;
class computeSubstitutionCounts{
public:
	explicit computeSubstitutionCounts(const sequenceContainer& sc, const tree& tr, multipleStochasticProcess* MultSpPtr, string& outDir, VVVdouble& LpostPerSpPerCat, const int simulationsIterNum=1000, const MDOUBLE probCutOffSum=0.5, bool isSilent=false);//DEBUG: Change simulationsIterNum back to 10000

	computeSubstitutionCounts(const computeSubstitutionCounts& other) {*this = other;}	
	computeSubstitutionCounts& operator=(const computeSubstitutionCounts &other);
	virtual ~computeSubstitutionCounts() {}
	void run();
	void computePosteriorOfChangeGivenTerminalsPerSpPerCat();

	void printProbExp();
	void printProbabilityPerPosPerBranch();
	void printProbExpPerPosPerBranch(MDOUBLE probCutOff =0.5,MDOUBLE countsCutOff= 0.2);
	void printExpectationPerBranch();

	void printTreesWithExpectationValuesAsBP(int from,int to);
	void printTreesWithProbabilityValuesAsBP(int from,int to);

	void printProbabilityPerPosPerBranch(int pos, VVVdouble& probChanges, ostream& out, ostream& outCount);
	void printExpectationPerBranch(VVVdouble& expectChanges, ostream& out);
	void printProbExpPerPosPerBranch(int pos, MDOUBLE probCutOff, MDOUBLE countCutOff, VVVdouble& probChanges, VVVdouble& expChanges, ostream& out, ostream& outCount);


	map<int,map<int,vector<double> > > get_expMap_father2son() {return _expMap_father2son;};
	map<int,map<int,vector<double> > > get_probMap_father2son() {return _probMap_father2son;};
	
	VVVVdouble getExpChanges(){return _expChanges_PosNodeXY;};		// expChanges_PosNodeXY[pos][nodeID][x][y]
	VVVVdouble getProbChanges(){return _probChanges_PosNodeXY;};	// probChangesForBranch[pos][nodeID][x][y]
	VVVVdouble getJointProb(){return _jointProb_PosNodeXY;};		// _jointProb_PosNodeXY[pos][nodeID][x][y]	


protected:
//members
	int _alphabetSize;
	const tree _tr;
	const sequenceContainer _sc;

	multipleStochasticProcess* _pMSp;  

	sequence* _refSeq; // the reference sequence
	string _outDir;
	bool _isSilent;
	int _simulationsIterNum;
	MDOUBLE _probCutOffSum;

	VVdouble _LpostPerCat; // the posterior probability for each position for each rate category
	VVVdouble _LpostPerSpPerCat; // _LpostPerSpPerCat[sp][rateCat][pos]


	map<int,map<int,vector<double> > > _expMap_father2son;

	map<int,map<int,vector<double> > > _probMap_father2son;

	//VVVVdouble _posteriorsGivenTerminals;	// posteriorsGivenTerminals[pos][nodeID][x][y]
	VVVVdouble _probChanges_PosNodeXY;		// probChanges_PosNodeXY[pos][nodeID][fatherState][sonState] - after simulations
	VVVVdouble _expChanges_PosNodeXY;		// expChanges_PosNodeXY[pos][nodeID][fatherState][sonState] - after simulations and postProb
	VVVVdouble _jointProb_PosNodeXY;		// probJoint_PosNodeXY[pos][nodeID][fatherState][sonState] - after computePosteriorOfChangeGivenTerminals

};

#endif