File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99num_runs=1000
1010# How many times to multiply the four reads file to make a large one
1111multiplier=10
12- if [[ ! -z ${CI+x} ]]; then
13- # num_runs=1000
14- # multiplier=10000;
15- echo " ! -z CI"
16- fi
1712
1813if [[ -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"
3328large_interleaved=" $thisDir /../testdata/shuffled.large.fastq.gz"
3429large_sorted=" $thisDir /../testdata/shuffled.sorted.fastq.gz"
3530
31+ largest=" $thisDir /../testdata/shuffled.sorted.largest.fastq.gz"
32+
3633if [[ ! -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
5552fi
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+
5761which bbnorm.sh
5862which fasten_clean
5963which seqfu
You can’t perform that action at this time.
0 commit comments