Skip to content

Commit

Permalink
handle the case where there are no variants to shard (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwhelan authored Oct 15, 2020
1 parent 6f3a808 commit b3393c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wdl/ChromosomeAlleleFrequencies.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ task ShardVcf {
~{contig}.vcf.gz \
~{sv_per_shard} \
"vcf.shard."


# if there were no shards created just make an empty one
if [ ! -e vcf.shard.000000.vcf.gz ]; then
cp ~{contig}.vcf.gz vcf.shard.000000.vcf.gz
fi
>>>

#########################
Expand Down

0 comments on commit b3393c5

Please sign in to comment.