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
4a829491
Commit
4a829491
authored
5 years ago
by
Blaise Li
Browse files
Options
Downloads
Patches
Plain Diff
Generate a rulegraph for each run.
parent
b8ffb7b9
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
run_pipeline.sh
+1
-1
1 addition, 1 deletion
run_pipeline.sh
singularity/run_pipeline.def
+2
-0
2 additions, 0 deletions
singularity/run_pipeline.def
with
3 additions
and
1 deletion
run_pipeline.sh
+
1
−
1
View file @
4a829491
...
@@ -98,7 +98,7 @@ megabytes_resource=$(echo "${kilobytes_tot} / 1100" | bc)
...
@@ -98,7 +98,7 @@ 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
# TODO: check that this works
cmd
=
"(cd
${
output_dir
}
; snakemake -s
${
snakefile_base
}
--configfile
${
config_base
}
--resources mem_mb=
${
megabytes_resource
}
$@
)"
cmd
=
"(cd
${
output_dir
}
; snakemake -s
${
snakefile_base
}
--configfile
${
config_base
}
--rulegraph | dot -Tpdf > rulegraph.pdf; snakemake -s
${
snakefile_base
}
--configfile
${
config_base
}
--resources mem_mb=
${
megabytes_resource
}
$@
)"
echo
${
cmd
}
|
tee
-a
${
log_base
}
.log
echo
${
cmd
}
|
tee
-a
${
log_base
}
.log
# https://unix.stackexchange.com/a/245610/55127
# https://unix.stackexchange.com/a/245610/55127
...
...
This diff is collapsed.
Click to expand it.
singularity/run_pipeline.def
+
2
−
0
View file @
4a829491
...
@@ -36,6 +36,8 @@ From:python:3.7-buster
...
@@ -36,6 +36,8 @@ From:python:3.7-buster
apt-get -y update
apt-get -y update
# Useful for interactive work using the container
# Useful for interactive work using the container
apt-get -y install vim
apt-get -y install vim
# To be able to generate rule graphs of the workflows
apt-get -y install graphviz
# run_pipeline.sh (and maybe other tools) needs bc
# run_pipeline.sh (and maybe other tools) needs bc
apt-get -y install bc rsync
apt-get -y install bc rsync
apt-get -y install bedops bedtools bowtie2 cutadapt subread hisat2 parallel samtools
apt-get -y install bedops bedtools bowtie2 cutadapt subread hisat2 parallel samtools
...
...
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