Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
VEBER Philippe
codepi
Commits
204e6466
Commit
204e6466
authored
Jul 12, 2018
by
Carine Rey
Browse files
plot mean and max for diffsel
parent
452d2794
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
lib/convergence_detection.ml
lib/convergence_detection.ml
+4
-4
lib/scripts/diffsel_analyze_result.py
lib/scripts/diffsel_analyze_result.py
+5
-4
lib/scripts/merge_det_results.py
lib/scripts/merge_det_results.py
+4
-2
No files found.
lib/convergence_detection.ml
View file @
204e6466
...
...
@@ -82,8 +82,8 @@ let plot_merge_results ~(res_by_tools:result list) ~tree ~faa ~tsv : svg workflo
let
opt
=
match
res
with
|
`Pcoc
_
->
"PCOC,PC,OC"
|
`Pcoc_gamma
_
->
"PCOC_gamma,PC_gamma,OC_gamma,"
|
`Diffsel
_
->
"Diffsel"
|
`Diffsel_bis
_
->
"Diffsel_bis"
|
`Diffsel
_
->
"Diffsel
_mean,Diffsel_max
"
|
`Diffsel_bis
_
->
"Diffsel_bis
_mean,Diffsel_bis_max
"
|
`Identical_LG
_
->
"Identical_LG08"
|
`Identical_WAG
_
->
"Identical_WAG01"
|
`Topological_LG
_
->
"Topological_LG08"
...
...
@@ -97,8 +97,8 @@ let plot_merge_results ~(res_by_tools:result list) ~tree ~faa ~tsv : svg workflo
let
opt
=
match
res
with
|
`Pcoc
_
->
"PCOC:0.99"
|
`Pcoc_gamma
_
->
"PCOC_gamma:0.99"
|
`Diffsel
_
->
"Diffsel:0.9"
|
`Diffsel_bis
_
->
"Diffsel_bis:0.9"
|
`Diffsel
_
->
"Diffsel
_mean:0.9,Diffsel_max
:0.9"
|
`Diffsel_bis
_
->
"Diffsel_bis
_mean:0.9,Diffsel_bis_max
:0.9"
|
`Identical_LG
_
->
"Identical_LG08:0.9"
|
`Identical_WAG
_
->
"Identical_WAG01:0.9"
|
`Topological_LG
_
->
"Topological_LG08:0.9"
...
...
lib/scripts/diffsel_analyze_result.py
View file @
204e6466
...
...
@@ -90,13 +90,14 @@ if rddata.shape[1] != 20:
exit
(
1
)
MESSAGE
(
"Computing maximum probability per site"
)
rddata2
=
2
*
abs
(
0.5
-
rddata
)
maxes
=
rddata2
.
mean
(
axis
=
1
)
df
=
rddata2
.
max
(
axis
=
1
).
to_frame
(
name
=
"Diffsel_max"
)
df
[
"Diffsel_mean"
]
=
rddata2
.
mean
(
axis
=
1
)
#===================================================================================================
print
(
step
(
"Writing result to file"
))
MESSAGE
(
"Output file is "
+
param
(
out
))
maxes
.
index
.
name
=
"Sites"
maxes
.
index
=
maxes
.
index
+
1
maxes
.
to_csv
(
out
,
sep
=
'
\t
'
,
header
=
[
"Diffsel"
]
)
df
.
index
.
name
=
"Sites"
df
.
index
=
df
.
index
+
1
df
.
to_csv
(
out
,
sep
=
'
\t
'
)
MESSAGE
(
"Done :)"
)
lib/scripts/merge_det_results.py
View file @
204e6466
...
...
@@ -97,8 +97,10 @@ if args.pcoc_gamma :
'OC'
:
'OC_gamma'
},
inplace
=
True
)
if
args
.
diffsel_bis
:
df_diffsel_bis
=
pd
.
read_csv
(
args
.
diffsel_bis
,
sep
=
"
\t
"
)
df_diffsel_bis
=
df_diffsel_bis
[[
'Sites'
,
'Diffsel'
]]
df_diffsel_bis
.
rename
(
columns
=
{
'Diffsel'
:
'Diffsel_bis'
},
inplace
=
True
)
df_diffsel_bis
=
df_diffsel_bis
[[
'Sites'
,
'Diffsel_mean'
,
'Diffsel_max'
]]
df_diffsel_bis
.
rename
(
columns
=
{
'Diffsel_mean'
:
'Diffsel_bis_mean'
,
'Diffsel_max'
:
'Diffsel_bis_max'
},
inplace
=
True
)
if
args
.
diffsel
:
...
...
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