Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MAGE_2020_Marker-Gene-Benchmarking
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BioCellGen-public
MAGE_2020_Marker-Gene-Benchmarking
Commits
d4682c47
Commit
d4682c47
authored
4 years ago
by
Jeffrey Pullin
Browse files
Options
Downloads
Patches
Plain Diff
Update Snakefile to work from cluster
parent
1a88fe8e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#5966
passed
4 years ago
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Snakefile
+4
-2
4 additions, 2 deletions
Snakefile
with
4 additions
and
2 deletions
Snakefile
+
4
−
2
View file @
d4682c47
...
...
@@ -19,8 +19,9 @@ configfile: "config.yaml"
R = config["R"]
# Setup the required simulation and method parameters.
shell("Rscript code/simulation-pars.R")
shell("Rscript code/method-pars.R")
# /dev/null is used to suppress the log files.
shell("{R} CMD BATCH code/simulation-pars.R /dev/null")
shell("{R} CMD BATCH code/method-pars.R /dev/null")
# Retrieve the simulations and method paramters from file.
sim_ids = json.loads(open(config["sim_ids_path"]).read())
...
...
@@ -51,6 +52,7 @@ rule run_method:
fun = lambda wc: config["code_folder"] + "run-" + wc.method_id.split('_')[0] + ".R"
output: res = config["results_folder"] + "{sim_id}-{method_id}.rds"
log: config["logs_folder"] + "run_method-{sim_id}-{method_id}.Rout"
resources: mem_mb=lambda wildcards, attempt: attempt * 2000
shell: '''{R} CMD BATCH --no-restore --no-save\
"--args sim={input.sim} fun={input.fun}\
meth_pars={input.method_pars} res={output.res}"\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment