Skip to content

Commit

Permalink
Changed default to use joinAlernate. Seems to be working much better …
Browse files Browse the repository at this point in the history
…now that final states assignment issue was fixed
  • Loading branch information
wardwheeler committed Jul 4, 2023
1 parent 61da923 commit b21f8e9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pkg/PhyGraph/Search/GeneticAlgorithm.hs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ geneticAlgorithm inGS inData rSeed doElitist maxNetEdges keepNum popSize generat
recombineSwap = getRandomElement (seedList !! 4) [None, NNI, SPR] -- these take too long, "tbr", "alternate"]

-- options to join via union choices or all in fuse
joinType = getRandomElement (seedList !! 6) [JoinPruned, JoinAll ]
joinType = getRandomElement (seedList !! 6) [JoinAlternate, JoinAll ]

doSteepest = True
returnBest = False
Expand Down
2 changes: 1 addition & 1 deletion pkg/PhyGraph/Search/Refinement.hs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ fuseGraphs inArgs inGS inData rSeed inGraphList
joinType
| any ((=="joinall").fst) lcArgList = JoinAll
| any ((=="joinpruned").fst) lcArgList = JoinPruned
| otherwise = JoinAll
| otherwise = JoinAlternate

-- set implied alignment swapping
doIA' = any ((=="ia").fst) lcArgList
Expand Down
2 changes: 1 addition & 1 deletion pkg/PhyGraph/Search/SwapMaster.hs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ swapMaster inArgs inGS inData rSeed inGraphListInput =
| any ((=="joinall").fst) lcArgList = JoinAll
| any ((=="joinpruned").fst) lcArgList = JoinPruned
| any ((=="joinalternate").fst) lcArgList = JoinAlternate
| otherwise = JoinAll --others miss too much--need to refine unions
| otherwise = JoinAlternate


-- randomize split graph and rejoin edges, defualt to randomize
Expand Down
2 changes: 1 addition & 1 deletion pkg/PhyGraph/Utilities/Utilities.hs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ import qualified Utilities.LocalGraph as LG
-- assumes all indexing is the same between the simple and decorated graph
-- done recusively until no minLength == zero edges so edges renumbered properly
-- network edges, pendant edges and root edges, are not collapsed
-- this wierd thype is to allow for polymorphism in graph type--basiclly a general phylogenetic graph
-- this wierd thype is to allow for polymorphism in graph type--basically a general phylogenetic graph
collapseGraph :: GenPhyloGraph a b
-> GenPhyloGraph a b
collapseGraph inPhylograph@(inSimple, inC, inDecorated, inD, inE, inF) =
Expand Down
10 changes: 6 additions & 4 deletions testData/charWag.pg
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ set(seed:1666899539)

--set(dynamicEpsilon:0.0)

set(useIA:False)
--set(useIA:False)

-- For network testing
--set (outgroup:"one")
--set(graphtype:hardwired)
set(graphtype:softwired)
--set(graphtype:softwired)
--Set(Compressresolutions:True)
--set(graphFactor:NoPenalty)
--set(rootcost:ml)
Expand All @@ -49,9 +49,11 @@ build(replicates:10)

--set(multitraverse:false)

fuse(tbr)

--search(minutes:1)
--build(replicates:10)
refine(netadd, atrandom, maxnetedges:5)
--refine(netadd, atrandom, maxnetedges:5)
--fuse(tbr)
--swap()

Expand All @@ -64,7 +66,7 @@ refine(netadd, atrandom, maxnetedges:5)
select(best)
report("test0-data.csv", data, overwrite)
report("test0-crossrefs.csv", crossrefs, overwrite)
report("test0-serach.csv", search, overwrite)
report("test0-search.csv", search, overwrite)
--report("test0-wag.txt", overwrite, graphs, ascii)
report("test0-wag.dot", overwrite, graphs, dotpdf, nocollapse)
--report("test0-wag.tre", overwrite, graphs, newick, nohtulabels, nobraNCHLENGTHS, collapse)
Expand Down

0 comments on commit b21f8e9

Please sign in to comment.