Skip to content

Commit fe268b2

Browse files
committed
benchmark_metrics
1 parent 7f68206 commit fe268b2

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

tests/lib/benchmark.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ set -u
99
num_runs=1000
1010
# How many times to multiply the four reads file to make a large one
1111
multiplier=10
12-
if [[ ! -z ${CI+x} ]]; then
13-
#num_runs=1000
14-
#multiplier=10000;
15-
echo "! -z CI"
16-
fi
1712

1813
if [[ -z ${thisDir+x} ]]; then
1914
echo "ERROR: \$thisDir needs to be set up in a shell script, and then this library should be sourced."
@@ -33,6 +28,8 @@ large_R2="$thisDir/../testdata/R2.large.fastq"
3328
large_interleaved="$thisDir/../testdata/shuffled.large.fastq.gz"
3429
large_sorted="$thisDir/../testdata/shuffled.sorted.fastq.gz"
3530

31+
largest="$thisDir/../testdata/shuffled.sorted.largest.fastq.gz"
32+
3633
if [[ ! -s $large_R1 || ! -s $large_R2 ]]; then
3734
R1_content=`cat $R1`;
3835
R2_content=`cat $R2`;
@@ -54,6 +51,13 @@ if [[ ! -s $large_sorted ]]; then
5451
zcat $large_interleaved | fasten_sort --sort-by GC --paired-end | gzip -c > $large_sorted
5552
fi
5653

54+
if [[ ! -s $largest ]]; then
55+
# Create largest sorted file if not present
56+
for i in `seq 1 $multiplier`; do
57+
cat $large_sorted
58+
done > $largest
59+
fi
60+
5761
which bbnorm.sh
5862
which fasten_clean
5963
which seqfu

0 commit comments

Comments
 (0)