Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr-ressources
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
4
Merge Requests
4
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Learning Lab
mooc-rr-ressources
Commits
61052bec
Commit
61052bec
authored
Aug 29, 2019
by
Konrad Hinsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exécution d'un workflow (snakemake)
parent
d57a0340
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
415 additions
and
3 deletions
+415
-3
Snakefile
...ressources/incidence_syndrome_grippal_snakemake/Snakefile
+9
-0
incidence-plots.R
...ence_syndrome_grippal_snakemake/scripts/incidence-plots.R
+1
-2
snakemake_tutorial_fr.org
module6/ressources/snakemake_tutorial_fr.org
+405
-1
No files found.
module6/ressources/incidence_syndrome_grippal_snakemake/Snakefile
View file @
61052bec
...
...
@@ -37,3 +37,12 @@ rule histogram:
"data/annual-incidence-histogram.png"
script:
"scripts/annual-incidence-histogram.R"
rule all:
input:
"data/weekly-incidence.csv",
"data/preprocessed-weekly-incidence.csv",
"data/weekly-incidence-plot.png",
"data/weekly-incidence-plot-last-years.png",
"data/annual-incidence.csv",
"data/annual-incidence-histogram.png"
module6/ressources/incidence_syndrome_grippal_snakemake/scripts/incidence-plots.R
View file @
61052bec
# Read in the data and convert the dates
data
=
read.csv
(
snakemake
@
input
[[
1
]])
names
(
data
)
<-
c
(
"date"
,
"incidence"
)
data
$
date
<-
as.Date
(
data
$
date
)
data
$
week_starting
<-
as.Date
(
data
$
week_starting
)
# Plot the complete incidence dataset
png
(
filename
=
snakemake
@
output
[[
1
]])
...
...
module6/ressources/snakemake_tutorial_fr.org
View file @
61052bec
This diff is collapsed.
Click to expand it.
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