You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/TnfDistance.cpp
+86-8Lines changed: 86 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -77,9 +77,11 @@ class _TnfDistanceBaseOptions : public OptionsBaseInterface {
77
77
interDistanceFile(),
78
78
intraInterFile(),
79
79
clusterFile(),
80
+
includeIntraInterDataFile(false),
80
81
likelihoodBins(100),
81
82
windowSize(10000),
82
83
windowStep(1000),
84
+
maxSamples(MAX_I64),
83
85
clusterThresholdDistance(.175),
84
86
referenceFiles(),
85
87
distanceFormula(DistanceFormula::EUCLIDEAN) {}
@@ -95,6 +97,9 @@ class _TnfDistanceBaseOptions : public OptionsBaseInterface {
95
97
string &getIntraInterFile() {
96
98
return intraInterFile;
97
99
}
100
+
bool &getIncludeIntraInterDataFile() {
101
+
return includeIntraInterDataFile;
102
+
}
98
103
int &getLikelihoodBins() {
99
104
return likelihoodBins;
100
105
}
@@ -107,6 +112,9 @@ class _TnfDistanceBaseOptions : public OptionsBaseInterface {
107
112
int &getWindowStep() {
108
113
return windowStep;
109
114
}
115
+
long &getMaxSamples() {
116
+
return maxSamples;
117
+
}
110
118
float &getClusterThreshold() {
111
119
return clusterThresholdDistance;
112
120
}
@@ -139,12 +147,16 @@ class _TnfDistanceBaseOptions : public OptionsBaseInterface {
139
147
140
148
("intra-inter-file", po::value<string>()->default_value(intraInterFile), "output two discrete likelihood functions of intra vs inter-distances between all windows fasta between separate files. Assumes intra are calculated within a file and inter between files")
141
149
150
+
("include-intra-inter-data-file", po::value<bool>()->default_value(includeIntraInterDataFile), "if set then intra-inter-file.data will be created too (VERY LARGE) one per thread")
151
+
142
152
("likelihood-bins", po::value<int>()->default_value(likelihoodBins), "How many bins to create for the discrete likelihood functions")
143
153
144
154
("window-size", po::value<int>()->default_value(windowSize), "size of adjacent intra/inter-distance windows")
145
155
146
156
("window-step", po::value<int>()->default_value(windowStep), "step size of adjacent intra/inter-distance windows")
147
157
158
+
("max-samples", po::value<long>()->default_value(maxSamples), "maximum number of samples of intra and inter distances")
0 commit comments