Skip to content
Snippets Groups Projects
Commit 7df1a370 authored by Venkat Malladi's avatar Venkat Malladi
Browse files

Check if file exists and not empty.

parent f76f9efd
No related merge requests found
...@@ -11,8 +11,8 @@ profile_script="./workflow/scripts/plot_profile.sh" ...@@ -11,8 +11,8 @@ profile_script="./workflow/scripts/plot_profile.sh"
source ${profile_script} source ${profile_script}
run compute_matrix test_data/ENCSR238SGC_pooled.fc_signal.bw /project/shared/bicf_workflow_ref/mouse/GRCm38/gencode.vM20.annotation.gtf run compute_matrix test_data/ENCSR238SGC_pooled.fc_signal.bw /project/shared/bicf_workflow_ref/mouse/GRCm38/gencode.vM20.annotation.gtf
FILE=computeMatrix.gz FILE=computeMatrix.gz
if [[ -f "$FILE" ]]; then if [[ -s "$FILE" ]]; then
echo "$FILE exist" echo "$FILE exists and not empty"
fi fi
} }
...@@ -20,7 +20,7 @@ profile_script="./workflow/scripts/plot_profile.sh" ...@@ -20,7 +20,7 @@ profile_script="./workflow/scripts/plot_profile.sh"
source ${profile_script} source ${profile_script}
run plot_profile computeMatrix.gz run plot_profile computeMatrix.gz
FILE=plotProfile.png FILE=plotProfile.png
if [[ -f "$FILE" ]]; then if [[ -s "$FILE" ]]; then
echo "$FILE exist" echo "$FILE exists and not empty"
fi fi
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment