Skip to content

Commit 062e122

Browse files
authored
Merge pull request #58 from neherlab/fix/marginalize
fix: marginalize variable name
2 parents 54c5019 + b312fd0 commit 062e122

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# PanGraph Changelog
22

3+
## v0.7.1
4+
5+
- minor fix for multi-threaded marginalize, see [#58](https://github.com/neherlab/pangraph/pull/58).
6+
37
## v0.7.0
48

59
- fasta input files are checked for duplicated records, and white lines between records are tolerated, see [#55](https://github.com/neherlab/pangraph/pull/55).

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PanGraph"
22
uuid = "0f9f61ca-f32c-45e1-b3bc-00138f4f8814"
33
authors = ["Nicholas Noll <[email protected]>"]
4-
version = "0.7.0"
4+
version = "0.7.1"
55

66
[deps]
77
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"

src/marginalize.jl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,27 +70,27 @@ Marginalize = Command(
7070
pairs = [(n₁, n₂) for n₁ in names for n₂ in names if n₁ < n₂]
7171

7272
Threads.@threads for (name₁, name₂) in pairs
73-
G = Graphs.copy_graph(graph)
74-
Graphs.keeponly!(G, name₁, name₂)
73+
Γ = Graphs.copy_graph(graph)
74+
Graphs.keeponly!(Γ, name₁, name₂)
7575
if reduce
7676
changed = true
7777
while changed
78-
l = length(G.block)
79-
Graphs.deparalog!(G)
80-
Graphs.detransitive!(G)
81-
changed = l != length(G.block)
78+
l = length(Γ.block)
79+
Graphs.deparalog!(Γ)
80+
Graphs.detransitive!(Γ)
81+
changed = l != length(Γ.block)
8282
end
8383
else
84-
Graphs.detransitive!(G)
84+
Graphs.detransitive!(Γ)
8585
end
8686

8787
# recompute positions
88-
Graphs.finalize!(G)
88+
Graphs.finalize!(Γ)
8989

90-
test_flag && verify(graph, G)
90+
test_flag && verify(graph, Γ)
9191

9292
open("$(output)/$(name₁)-$(name₂).json", "w") do io
93-
marshal(io, G; fmt = :json)
93+
marshal(io, Γ; fmt = :json)
9494
end
9595
end
9696
end

0 commit comments

Comments
 (0)