Commit 1be4db44 authored by qlobbe's avatar qlobbe

add a parameter in the config for finding the ancestors or not

parent be3a7fe0
Pipeline #1342 canceled with stage
......@@ -124,6 +124,7 @@ data Config =
, phyloLevel :: Int
, phyloProximity :: Proximity
, seaElevation :: SeaElevation
, findAncestors :: Bool
, phyloSynchrony :: Synchrony
, phyloQuality :: Quality
, timeUnit :: TimeUnit
......@@ -144,6 +145,7 @@ defaultConfig =
, phyloLevel = 2
, phyloProximity = WeightedLogJaccard 10
, seaElevation = Constante 0.1 0.1
, findAncestors = True
, phyloSynchrony = ByProximityThreshold 0.5 10 SiblingBranches MergeAllGroups
, phyloQuality = Quality 100 1
, timeUnit = Year 3 1 5
......
......@@ -59,7 +59,10 @@ toPhylo docs lst conf = trace ("# phylo1 groups " <> show(length $ getGroupsFrom
where
--------------------------------------
phyloAncestors :: Phylo
phyloAncestors = toHorizon phylo1
phyloAncestors =
if (findAncestors conf)
then toHorizon phylo1
else phylo1
--------------------------------------
phylo1 :: Phylo
phylo1 = toPhylo1 docs phyloBase
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment