Commit 0798f380 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FEAT] Phylo Backend Connected (for tests)

parent 8873a848
...@@ -98,14 +98,12 @@ getPhylo phyloId _lId _level _minSizeBranch = do ...@@ -98,14 +98,12 @@ getPhylo phyloId _lId _level _minSizeBranch = do
getPhyloDataJson :: PhyloId -> GargNoServer Value getPhyloDataJson :: PhyloId -> GargNoServer Value
getPhyloDataJson phyloId = do getPhyloDataJson phyloId = do
maybePhyloData <- getPhyloData phyloId phyloData <- fromMaybe phyloExample <$> getPhyloData phyloId
let phyloData = fromMaybe phyloExample maybePhyloData
phyloJson <- liftBase $ phylo2dot2json phyloData phyloJson <- liftBase $ phylo2dot2json phyloData
pure phyloJson pure phyloJson
-- getPhyloDataSVG phId _lId l msb = do
-- getPhylo phId _lId l msb = do
-- let -- let
-- level = fromMaybe 2 l -- level = fromMaybe 2 l
-- branc = fromMaybe 2 msb -- branc = fromMaybe 2 msb
......
...@@ -75,7 +75,7 @@ phylo2dot2json phylo = do ...@@ -75,7 +75,7 @@ phylo2dot2json phylo = do
_ <- Shell.callProcess "dot" ["-Txdot_json", "-o", file_to_json, file_dot] _ <- Shell.callProcess "dot" ["-Txdot_json", "-o", file_to_json, file_dot]
maybeValue <- decodeFileStrict file_to_json maybeValue <- decodeFileStrict file_to_json
print maybeValue
_ <- Shell.callProcess "/bin/rm" ["-rf", file_from, file_to_json, file_dot] _ <- Shell.callProcess "/bin/rm" ["-rf", file_from, file_to_json, file_dot]
case maybeValue of case maybeValue of
......
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