Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Blaise LI
bioinfo_utils
Commits
4a829491
Commit
4a829491
authored
Feb 05, 2020
by
Blaise Li
Browse files
Generate a rulegraph for each run.
parent
b8ffb7b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
run_pipeline.sh
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
...
...
singularity/run_pipeline.def
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
...
...
Write
Preview
Supports
Markdown
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