Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Przemyslaw Kaminski
haskell-gargantext
Commits
0798f380
Commit
0798f380
authored
Mar 08, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FEAT] Phylo Backend Connected (for tests)
parent
8873a848
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
API.hs
src/Gargantext/Core/Viz/Phylo/API.hs
+2
-4
Tools.hs
src/Gargantext/Core/Viz/Phylo/API/Tools.hs
+1
-1
No files found.
src/Gargantext/Core/Viz/Phylo/API.hs
View file @
0798f380
...
@@ -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
...
...
src/Gargantext/Core/Viz/Phylo/API/Tools.hs
View file @
0798f380
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment