Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ESB
ONT_pilot_gitlab
Commits
7e5f3c1c
Commit
7e5f3c1c
authored
Mar 19, 2021
by
Valentina Galata
Browse files
figures/stats: print stats (for paper) when ceating prodigal fig
parent
3ace90aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
workflow_figures/scripts/fig_prodigal.R
View file @
7e5f3c1c
...
@@ -35,6 +35,21 @@ for(sname in names(snakemake@config$samples)){
...
@@ -35,6 +35,21 @@ for(sname in names(snakemake@config$samples)){
TABS
[[
sname
]]
<-
read_prodigal_gcounts
(
snakemake
@
input
[[
sname
]])
TABS
[[
sname
]]
<-
read_prodigal_gcounts
(
snakemake
@
input
[[
sname
]])
}
}
############################## STATS
print
(
"STATS: Number of total proteins: max vs min:"
)
for
(
sname
in
names
(
snakemake
@
config
$
samples
)){
print
(
sprintf
(
"STATS: Sample %s: %s vs %s = %d / %d = %.2f"
,
sname
,
TABS
[[
sname
]]
$
tool
[
which.max
(
TABS
[[
sname
]]
$
total
)],
TABS
[[
sname
]]
$
tool
[
which.min
(
TABS
[[
sname
]]
$
total
)],
max
(
TABS
[[
sname
]]
$
total
),
min
(
TABS
[[
sname
]]
$
total
),
max
(
TABS
[[
sname
]]
$
total
)
/
min
(
TABS
[[
sname
]]
$
total
)
))
}
############################## PLOT
############################## PLOT
# individual plots
# individual plots
...
...
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