Skip to content

Commit bb79dca

Browse files
committed
testup
1 parent 3f17e41 commit bb79dca

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

test/network_analysis/network_properties.jl

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,10 @@ let
148148
@test length(slcs) == 3
149149
@test length(tslcs) == 2
150150
@test issubset([[1,2], [3,4,5], [6,7]], slcs)
151-
@test issubset([[3,4,5], [6,7]], tslcs)
151+
@test issubset([[3,4,5], [6,7]], tslcs)
152152
end
153153

154-
# b) Makes the D + E --> G reaction irreversible. Thus, (D+E) becomes a non-terminal linkage class. Checks whether correctly identifies both (A, B+C) and (D+E) as non-terminal
154+
# b) Makes the D + E --> G reaction irreversible. Thus, (D+E) becomes a non-terminal linkage class. Checks whether correctly identifies both (A, B+C) and (D+E) as non-terminal
155155
let
156156
rn = @reaction_network begin
157157
(k1, k2), A <--> B + C
@@ -168,10 +168,10 @@ let
168168
@test length(slcs) == 4
169169
@test length(tslcs) == 2
170170
@test issubset([[1,2], [3,4,5], [6], [7]], slcs)
171-
@test issubset([[3,4,5], [7]], tslcs)
171+
@test issubset([[3,4,5], [7]], tslcs)
172172
end
173173

174-
# From a), makes the B + C <--> D reaction reversible. Thus, the non-terminal (A, B+C) linkage class gets absorbed into the terminal (A, B+C, D, E, 2F) linkage class, and the terminal linkage classes and strong linkage classes coincide.
174+
# From a), makes the B + C <--> D reaction reversible. Thus, the non-terminal (A, B+C) linkage class gets absorbed into the terminal (A, B+C, D, E, 2F) linkage class, and the terminal linkage classes and strong linkage classes coincide.
175175
let
176176
rn = @reaction_network begin
177177
(k1, k2), A <--> B + C
@@ -188,13 +188,13 @@ let
188188
@test length(slcs) == 2
189189
@test length(tslcs) == 2
190190
@test issubset([[1,2,3,4,5], [6,7]], slcs)
191-
@test issubset([[1,2,3,4,5], [6,7]], tslcs)
191+
@test issubset([[1,2,3,4,5], [6,7]], tslcs)
192192
end
193193

194194
# Simple test for strong and terminal linkage classes
195195
let
196196
rn = @reaction_network begin
197-
(k1, k2), A <--> 2B
197+
(k1, k2), A <--> 2B
198198
k3, A --> C + D
199199
(k4, k5), C + D <--> E
200200
k6, 2B --> F
@@ -209,7 +209,7 @@ let
209209
@test length(slcs) == 3
210210
@test length(tslcs) == 2
211211
@test issubset([[1,2], [3,4], [5,6,7]], slcs)
212-
@test issubset([[3,4], [5,6,7]], tslcs)
212+
@test issubset([[3,4], [5,6,7]], tslcs)
213213
end
214214

215215
# Cycle Test: Open Reaction Network
@@ -261,7 +261,7 @@ let
261261
k2, C + D --> E + F
262262
k3, C + D --> 2G + H
263263
k4, 2G + H --> 3I
264-
k5, E + F --> J
264+
k5, E + F --> J
265265
k6, 3I --> K
266266
end
267267

@@ -273,7 +273,7 @@ end
273273

274274
### Other Network Properties Tests ###
275275

276-
# Tests outgoing complexes matrices (1).
276+
# Tests outgoing complexes matrices (1).
277277
# Checks using dense and sparse representation.
278278
let
279279
# Declares network.
@@ -283,7 +283,7 @@ let
283283
k3, X1 --> X2
284284
k4, X1 + X2 --> X2
285285
end
286-
286+
287287
# Compares to manually computed matrix.
288288
cmplx_out_mat = [
289289
-1 0 0 0 -1;
@@ -368,17 +368,17 @@ let
368368
MAPK.KKPP * MAPK.KKPase,
369369
MAPK.KKPP * MAPK.K,
370370
MAPK.KKPPK,
371-
MAPK.KKPP * MAPK.KP,
371+
MAPK.KKPP * MAPK.KP,
372372
MAPK.KPKKPP,
373373
MAPK.KPP * MAPK.KKPP,
374374
MAPK.KP * MAPK.KPase,
375-
MAPK.KPKPase,
376-
MAPK.KKPPKPase,
375+
MAPK.KPKPase,
376+
MAPK.KKPPKPase,
377377
MAPK.K * MAPK.KPase,
378378
MAPK.KPP * MAPK.KPase,
379379
]
380380
@test isequal(Φ, truevec)
381-
381+
382382
K = Catalyst.fluxmat(MAPK)
383383
# Construct flux matrix from incidence matrix
384384
mat = Matrix{Any}(zeros(30, 26))
@@ -391,12 +391,12 @@ let
391391
@test isequal(K, mat)
392392
@test isequal(K[1, 1], MAPK.k₁)
393393
@test all(==(0), K[1, 2:end])
394-
@test isequal(K[2, 2], MAPK.k₂)
394+
@test isequal(K[2, 2], MAPK.k₂)
395395
@test all(==(0), vcat(K[2,1], K[2,3:end]))
396396
@test isequal(K[3, 2], MAPK.k₃)
397397
@test all(==(0), vcat(K[3,1], K[3,3:end]))
398398
@test count(k -> !isequal(k, 0), K) == length(reactions(MAPK))
399-
399+
400400
A_k = Catalyst.laplacianmat(MAPK)
401401
@test all(col -> sum(col) == 0, eachcol(A_k))
402402

@@ -415,7 +415,7 @@ let
415415
ratetup = Tuple(ratevec)
416416

417417
@test Catalyst.fluxmat(MAPK, ratemap) == Catalyst.fluxmat(MAPK, ratevec) == Catalyst.fluxmat(MAPK, ratetup)
418-
418+
419419
K = Catalyst.fluxmat(MAPK, ratemap)
420420
A_k = Catalyst.laplacianmat(MAPK, ratemap)
421421
@test all(col -> sum(col) == 0, eachcol(A_k))
@@ -428,7 +428,7 @@ let
428428
@test all(iszero, simplify(numeqs - Y*A_k*Φ))
429429
end
430430

431-
# Test handling for weird complexes and combinatoric rate laws.
431+
# Test handling for weird complexes and combinatoric rate laws.
432432
let
433433
rn = @reaction_network begin
434434
k1, 2X + Y + 3Z -->

0 commit comments

Comments
 (0)