2
# Note: cctools has to be installed to execute this script.
3
# Generate candidates from FASTA file "random.fa". The candidates will be saved
4
# in file "random.cand". The format of each line in the .cand file is:
5
# read1_name read2_name direction start_position_in_read1 start_position_in_read2
7
. ../../../dttools/src/test_runner.common.sh
11
PATH=../../src:../../../dttools/src:$PATH
18
rm -rf random.cand.output
22
echo "Compressing reads ..."
23
sand_compress_reads < random.fa > random.cfa
25
echo "Starting worker for filtering ..."
26
work_queue_worker -t 5s -d all -o worker.log localhost $port &
28
echo "Worker is process $wpid"
30
echo "Starting filter master ..."
31
sand_filter_master -s 100 -k 22 -p $port -d all -o filter.log random.cfa random.cand || { echo "Error in filtering."; kill -9 $wpid; exit 1 ; }
33
echo "Waiting for worker to exit"