diff options
author | Calvin Morrison <mutantturkey@gmail.com> | 2014-04-08 12:30:43 -0400 |
---|---|---|
committer | Calvin Morrison <mutantturkey@gmail.com> | 2014-04-08 12:30:43 -0400 |
commit | 927b681691b293afbb798a65d4340446e7f6fb6c (patch) | |
tree | 117cb3401670f028e9fa427581b3f9b3c3964603 /SelectiveWholeGenomeAmplification | |
parent | 85ba6e83f0f7cb0856b3667b10655ad2d0b90761 (diff) |
add lock
Diffstat (limited to 'SelectiveWholeGenomeAmplification')
-rwxr-xr-x | SelectiveWholeGenomeAmplification | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/SelectiveWholeGenomeAmplification b/SelectiveWholeGenomeAmplification index e778cbd..f6269d5 100755 --- a/SelectiveWholeGenomeAmplification +++ b/SelectiveWholeGenomeAmplification @@ -27,6 +27,7 @@ check_mers() { fi # check each mer size and process if not already run + lock $tmp_directory/counts-lock for (( mer = min_mer_range; mer <= max_mer_range; mer++)) ; do if [[ ! -e "$counts"-counts-"$mer" ]]; then echo " checking $mer mers for $fasta_file" @@ -39,7 +40,7 @@ check_mers() { cat "$counts"-counts-"$mer" >> "$counts"-counts done - + rmdir $tmp_directory/counts-lock } all=run |