Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bioinfo_utils
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
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
Blaise LI
bioinfo_utils
Commits
bd865854
Commit
bd865854
authored
5 years ago
by
Blaise Li
Browse files
Options
Downloads
Patches
Plain Diff
Save snakefile in the analysis folder.
parent
b2955080
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
run_pipeline.sh
+7
-1
7 additions, 1 deletion
run_pipeline.sh
with
9 additions
and
1 deletion
.gitignore
+
2
−
0
View file @
bd865854
.RData
.Rhistory
*~
*\.wrapper\.py
This diff is collapsed.
Click to expand it.
run_pipeline.sh
+
7
−
1
View file @
bd865854
...
...
@@ -82,6 +82,10 @@ config_base=$(basename ${configfile})
config_snapshot
=
"
${
output_dir
}
/
${
config_base
}
"
echo
"Saving a local copy of the configuration in
${
config_snapshot
}
"
cp
-f
${
configfile
}
${
config_snapshot
}
snakefile_base
=
$(
basename
${
snakefile
}
)
snakefile_snapshot
=
"
${
output_dir
}
/
${
snakefile_base
}
"
echo
"Saving a local copy of the snakefile in
${
snakefile_snapshot
}
"
cp
-f
${
snakefile
}
${
snakefile_snapshot
}
kilobytes_tot
=
$(
mawk
'$1 == "MemTotal:" {print $2}'
/proc/meminfo
)
# Some rules were given a "mem_mb" resource section based on the "max_vms" benchmarking result.
...
...
@@ -91,7 +95,9 @@ kilobytes_tot=$(mawk '$1 == "MemTotal:" {print $2}' /proc/meminfo)
# to avoid pretending that we have all this memory available for snakemake rules.
megabytes_resource
=
$(
echo
"
${
kilobytes_tot
}
/ 1100"
| bc
)
cmd
=
"(cd
${
output_dir
}
; snakemake -s
${
snakefile
}
--configfile
${
config_base
}
--resources mem_mb=
${
megabytes_resource
}
$@
)"
#cmd="(cd ${output_dir}; snakemake -s ${snakefile} --configfile ${config_base} --resources mem_mb=${megabytes_resource} $@)"
# TODO: check that this works
cmd
=
"(cd
${
output_dir
}
; snakemake -s
${
snakefile_base
}
--configfile
${
config_base
}
--resources mem_mb=
${
megabytes_resource
}
$@
)"
echo
${
cmd
}
>
${
log_base
}
.log
# https://unix.stackexchange.com/a/245610/55127
...
...
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