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
{{ message }}
This repository was archived by the owner on Apr 30, 2025. It is now read-only.
<divclass="sourceCode"><preclass="sourceCode r"><codeclass="sourceCode r"><spanclass="co"># Calculate graphlet orbit degree distributions up to 4 nodes for all graphs </span>
87
-
<spanclass="co"># This only needs to be done once per graph</span>
<divclass="sourceCode"><preclass="sourceCode r"><codeclass="sourceCode r"><spanclass="co"># Calculate graphlet orbit degree distributions for graphlets comprising up to </span>
87
+
<spanclass="co"># 4 nodes for all graphs This only needs to be done once per graph. </span>
88
+
<spanclass="co"># If type is set to "node5", graphlet orbit degree distributions will be </span>
89
+
<spanclass="co"># calculated for graphlets comprising up to 5 nodes</span>
@@ -96,12 +98,25 @@ <h2>Virus PPI example (from sample data)</h2>
96
98
## 3 EBV-1.txt KSHV-1.txt 1 4
97
99
## 4 EBV-1.txt VZV-1.txt 1 5
98
100
## 5 ECL-1.txt HSV-1-1.txt 2 3</code></pre>
99
-
<divclass="sourceCode"><preclass="sourceCode r"><codeclass="sourceCode r"><spanclass="co"># Compute NetEMD between all virus PPI graphs based on all graphlet orbir</span>
100
-
<spanclass="co"># degree distributions up to 4 nodes</span>
101
+
<divclass="sourceCode"><preclass="sourceCode r"><codeclass="sourceCode r"><spanclass="co"># Compute NetEMD between all virus PPI graphs based on the computed graphlet </span>
102
+
<spanclass="co"># orbit degree distributions, using the fast "optimise" method (default). This</span>
103
+
<spanclass="co"># method uses the built-in R optimise method to efficiently find the offset</span>
104
+
<spanclass="co"># with the minimum EMD, but is not guaranteed to find the global minimum if</span>
105
+
<spanclass="co"># EMD as a function of offset is multimodal.</span>
<divclass="sourceCode"><preclass="sourceCode r"><codeclass="sourceCode r"><spanclass="co"># You can also specify method = "fixed_step" to use the much slower method of </span>
114
+
<spanclass="co"># exhaustively evaluating the EMD at all offsets separated by a fixed step. </span>
115
+
<spanclass="co"># The default step size is 1/2 the the minimum spacing between locations in </span>
116
+
<spanclass="co"># either histogram after normalising to unit variance. However, you can </span>
117
+
<spanclass="co"># specifiy your own fixed step using the optional "step_size" parameter.</span>
118
+
<spanclass="co"># Note that this step size is applied to the histograms after they have been </span>
119
+
<spanclass="co"># normalised to unit variance</span>
105
120
106
121
<spanclass="co"># Link NetEMDs with their respective comp_specs</span>
0 commit comments