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
d57a0340
Commit
d57a0340
authored
Aug 28, 2019
by
Konrad Hinsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Traduction de l'analyse du syndrome grippal en snakemake
parent
6c3faccc
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
495 additions
and
3 deletions
+495
-3
Snakefile
...ressources/incidence_syndrome_grippal_snakemake/Snakefile
+1
-1
preprocess.py
...ncidence_syndrome_grippal_snakemake/scripts/preprocess.py
+1
-0
snakemake_tutorial_fr.org
module6/ressources/snakemake_tutorial_fr.org
+493
-2
No files found.
module6/ressources/incidence_syndrome_grippal_snakemake/Snakefile
View file @
d57a0340
...
@@ -9,7 +9,7 @@ rule preprocess:
...
@@ -9,7 +9,7 @@ rule preprocess:
"data/weekly-incidence.csv"
"data/weekly-incidence.csv"
output:
output:
data="data/preprocessed-weekly-incidence.csv",
data="data/preprocessed-weekly-incidence.csv",
errorlog="data/errors-from-preprocessing.
csv
"
errorlog="data/errors-from-preprocessing.
txt
"
script:
script:
"scripts/preprocess.py"
"scripts/preprocess.py"
...
...
module6/ressources/incidence_syndrome_grippal_snakemake/scripts/preprocess.py
View file @
d57a0340
...
@@ -64,5 +64,6 @@ with open(snakemake.output.errorlog, "a") as errorlog:
...
@@ -64,5 +64,6 @@ with open(snakemake.output.errorlog, "a") as errorlog:
# 2. the incidence estimate for that week
# 2. the incidence estimate for that week
with
open
(
snakemake
.
output
.
data
,
"w"
)
as
csvfile
:
with
open
(
snakemake
.
output
.
data
,
"w"
)
as
csvfile
:
csv_writer
=
csv
.
writer
(
csvfile
)
csv_writer
=
csv
.
writer
(
csvfile
)
csv_writer
.
writerow
([
"week_starting"
,
"incidence"
])
for
row
in
converted_data
:
for
row
in
converted_data
:
csv_writer
.
writerow
(
row
)
csv_writer
.
writerow
(
row
)
module6/ressources/snakemake_tutorial_fr.org
View file @
d57a0340
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