Skip to content

Commit

Permalink
Update default singularity image dir
Browse files Browse the repository at this point in the history
  • Loading branch information
dennishendriksen committed Sep 14, 2021
1 parent 6d32fda commit 987465f
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ config:
assembly allowed values: GRCh37, GRCh38 default: GRCh37
reference reference sequence file
cpu_cores number of CPU cores
singularity_image_dir directory where the singularity images are stored.
preprocess_* see 'bash pipeline_preprocess.sh --help' for usage.
annotate_* see 'bash pipeline_annotate.sh --help' for usage.
filter_* see 'bash pipeline_filter.sh --help' for usage.
Expand Down
1 change: 0 additions & 1 deletion config/default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ assembly=GRCh37
cpu_cores=4
preprocess_filter_low_qual=1
preprocess_filter_read_depth=20
singularity_image_dir=./singularity/sif/
annotate_phenotype_matching=hpo
annotate_vibe_hdt=/apps/data/VIBE/vibe-5.1.0-hdt/vibe-5.1.0.hdt
annotate_vibe_hpo=/apps/data/VIBE/hp_2020-12-07.owl
Expand Down
4 changes: 3 additions & 1 deletion pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ config:
assembly allowed values: GRCh37, GRCh38 default: GRCh37
reference reference sequence file (.fasta.gz, .fna.gz, .ffn.gz, .faa.gz or .frn.gz).
cpu_cores number of CPU cores
singularity_image_dir directory where the singularity images are stored
singularity_image_dir directory where the singularity images are stored.
preprocess_* see 'bash pipeline_preprocess.sh --help' for usage.
annotate_* see 'bash pipeline_annotate.sh --help' for usage.
filter_* see 'bash pipeline_filter.sh --help' for usage.
Expand Down Expand Up @@ -444,6 +444,8 @@ main() {

if [[ -n "${VIP_CFG_MAP["singularity_image_dir"]+unset}" ]]; then
singularityImageDir="${VIP_CFG_MAP["singularity_image_dir"]}"
else
singularityImageDir="${SCRIPT_DIR}/singularity/sif"
fi

if [[ -n "${VIP_CFG_MAP["cpu_cores"]+unset}" ]]; then
Expand Down
5 changes: 4 additions & 1 deletion pipeline_annotate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ config:
annotate_vep Variant Effect Predictor (VEP) options.
assembly see 'bash pipeline.sh --help' for usage.
reference see 'bash pipeline.sh --help' for usage.
cpu_cores see 'bash pipeline.sh --help' for usage."
cpu_cores see 'bash pipeline.sh --help' for usage.
singularity_image_dir see 'bash pipeline.sh --help' for usage."
}

get_unique_phenotypes() {
Expand Down Expand Up @@ -538,6 +539,8 @@ main() {

if [[ -n "${VIP_CFG_MAP["singularity_image_dir"]+unset}" ]]; then
singularityImageDir="${VIP_CFG_MAP["singularity_image_dir"]}"
else
singularityImageDir="${SCRIPT_DIR}/singularity/sif"
fi

if [[ -n "${VIP_CFG_MAP["assembly"]+unset}" ]]; then
Expand Down
5 changes: 4 additions & 1 deletion pipeline_filter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ config:
filter_tree decision tree file (.json) that applies classes 'F' and 'T'.
filter_annotate_labels annotate decision tree labels (0 or 1, default: 0).
filter_annotate_paths annotate decision tree paths (0 or 1, default: 0).
cpu_cores see 'bash pipeline.sh --help' for usage."
cpu_cores see 'bash pipeline.sh --help' for usage.
singularity_image_dir see 'bash pipeline.sh --help' for usage."
}


Expand Down Expand Up @@ -209,6 +210,8 @@ main() {

if [[ -n "${VIP_CFG_MAP["singularity_image_dir"]+unset}" ]]; then
singularityImageDir="${VIP_CFG_MAP["singularity_image_dir"]}"
else
singularityImageDir="${SCRIPT_DIR}/singularity/sif"
fi

if [[ -n "${VIP_CFG_MAP["cpu_cores"]+unset}" ]]; then
Expand Down
5 changes: 4 additions & 1 deletion pipeline_inheritance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ usage() {
-h, --help optional: Print this message and exit.
config:
cpu_cores see 'bash pipeline.sh --help' for usage."
cpu_cores see 'bash pipeline.sh --help' for usage.
singularity_image_dir see 'bash pipeline.sh --help' for usage."
}

# arguments:
Expand Down Expand Up @@ -224,6 +225,8 @@ main() {

if [[ -n "${VIP_CFG_MAP["singularity_image_dir"]+unset}" ]]; then
singularityImageDir="${VIP_CFG_MAP["singularity_image_dir"]}"
else
singularityImageDir="${SCRIPT_DIR}/singularity/sif"
fi

if [[ -n "${VIP_CFG_MAP["cpu_cores"]+unset}" ]]; then
Expand Down
5 changes: 4 additions & 1 deletion pipeline_preprocess.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ config:
preprocess_filter_low_qual filter low quality records using filter status and read depth.
preprocess_filter_read_depth filter read depth threshold (default: 20)
reference see 'bash pipeline.sh --help' for usage.
cpu_cores see 'bash pipeline.sh --help' for usage."
cpu_cores see 'bash pipeline.sh --help' for usage.
singularity_image_dir see 'bash pipeline.sh --help' for usage."
}

#######################################
Expand Down Expand Up @@ -358,6 +359,8 @@ main() {

if [[ -n "${VIP_CFG_MAP["singularity_image_dir"]+unset}" ]]; then
singularityImageDir="${VIP_CFG_MAP["singularity_image_dir"]}"
else
singularityImageDir="${SCRIPT_DIR}/singularity/sif"
fi

if [[ -n "${VIP_CFG_MAP["reference"]+unset}" ]]; then
Expand Down
2 changes: 2 additions & 0 deletions pipeline_report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,8 @@ main() {

if [[ -n "${VIP_CFG_MAP["singularity_image_dir"]+unset}" ]]; then
singularityImageDir="${VIP_CFG_MAP["singularity_image_dir"]}"
else
singularityImageDir="${SCRIPT_DIR}/singularity/sif"
fi

if [[ -n "${VIP_CFG_MAP["assembly"]+unset}" ]]; then
Expand Down

0 comments on commit 987465f

Please sign in to comment.