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
Open sidebar
VEBER Philippe
codepi
Commits
ca7b4eaa
Commit
ca7b4eaa
authored
Jul 20, 2018
by
Carine Rey
Browse files
typoq
parent
0e8ab97f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
lib/scripts/plot_hyp_simu_validation.R
lib/scripts/plot_hyp_simu_validation.R
+1
-1
lib/scripts/plot_sens_spe_all_trees.R
lib/scripts/plot_sens_spe_all_trees.R
+3
-3
No files found.
lib/scripts/plot_hyp_simu_validation.R
View file @
ca7b4eaa
...
...
@@ -79,7 +79,7 @@ plotD = plotD + facet_grid(hyp ~ tree)
alpha
=
0.7
x_labs
=
" # of AA in NonConvLeaves"
y_labs
=
"# of sites"
plotE
=
ggplot
(
df
,
aes
(
x
=
Nb
n
onConvAA
,
fill
=
hyp
))
+
theme_bw
()
+
labs
(
x
=
x_labs
,
y
=
y_labs
)
plotE
=
ggplot
(
df
,
aes
(
x
=
Nb
N
onConvAA
,
fill
=
hyp
))
+
theme_bw
()
+
labs
(
x
=
x_labs
,
y
=
y_labs
)
plotE
=
plotE
+
geom_histogram
(
binwidth
=
0.05
)
plotE
=
plotE
+
facet_grid
(
hyp
~
tree
)
...
...
lib/scripts/plot_sens_spe_all_trees.R
View file @
ca7b4eaa
...
...
@@ -140,11 +140,11 @@ df = do.call(rbind, apply(files_df_ok, 1, read_dir))
rownames
(
df
)
<-
NULL
hyps_from
=
unique
(
df
$
hyp
)
hyps_to
=
rep
(
"Specificity"
,
length
(
hyps
))
hyps_to
=
rep
(
"Specificity"
,
length
(
hyps
_from
))
hyps_to
[
grep
(
"Ha"
,
hyps_from
)]
=
"Sensitivity"
df
$
variable
=
mapvalues
(
df
$
hyp
,
from
=
hyps_from
,
to
=
hyps_to
)
df
$
variable
=
mapvalues
(
df
$
hyp
,
from
=
hyps_from
,
to
=
hyps_to
)
df
$
P
[
df
$
variable
==
"Specificity"
]
=
1
-
df
$
P
[
df
$
variable
==
"Specificity"
]
...
...
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