Skip to content

Commit fda5c5c

Browse files
committed
Added check for mask files.
1 parent 280471d commit fda5c5c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

main.nf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ process artifact_mask_vcfs {
175175
176176
cp $svfile workfile
177177
for mask in \$MASK_DIR/*; do
178+
if [ ! -f "\$mask" ]; then
179+
break
180+
fi
178181
cat workfile \
179182
| bedtools intersect -header -v -a stdin -b \$mask -f 0.25 \
180183
> tempfile
@@ -206,6 +209,9 @@ process swegen_mask_vcfs {
206209
207210
cp $svfile workfile
208211
for mask in \$MASK_DIR/*; do
212+
if [ ! -f "\$mask" ]; then
213+
break
214+
fi
209215
cat workfile \
210216
| bedtools intersect -header -v -a stdin -b \$mask -f $params.sg_mask_ovlp $reciprocal \
211217
> tempfile

0 commit comments

Comments
 (0)