Skip to content

Commit cf74a2e

Browse files
committed
skip empty outputs
1 parent 081eb56 commit cf74a2e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/sv_shell/cnmops.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ function CNSampleNormalArm() {
6262
elif [ ! $RC -eq 0 ]; then
6363
echo "cnMOPS_workflow.sh returned a non-zero code that was not due to an empty call file."
6464
exit $RC
65+
elif [ ! -f calls/cnMOPS.cnMOPS.gff ]; then
66+
echo "cnMOPS_workflow.sh succeeded but did not produce calls/cnMOPS.cnMOPS.gff. Creating empty file."
67+
touch calls/cnMOPS.cnMOPS.gff
6568
fi
6669

6770
echo "----------- Finished CN Sample Normal -------------"

0 commit comments

Comments
 (0)