Skip to content

Commit

Permalink
Fix bug with tmp files when multiple instances are run in the same di…
Browse files Browse the repository at this point in the history
…rectory
  • Loading branch information
morispi committed Oct 13, 2020
1 parent 3be459e commit 2840c63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CONSENT-correct
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ do
sort -k1,1 -k 10,10nr -T . --parallel="$nproc" $f > $tmpdir/sorted_$(basename $f)
rm $f
done
$LRSCf/bin/merge $tmpdir/"$alignments" correction "$tmpdir/sorted_"*
rm "$tmpdir/sorted_"*
$LRSCf/bin/merge $tmpdir/"$alignments" correction "$tmpdir/sorted_"$exploded*
rm "$tmpdir/sorted_"$exploded*

echo "["$(date)"] Correcting the long reads"
$LRSCf/bin/CONSENT-correction -a $tmpdir/"$alignments" -s "$minSupport" -S "$maxSupport" -l "$windowSize" -k "$merSize" -c "$commonKMers" -A "$minAnchors" -f "$solid" -m "$windowOverlap" -j "$nproc" -r "$reads" -M "$maxMSA" -p "$LRSCf" >> "$out"
Expand Down
4 changes: 2 additions & 2 deletions CONSENT-polish
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ do
sort -k6,6 -k 10,10nr -T . --parallel="$nproc" $f > $tmpdir/sorted_$(basename $f)
rm $f
done
$LRSCf/bin/merge $tmpdir/"tmp_$alignments" polishing "$tmpdir/sorted_"*
rm "$tmpdir/sorted_"*
$LRSCf/bin/merge $tmpdir/"tmp_$alignments" polishing "$tmpdir/sorted_"$exploded*
rm "$tmpdir/sorted_"$exploded*
$LRSCf/bin/reformatPAF.py $tmpdir/"tmp_$alignments" > $tmpdir/"$alignments"
rm "$tmpdir/tmp_$alignments"

Expand Down

0 comments on commit 2840c63

Please sign in to comment.