Skip to content

Commit 628479e

Browse files
authored
Merge pull request #108 from netZoo/devel
Devel
2 parents c0fb8ec + e09d979 commit 628479e

File tree

3 files changed

+665
-664
lines changed

3 files changed

+665
-664
lines changed

netZooM/otter/otter.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
%
2121
% Outputs:
2222
% W : Predicted TF-gene complete regulatory network as an adjacency matrix of size (t,g).
23+
2324
%global parameters
2425
if nargin<4
2526
lambda = 0.0035;
@@ -40,9 +41,9 @@
4041
%initial transformation
4142
C = C/trace(C);
4243
P = P+2.2;
43-
P = P/trace(P);
4444
W = P*W;
4545
W = W/trace(W*W');
46+
P = P/trace(P);
4647

4748
[t, g] = size(W);
4849
m = zeros(t, g);

tests/testOtter.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ function testOtterSimple()
4444
W_test = csvread(filename);
4545

4646
% Compare the outputs
47-
tolMat =1e-6;
48-
deltaMat=max(max(abs(W-W_test)));
47+
tolMat =1e-10;
48+
deltaMat=max(max(abs(W_test - W)));
4949
assertTrue( deltaMat < tolMat );
5050

5151
end

0 commit comments

Comments
 (0)