Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ESB
ONT_pilot_gitlab
Commits
c04449d4
Commit
c04449d4
authored
Mar 19, 2021
by
Valentina Galata
Browse files
figures/stats: print stats (for paper) when creating barrnap fig
parent
6b85949e
Changes
1
Hide whitespace changes
Inline
Side-by-side
workflow_figures/scripts/fig_barrnap.R
View file @
c04449d4
...
...
@@ -35,6 +35,24 @@ for(sname in names(snakemake@config$samples)){
TABS
[[
sname
]]
<-
proc_barrnap
(
read_barrnap
(
snakemake
@
input
[[
sname
]]))
# total counts per tool/kingdom/gene category
}
############################## STATS
print
(
"STATS: Number of complete genes: max vs min:"
)
for
(
sname
in
names
(
snakemake
@
config
$
samples
)){
for
(
kingdom_name
in
BARRNAP_KINGDOM_NAMES
){
tmp_counts
<-
TABS
[[
sname
]]
%>%
filter
(
partial
==
"complete"
,
kingdom
==
kingdom_name
)
print
(
tmp_counts
)
print
(
sprintf
(
"STATS: Sample %s: %s, %d / %d = %.2f"
,
sname
,
kingdom_name
,
max
(
tmp_counts
$
x
),
min
(
tmp_counts
$
x
),
max
(
tmp_counts
$
x
)
/
min
(
tmp_counts
$
x
)
))
}
}
############################## PLOT
# individual plots
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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